puzzlebox
Loading...
Searching...
No Matches
State

Provide your own global state variable. More...

Detailed Description

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.
 

Function Documentation

◆ pb_hook_mod_state_read()

pb_global_state_t pb_hook_mod_state_read ( )
Returns
Current value of global state enum

The default implementation of this function uses an internal global state variable in pbdrv.

◆ pb_hook_mod_state_write()

void pb_hook_mod_state_write ( pb_global_state_t state)
Parameters
stateNew value of global state enum

The default implementation of this function uses an internal global state variable in pbdrv.