|
puzzlebox
|
puzzle bus message header / container (shared by all commands)
#include <pb-types.h>
Public Attributes | |
| pb_cmd_id_t | type |
| Command type (see pb_cmd_id_t) | |
| pb_action_t | action |
| Command action (see pb_action_t) | |
| i2c_addr_t | sender |
| I²C address of sender. | |
| void * | cmd |
Command data (dependent on type) | |
| pb_action_t pb_msg_t::action |
This is used to specify what should happen as a result of this message.
| void* pb_msg_t::cmd |
Struct containing command type-specific data.
| i2c_addr_t pb_msg_t::sender |
This is used to facilitate the 'network' features, as the sender of an I²C write is unknown.
| pb_cmd_id_t pb_msg_t::type |
This is used to identify what the message is about.