|
oled 1.0
OLED Graphics Control Library
|
Enumerations for TWI/I2C interface modes, operations, acknowledgment, and error codes. More...
#include "../defines/TWI_defines.h"

Go to the source code of this file.
Typedefs | |
| typedef enum TWI_Mode_t | TWI_Mode |
| Alias for enum TWI_Mode_t representing TWI device mode. | |
| typedef enum TWI_Operation_t | TWI_Operation |
| Alias for enum TWI_Operation_t representing TWI operation modes. | |
| typedef enum TWI_Acknowledge_t | TWI_Acknowledge |
| Alias for enum TWI_Acknowledge_t representing TWI acknowledge mode. | |
| typedef enum TWI_Error_t | TWI_Error |
| Alias for enum TWI_Error_t representing TWI error status. | |
Enumerations | |
| enum | TWI_Operation_t { TWI_Write = 0x00 , TWI_Read = 0x01 } |
| Specifies the operation type for the next TWI bus transmission. More... | |
| enum | TWI_Acknowledge_t { TWI_NACK = 0x00 , TWI_ACK = 0x01 } |
| Indicates acknowledgment status on the TWI bus. More... | |
| enum | TWI_Error_t { TWI_None =0 , TWI_Run , TWI_Start , TWI_Arbitration , TWI_Ack , TWI_General } |
| Error codes for software TWI operations. More... | |
Enumerations for TWI/I2C interface modes, operations, acknowledgment, and error codes.
This header file defines the enums used to represent various states and configurations related to software TWI (Two-Wire Interface, I2C) communication. It includes enumerations for device operation modes (master/slave), communication operation types (read/write), acknowledgment status (ACK/NACK), and error codes for handling communication results.
| typedef enum TWI_Acknowledge_t TWI_Acknowledge |
Alias for enum TWI_Acknowledge_t representing TWI acknowledge mode.
| typedef enum TWI_Error_t TWI_Error |
Alias for enum TWI_Error_t representing TWI error status.
| typedef enum TWI_Mode_t TWI_Mode |
Alias for enum TWI_Mode_t representing TWI device mode.
| typedef enum TWI_Operation_t TWI_Operation |
Alias for enum TWI_Operation_t representing TWI operation modes.
| enum TWI_Acknowledge_t |
| enum TWI_Error_t |
Error codes for software TWI operations.
This enumeration defines the possible error statuses that can occur during software TWI (I2C) communication.
| Enumerator | |
|---|---|
| TWI_None | No error occurrs |
| TWI_Run | Operation running |
| TWI_Start | Start condition error |
| TWI_Arbitration | Arbitration error |
| TWI_Ack | Acknowledge error |
| TWI_General | General error |
| enum TWI_Operation_t |
Specifies the operation type for the next TWI bus transmission.
This enumeration indicates whether the next software TWI (I2C) communication operation is a write (master to slave) or a read (slave to master).
| Enumerator | |
|---|---|
| TWI_Write | Write operation (master sends data) |
| TWI_Read | Read operation (master receives data) |