8 #ifndef _PICO_I2C_SLAVE_H 9 #define _PICO_I2C_SLAVE_H 75 #endif // _PICO_I2C_SLAVE_H_ void i2c_slave_deinit(i2c_inst_t *i2c)
Restore an I2C instance to master mode.
Definition: i2c_slave.c:85
Definition: i2c_slave.h:37
Definition: i2c_slave.h:35
void(* i2c_slave_handler_t)(i2c_inst_t *i2c, i2c_slave_event_t event)
I2C slave event handlerThe event handler will run from the I2C ISR, so it should return quickly (unde...
Definition: i2c_slave.h:52
Definition: i2c_slave.h:36
i2c_slave_event_t
I2C slave event types.
Definition: i2c_slave.h:33
void i2c_slave_init(i2c_inst_t *i2c, uint8_t address, i2c_slave_handler_t handler)
Configure an I2C instance for slave mode.
Definition: i2c_slave.c:60