puzzlebox
|
Functions for (partially) overriding default behavior. More...
Hooks are functions that allow the user to implement custom behavior (i.e. extend or conditionally replace the default handlers), without needing to completely overwrite the built-in handlers or understand the internals of pbdrv-mod.
The boolean value returned by some hooks (e.g. those under Routing or I²C) represents if the default handler should run after the hook returns. This allow you to conditionally 'catch' calls to their respective base functions by returning true
.
Components | |
State | |
Provide your own global state variable. | |
I²C | |
Intercept incoming/outgoing I²C messages. | |
Routing | |
Conditionally use substitute or extend the built-in message handlers. | |
Events | |
Functions called on puzzle bus-related events. | |