| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions | Variables
SDK_EVAL_I2C.c File Reference

This file provides all the low level API to manage I2C interface for eval board. More...

`#include "SDK_EVAL_I2C.h"`

Go to the source code of this file.

## Macros

#define | I2C_TX_DR_BASE_ADDR (SDK_EVAL_I2C_BASE + 0x10)
| I2C DR address. More...
#define | I2C_RX_DR_BASE_ADDR (SDK_EVAL_I2C_BASE + 0x18)

## Functions

ErrorStatus | SdkEvalI2CInit (uint32_t baudrate)
| Configures I2C interface. More...
ErrorStatus | SdkEvalI2CWrite (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| I2C function to write registers of a slave device. More...
ErrorStatus | SdkEvalI2CRead (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToRead)
| I2C function to read registers from a slave device. More...
ErrorStatus | SdkEvalI2CDmaInit (uint32_t baudrate)
| Configures I2C interface and the I2C_TX/I2C_RX DMA channels. More...
ErrorStatus | SdkEvalI2CDmaWrite (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| I2C function to write registers of a slave device. More...
ErrorStatus | SdkEvalI2CDmaRead (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToRead)
| I2C function to read registers from a slave device. More...
void | DmaI2CHandlerCallback (void)
| I2C DMA ISR callback function. More...
ErrorStatus | SdkEvalI2CIrqInit (uint32_t baudrate)
| Configures I2C interface. More...
ErrorStatus | SdkEvalI2CIrqWrite (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| I2C function to write registers of a slave device. More...
ErrorStatus | SdkEvalI2CIrqRead (uint8_t *pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr, uint8_t NumByteToRead)
| I2C function to read registers from a slave device. More...
void | IrqI2CHandlerCallback (void)
| I2C DMA ISR callback function. More...

## Variables

uint8_t | i2c_buffer_tx [I2C_BUFF_SIZE]
| I2C buffers used for DMA application. More...
uint8_t | i2c_buffer_rx [I2C_BUFF_SIZE]
volatile FlagStatus | i2c_eot = SET
| I2C flag set at end of transaction. More...

## Detailed Description

This file provides all the low level API to manage I2C interface for eval board.

Author
  AMS VMA RF application team

Version
  V1.0.0

Date
  September 29, 2015

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

THIS SOURCE CODE IS PROTECTED BY A LICENSE. FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.

##
© COPYRIGHT 2015 STMicroelectronics

Definition in file SDK_EVAL_I2C.c.