15 #ifndef LIBBSP_ARM_ATSAM_ATSAM_I2C_H 16 #define LIBBSP_ARM_ATSAM_ATSAM_I2C_H 18 #include <libchip/chip.h> 22 #include <rtems/thread.h> 29 #define TWI_AMOUNT_PINS 2 34 TX_CONT_MESSAGE_NEEDED,
37 RX_CONT_MESSAGE_NEEDED,
46 uint32_t already_transferred;
47 transfer_state trans_state;
56 uint32_t current_msg_todo;
57 uint8_t *current_msg_byte;
58 uint32_t output_clock;
64 int i2c_bus_register_atsam(
68 const Pin pins[TWI_AMOUNT_PINS]
Definition: atsam-i2c.h:50
ssize_t read(int fd, void *buffer, size_t count)
Definition: read.c:27
I2C transfer message.
Definition: i2c.h:138
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
I2C bus control.
Definition: i2c.h:110
Inter-Integrated Circuit (I2C) Driver API.
Twihs hardware registers.
Definition: component_twihs.h:41
Definition: atsam-i2c.h:41