I2C Enumerations - PalouseRobosub/SUBLIBinal GitHub Wiki
I2C Enumerations
This page contains information about the enumerations used within I2C functions. Please select the enumeration from the list below to be redirected to the appropriate documentation.
Enumerations:
I2C_MODE
Definition
typedef enum
{
READ,
WRITE
} I2C_MODE;
This is used for specifying whether the microcontroller should read or write to a device. It is used when filling out an I2C_Node.
I2C_Channel
Definition
typedef enum
{
I2C_CH_1,
I2C_CH_2
} I2C_Channel;
This is used for specifying which of the hardware I2C channels should be used.
I2C_STATE
This enumeration is used internally by the library for the state machine that the ISR uses. Users should not interact with this. For more info, see the technical documentation.
insert link to technical documentation