puzzlebox
|
Provide your own global state variable. More...
If your puzzle module defines its own global 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.
Functions | |
pb_global_state_t | pb_hook_mod_state_read () |
Global state read hook. | |
void | pb_hook_mod_state_write (pb_global_state_t state) |
Global state write hook. | |
pb_global_state_t pb_hook_mod_state_read | ( | ) |
The default implementation of this function uses an internal global state variable in pbdrv.
void pb_hook_mod_state_write | ( | pb_global_state_t | state | ) |
state | New value of global state enum |
The default implementation of this function uses an internal global state variable in pbdrv.