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

> More...

Typedefs

typedef void I2C_SLAVE_CALLBACK_HANDLER (uint32_t evtFlag, uint8_t *rx_PktPointer, uint16_t rx_PktLength)
 

Enumerations

enum  { I2CM_SPEED_100KHZ = 233, I2CM_SPEED_400KHZ = 53, I2CM_SPEED_800KHZ = 23, I2CM_SPEED_1000KHZ = 17 }
 Enumeration of speed options. More...
 
enum  { I2CM_SUCCESS, I2CM_OP_FAILED }
 Enumeration of I2C transaction return values. More...
 
enum  { I2C_TRAN_EVENT_MASK_RX_DONE = 1, I2C_TRAN_EVENT_MASK_TX_DONE = 2, I2C_TRAN_EVENT_MASK_RX_STOP = 4 }
 

Functions

void wiced_hal_i2c_init (void)
 Initializes the I2C driver and its private values. More...
 
void wiced_hal_i2c_set_speed (uint8_t speed)
 Sets the I2C bus speed. More...
 
uint8_t wiced_hal_i2c_get_speed (void)
 Gets the current I2C bus speed. More...
 
uint8_t wiced_hal_i2c_read (uint8_t *data, uint16_t length, uint8_t slave)
 Reads data into given buffer from the I2C HW addressing a particular slave address. More...
 
uint8_t wiced_hal_i2c_write (uint8_t *data, uint16_t length, uint8_t slave)
 Writes the given data to the I2C HW addressing a particular slave address. More...
 
void wiced_hal_i2c_select_pads (uint8_t scl_pin, uint8_t sda_pin)
 Configures GPIOs to use for I2C pins. More...
 
uint8_t wiced_hal_i2c_combined_read (uint8_t *rx_data, uint8_t rx_data_len, uint8_t *tx_data, uint16_t tx_data_len, uint8_t slave)
 Executes two transactions back-to-back with a repeated start condition between the first and the second. More...
 
void wiced_hal_i2c_slave_set_device_address (UINT8 address)
 
void wiced_hal_i2c_slave_select_pads (UINT32 scl_pin, UINT32 sda_pin)
 
void wiced_hal_i2c_slave_init (void)
 
void wiced_hal_i2c_slave_register_cb (I2C_SLAVE_CALLBACK_HANDLER *cb)
 
void wiced_hal_i2c_slave_synchronous_write (UINT8 *buffer, UINT32 length)
 

Detailed Description

>

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