![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
I2CEUSCIB driver implementation for an EUSCIB controller.
============================================================================
The I2CEUSCIB header file should be included in an application as follows:
Refer to I2C.h for a complete description of APIs & example of use.
This I2C driver implementation is designed to operate on a EUSCIB 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 EUSCIB controller, and have it call the I2CEUSCIB's Hwi interrupt function I2CEUSCIB_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 | I2CEUSCIB_HWAttrs |
I2CEUSCIB Hardware attributes. More... | |
struct | I2CEUSCIB_Object |
I2CEUSCIB Object. More... | |
Typedefs | |
typedef enum I2CEUSCIB_Mode | I2CEUSCIB_Mode |
I2CEUSCIB mode. More... | |
typedef struct I2CEUSCIB_HWAttrs | I2CEUSCIB_HWAttrs |
I2CEUSCIB Hardware attributes. More... | |
typedef struct I2CEUSCIB_Object | I2CEUSCIB_Object |
I2CEUSCIB Object. More... | |
Enumerations | |
enum | I2CEUSCIB_Mode { I2CEUSCIB_IDLE_MODE = 0, I2CEUSCIB_WRITE_MODE, I2CEUSCIB_READ_MODE, I2CEUSCIB_ERROR = 0xFF } |
I2CEUSCIB mode. More... | |
Variables | |
const I2C_FxnTable | I2CEUSCIB_fxnTable |
typedef enum I2CEUSCIB_Mode I2CEUSCIB_Mode |
I2CEUSCIB mode.
This enum defines the state of the I2C driver's state-machine. Do not modify.
typedef struct I2CEUSCIB_HWAttrs I2CEUSCIB_HWAttrs |
I2CEUSCIB 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 I2CEUSCIB_Object I2CEUSCIB_Object |
I2CEUSCIB Object.
The application must not access any member variables of this structure!
enum I2CEUSCIB_Mode |
const I2C_FxnTable I2CEUSCIB_fxnTable |