#include <stddef.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | fun_srecv_t )(char) |
Address of slave receive handler function. | |
typedef int(* | fun_mrecv_t )(char) |
Address of master receive handler function. | |
typedef char(* | fun_send_t )(void) |
Address of slave send handler function. | |
Functions | |
int | i2c_init (char addr, fun_mrecv_t master_recv, fun_srecv_t slave_recv, fun_send_t slave_send) |
Initializes the i2c module. | |
int | i2c_send (char dest, char *data, size_t bytes) |
Sends a byte array over I2C as a master. | |
int | i2c_request (char dest) |
Send a master request to the destination. | |
void | i2c_packet_rec (char i2c_byte) |
void | i2c_packet_sniff (char data) |