SAM D20 I2C Master Driver.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
|
static enum status_code | _i2c_master_read_packet (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
|
static enum status_code | _i2c_master_write_packet (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
|
enum status_code | i2c_master_init (struct i2c_master_module *const module, Sercom *const hw, const struct i2c_master_config *const config) |
| Initializes the requested I2C hardware module. More...
|
|
enum status_code | i2c_master_read_byte (struct i2c_master_module *const module, uint8_t *byte) |
| Reads one byte data from slave. More...
|
|
enum status_code | i2c_master_read_packet_wait (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
| Reads data packet from slave. More...
|
|
enum status_code | i2c_master_read_packet_wait_no_nack (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
| Reads data packet from slave without sending a nack signal and a stop condition when done. More...
|
|
enum status_code | i2c_master_read_packet_wait_no_stop (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
| Reads data packet from slave without sending a stop condition when done. More...
|
|
void | i2c_master_reset (struct i2c_master_module *const module) |
| Resets the hardware module. More...
|
|
void | i2c_master_send_nack (struct i2c_master_module *const module) |
| Sends nack signal on bus. More...
|
|
void | i2c_master_send_stop (struct i2c_master_module *const module) |
| Sends stop condition on bus. More...
|
|
enum status_code | i2c_master_write_byte (struct i2c_master_module *const module, uint8_t byte) |
| Write one byte data to slave. More...
|
|
enum status_code | i2c_master_write_packet_wait (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
| Writes data packet to slave. More...
|
|
enum status_code | i2c_master_write_packet_wait_no_stop (struct i2c_master_module *const module, struct i2c_master_packet *const packet) |
| Writes data packet to slave without sending a stop condition when done. More...
|
|