aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-mod.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-22 10:39:01 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-22 10:39:01 +0200
commit2187c3d6196f2a25bc0b74365358c9874dde3a46 (patch)
tree8b7d91024b77eb8aa1115103b17b2a4d7ef3d402 /lib/pbdrv/pb-mod.h
parent8a80226e9dce394573e95d68fc9fe04592ad5907 (diff)
more code documentation
Diffstat (limited to 'lib/pbdrv/pb-mod.h')
-rw-r--r--lib/pbdrv/pb-mod.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/pbdrv/pb-mod.h b/lib/pbdrv/pb-mod.h
index 2ff1908..ef2cd77 100644
--- a/lib/pbdrv/pb-mod.h
+++ b/lib/pbdrv/pb-mod.h
@@ -80,7 +80,7 @@ void pb_i2c_send(i2c_addr_t i2c_addr, const uint8_t * buf, size_t sz);
/// \}
-/// \ingroup hook
+/// \ingroup pb_hook
/// \{
/**
@@ -89,8 +89,7 @@ void pb_i2c_send(i2c_addr_t i2c_addr, const uint8_t * buf, size_t sz);
*
* If your puzzle module defines its own global \c pb_global_state_t, you can
* tell the driver to use it by implementing these functions. These functions
- * are also used internally by the driver when creating \c STATE \c REQ and \c
- * STATE \c RES commands.
+ * are also used internally by the driver.
*
* \{
*/
@@ -98,11 +97,17 @@ void pb_i2c_send(i2c_addr_t i2c_addr, const uint8_t * buf, size_t sz);
/**
* \brief global state read hook
* \return current value of global state enum
+ *
+ * The default implementation of this function uses an internal global state
+ * variable in \ref pbdrv.
*/
pb_global_state_t pb_hook_mod_state_read();
/**
* \brief global state write hook
* \param state new value of global state enum
+ *
+ * The default implementation of this function uses an internal global state
+ * variable in \ref pbdrv.
*/
void pb_hook_mod_state_write(pb_global_state_t state);