Data Structures | |
union | TWI_statusReg |
Macros | |
#define | TWI_ADDRESS 0x0F |
#define | TWI_READ_BIT 0 |
#define | TWI_ADR_BITS 1 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | TWI_START 0x08 |
#define | TWI_REP_START 0x10 |
#define | TWI_ARB_LOST 0x38 |
#define | TWI_MTX_ADR_ACK 0x18 |
#define | TWI_MTX_ADR_NACK 0x20 |
#define | TWI_MTX_DATA_ACK 0x28 |
#define | TWI_MTX_DATA_NACK 0x30 |
#define | TWI_MRX_ADR_ACK 0x40 |
#define | TWI_MRX_ADR_NACK 0x48 |
#define | TWI_MRX_DATA_ACK 0x50 |
#define | TWI_MRX_DATA_NACK 0x58 |
#define | TWI_STX_ADR_ACK 0xA8 |
#define | TWI_STX_ADR_ACK_M_ARB_LOST 0xB0 |
#define | TWI_STX_DATA_ACK 0xB8 |
#define | TWI_STX_DATA_NACK 0xC0 |
#define | TWI_STX_DATA_ACK_LAST_BYTE 0xC8 |
#define | TWI_SRX_ADR_ACK 0x60 |
#define | TWI_SRX_ADR_ACK_M_ARB_LOST 0x68 |
#define | TWI_SRX_GEN_ACK 0x70 |
#define | TWI_SRX_GEN_ACK_M_ARB_LOST 0x78 |
#define | TWI_SRX_ADR_DATA_ACK 0x80 |
#define | TWI_SRX_ADR_DATA_NACK 0x88 |
#define | TWI_SRX_GEN_DATA_ACK 0x90 |
#define | TWI_SRX_GEN_DATA_NACK 0x98 |
#define | TWI_SRX_STOP_RESTART 0xA0 |
#define | TWI_NO_STATE 0xF8 |
#define | TWI_BUS_ERROR 0x00 |
Functions | |
unsigned char | twi_get_data_from_transceiver (unsigned char *, unsigned char) |
Call this function to read out the requested data from the TWI transceiver buffer. More... | |
unsigned char | twi_get_state_info (void) |
Call this function to fetch the state information of the previous operation. More... | |
void | twi_master_initialise (void) |
Call this function to set up the TWI master to its initial standby state. More... | |
void | twi_start_transceiver (void) |
Call this function to resend the last message. More... | |
void | twi_start_transceiver_with_data (unsigned char *, unsigned char, unsigned char, unsigned char) |
Call this function to send a prepared message. More... | |
unsigned char | twi_transceiver_busy (void) |
Call this function to test if the TWI_ISR is busy transmitting. More... | |
#define | TWI_BUFFER_SIZE 0x0D |
#define | TWI_TWBR 0xA0 |
union TWI_statusReg | TWI_statusReg |