| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions
SDK_EVAL_I2C.h File Reference

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

`#include "BlueNRG1.h"`
`#include "BlueNRG1_conf.h"`
`#include "SDK_EVAL_Config.h"`

Go to the source code of this file.

## Macros

#define | I2C_BUFF_SIZE (10)
| I2C buffer max size. More...
#define | DMA_CH_I2C_TX SDK_EVAL_I2C_DMA_TX
| I2C_TX DMA channel. More...
#define | DMA_CH_I2C_TX_IT_TC SDK_EVAL_I2C_DMA_TX_ITTC
| I2C_TX DMA Transfer Complete Interrupt. More...
#define | DMA_CH_I2C_RX SDK_EVAL_I2C_DMA_RX
| I2C_RX DMA channel. More...
#define | DMA_CH_I2C_RX_IT_TC SDK_EVAL_I2C_DMA_RX_ITTC
| I2C_RX DMA Transfer Complete Interrupt. More...

## 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...

## 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.h.