diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-25 12:20:13 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-25 12:20:13 +0200 |
commit | f594d070418a3b2be6e5c08068f969e8793315ba (patch) | |
tree | 33f450045708e794ecb01efb43e5cfce76c0bb38 /lib/pbdrv/pb-mod.h | |
parent | df5f2cc3ca34c47302fad4af2a4e614e000e4c51 (diff) | |
parent | 1c33371af4fdc59387fe523fab09634bdea54acc (diff) |
Merge branch 'master' of github.com:lonkaars/puzzelbox into prot/smoketest
Diffstat (limited to 'lib/pbdrv/pb-mod.h')
-rw-r--r-- | lib/pbdrv/pb-mod.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/pbdrv/pb-mod.h b/lib/pbdrv/pb-mod.h index 91e1d1f..e7b7832 100644 --- a/lib/pbdrv/pb-mod.h +++ b/lib/pbdrv/pb-mod.h @@ -62,10 +62,8 @@ void pb_i2c_send(i2c_addr_t i2c_addr, const uint8_t * buf, size_t sz); /// \} -/// \ingroup pb_hook -/// \{ - /** + * \ingroup pb_hook * \defgroup pb_hook_mod_state State * \brief Provide your own global state variable * @@ -94,6 +92,18 @@ pb_global_state_t pb_hook_mod_state_read(); void pb_hook_mod_state_write(pb_global_state_t state); /// \} + +/** + * \ingroup pb_hook + * \defgroup pb_hook_i2c I2C + * \brief Intercept incoming/outgoing I2C messages + * + * \{ + */ + +void pb_hook_i2c_recv(const uint8_t * buf, size_t sz); +void pb_hook_i2c_send(i2c_addr_t i2c_addr, const uint8_t * buf, size_t sz); + /// \} #ifdef __cplusplus |