SimAVR
AVR Simulator
|
Data Structures | |
struct | avr_twi_msg_t |
struct | avr_twi_msg_irq_t |
struct | avr_twi_t |
Macros | |
#define | AVR_IOCTL_TWI_GETIRQ(_name) AVR_IOCTL_DEF('t','w','i',(_name)) |
add port number to get the real IRQ More... | |
Typedefs | |
typedef struct avr_twi_msg_t | avr_twi_msg_t |
typedef struct avr_twi_msg_irq_t | avr_twi_msg_irq_t |
typedef struct avr_twi_t | avr_twi_t |
Enumerations | |
enum | { TWI_IRQ_INPUT = 0, TWI_IRQ_OUTPUT, TWI_IRQ_STATUS, TWI_IRQ_COUNT } |
enum | { TWI_COND_START = (1 << 0), TWI_COND_STOP = (1 << 1), TWI_COND_ADDR = (1 << 2), TWI_COND_ACK = (1 << 3), TWI_COND_WRITE = (1 << 4), TWI_COND_READ = (1 << 5), TWI_COND_SLAVE = (1 << 6) } |
Functions | |
void | avr_twi_init (avr_t *avr, avr_twi_t *port) |
uint32_t | avr_twi_irq_msg (uint8_t msg, uint8_t addr, uint8_t data) |
Create a message value for twi including the 'msg' bitfield, 'addr' and data. More... | |
#define AVR_IOCTL_TWI_GETIRQ | ( | _name | ) | AVR_IOCTL_DEF('t','w','i',(_name)) |
add port number to get the real IRQ
typedef struct avr_twi_msg_irq_t avr_twi_msg_irq_t |
typedef struct avr_twi_msg_t avr_twi_msg_t |
anonymous enum |
uint32_t avr_twi_irq_msg | ( | uint8_t | msg, |
uint8_t | addr, | ||
uint8_t | data | ||
) |
Create a message value for twi including the 'msg' bitfield, 'addr' and data.
This value is what is sent as the IRQ value