|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Protocol event structure pushed through FreeRTOS queues. More...
#include <espnow_protocol.hpp>
Public Attributes | ||
| ProtoEventType | type | |
| union { | ||
| TestUnitSettings config | ||
| struct { | ||
| uint32_t cycle | ||
| TestState state | ||
| uint8_t err_code | ||
| } status | ||
| struct { | ||
| uint8_t err_code | ||
| uint32_t at_cycle | ||
| } error | ||
| struct { | ||
| uint8_t peer_mac [6] | ||
| uint8_t device_type | ||
| char device_name [MAX_DEVICE_NAME_LEN] | ||
| } pairing | ||
| struct { | ||
| float center_distance_deg | ||
| } manual_bounds | ||
| struct { | ||
| float target_deg | ||
| } manual_jog | ||
| struct { | ||
| float total_range_deg | ||
| float left_backoff_deg | ||
| float right_backoff_deg | ||
| } manual_confirm | ||
| struct { | ||
| float total_range_deg | ||
| float left_backoff_deg | ||
| float right_backoff_deg | ||
| } manual_start | ||
| } | data | |
Protocol event structure pushed through FreeRTOS queues.
The active union member depends on type.
| uint32_t ProtoEvent::at_cycle |
| float ProtoEvent::center_distance_deg |
| TestUnitSettings ProtoEvent::config |
| uint32_t ProtoEvent::cycle |
| union { ... } ProtoEvent::data |
| char ProtoEvent::device_name[MAX_DEVICE_NAME_LEN] |
| uint8_t ProtoEvent::device_type |
| uint8_t ProtoEvent::err_code |
| struct { ... } ProtoEvent::error |
| float ProtoEvent::left_backoff_deg |
| struct { ... } ProtoEvent::manual_bounds |
| struct { ... } ProtoEvent::manual_confirm |
| struct { ... } ProtoEvent::manual_jog |
| struct { ... } ProtoEvent::manual_start |
| struct { ... } ProtoEvent::pairing |
| uint8_t ProtoEvent::peer_mac[6] |
| float ProtoEvent::right_backoff_deg |
| TestState ProtoEvent::state |
| struct { ... } ProtoEvent::status |
| float ProtoEvent::target_deg |
| float ProtoEvent::total_range_deg |
| ProtoEventType ProtoEvent::type |