wifiiot_i2c_ex.h
Overview
Related Modules:
Description:
Declares the extended I2C interface functions.
These functions are used for I2C baud rate setting and device exception callback.
Since:
1.0
Version:
1.0
Summary
Data Structures
| Data Structure Name | Description |
|---|---|
| WifiIotI2cFunc | Defines I2C callbacks. |
Typedefs
| Typedef Name | Description |
|---|---|
| I2CResetFunc) (void) | typedef void( Indicates the callback invoked when a device exception occurs. |
| I2cPrepareFunc) (void) | typedef void( Indicates the callback invoked for device preparation. |
| I2cRestoreFunc) (void) | typedef void(* Indicates the callback invoked for device recovery. |
Functions
| Function Name | Description |
|---|---|
| I2cWriteread (WifiIotI2cIdx id, unsigned short deviceAddr, const WifiIotI2cData *i2cData) | unsigned int Sends data to and receives data responses from an I2C device. |
| I2cRegisterResetBusFunc (WifiIotI2cIdx id, WifiIotI2cFunc pfn) | void Registers an I2C callback. |
| I2cSetBaudrate (WifiIotI2cIdx id, unsigned int baudrate) | unsigned int Sets the baud rate for an I2C device. |
