![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
I2CUSCIB driver implementation for a USCIB controller.
============================================================================
The I2CUSCIB header file should be included in an application as follows:
Refer to I2C.h for a complete description of APIs and usage.
This I2C driver implementation is designed to operate on a UCSI controller in I2C mode.
This driver is interrupt driven. For MSP430 devices, it requires the user to statically create a Hwi (in the application .cfg file) for the associated USCI controller, and have it call the I2CUSCIB's Hwi interrupt function I2CUSCIB_hwiIntFxn().
The following information is needed to create the Hwi:
#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/I2C.h>
#include <ti/sysbios/knl/Semaphore.h>
Go to the source code of this file.
Data Structures | |
struct | I2CUSCIB_HWAttrs |
I2CUSCIB Hardware attributes. More... | |
struct | I2CUSCIB_Object |
I2CUSCIB Object. More... | |
Typedefs | |
typedef enum I2CUSCIB_Mode | I2CUSCIB_Mode |
I2CUSCIB mode. More... | |
typedef struct I2CUSCIB_HWAttrs | I2CUSCIB_HWAttrs |
I2CUSCIB Hardware attributes. More... | |
typedef struct I2CUSCIB_Object | I2CUSCIB_Object |
I2CUSCIB Object. More... | |
Enumerations | |
enum | I2CUSCIB_Mode { I2CUSCIB_IDLE_MODE = 0, I2CUSCIB_WRITE_MODE, I2CUSCIB_READ_MODE, I2CUSCIB_ERROR = 0xFF } |
I2CUSCIB mode. More... | |
Variables | |
const I2C_FxnTable | I2CUSCIB_fxnTable |
typedef enum I2CUSCIB_Mode I2CUSCIB_Mode |
I2CUSCIB mode.
This enum defines the state of the I2C driver's state-machine. Do not modify.
typedef struct I2CUSCIB_HWAttrs I2CUSCIB_HWAttrs |
I2CUSCIB Hardware attributes.
These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For MSP430Ware these definitions are found in:
A sample structure is shown below:
typedef struct I2CUSCIB_Object I2CUSCIB_Object |
I2CUSCIB Object.
The application must not access any member variables of this structure!
enum I2CUSCIB_Mode |
const I2C_FxnTable I2CUSCIB_fxnTable |