Infineon Logo AIROC BTSDK v4.7 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_hal_i2c.h File Reference

List of parameters and defined functions needed to access the Inter-Integrated Circuit (I2C, IIC) driver. More...

Enumerations

enum  { I2CM_SPEED_100KHZ = 240, I2CM_SPEED_400KHZ = 60, I2CM_SPEED_800KHZ = 30, I2CM_SPEED_1000KHZ = 24 }
 Speed Options. More...
 
enum  { I2CM_SUCCESS, I2CM_OP_FAILED, I2CM_BUSY }
 Transaction Status Return Values. More...
 
enum  { WICED_I2C_SDA_P35_SCL_P37 = 0, WICED_I2C_SDA_I2S_DOUT_PCM_OUT_SCL_I2S_DIN_PCM_IN = 1, WICED_I2C_SDA_SFLASH_MOSI_SCL_SFLASH_MISO = 2 }
 

Functions

wiced_result_t wiced_hal_i2c_init (UINT8 configure_path)
 Initializes the I2C driver and its private values. More...
 
void wiced_hal_i2c_set_speed (UINT8 speed)
 Sets the I2C bus speed. More...
 
UINT8 wiced_hal_i2c_get_speed (void)
 Gets the current I2C bus speed. More...
 
UINT8 wiced_hal_i2c_read (UINT8 *data, UINT16 length, UINT8 slave)
 Reads data into given buffer from the I2C HW addressing a particualr slave address. More...
 
UINT8 wiced_hal_i2c_combo_read (UINT8 *read_buff, UINT16 read_buff_length, UINT8 *write_buff, UINT8 write_buff_length, UINT8 slave_address)
 Executes two transactions back-to-back with a repeated start condition between the first and the second. More...
 
UINT8 wiced_hal_i2c_write (UINT8 *data, UINT16 length, UINT8 slave)
 Writes the given data to the I2C HW addressing a particualr slave address. More...
 

Detailed Description

List of parameters and defined functions needed to access the Inter-Integrated Circuit (I2C, IIC) driver.