puzzlebox
Loading...
Searching...
No Matches
pb_msg_t Struct Reference

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)
 

Member Data Documentation

◆ action

pb_action_t pb_msg_t::action

This is used to specify what should happen as a result of this message.

◆ cmd

void* pb_msg_t::cmd

Struct containing command type-specific data.

◆ sender

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.

◆ type

pb_cmd_id_t pb_msg_t::type

This is used to identify what the message is about.


The documentation for this struct was generated from the following file: