|
puzzlebox
|
Intercept incoming/outgoing I²C messages. More...
Functions | |
| bool | pb_hook_i2c_recv (const uint8_t *buf, size_t sz) |
pb_i2c_recv() hook | |
| bool | pb_hook_i2c_send (i2c_addr_t i2c_addr, const uint8_t *buf, size_t sz) |
pb_i2c_send() hook | |
| bool pb_hook_i2c_recv | ( | const uint8_t * | buf, |
| size_t | sz ) |
The default implementation of this function immediately returns false.
false if execution should continue to the default handler, or true if it should stop (i.e. the message was handled).| bool pb_hook_i2c_send | ( | i2c_addr_t | i2c_addr, |
| const uint8_t * | buf, | ||
| size_t | sz ) |
The default implementation of this function immediately returns false.
false if execution should continue to the default handler, or true if it should stop (i.e. the message was handled).