puzzlebox
Loading...
Searching...
No Matches

Intercept incoming/outgoing I²C messages. More...

Detailed Description

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
 

Function Documentation

◆ pb_hook_i2c_recv()

bool pb_hook_i2c_recv ( const uint8_t * buf,
size_t sz )

The default implementation of this function immediately returns false.

Returns
false if execution should continue to the default handler, or true if it should stop (i.e. the message was handled).
See also
pb_i2c_recv()

◆ pb_hook_i2c_send()

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.

Returns
false if execution should continue to the default handler, or true if it should stop (i.e. the message was handled).
See also
pb_i2c_send()