HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
ProtoEvent Struct Reference

Protocol event structure pushed through FreeRTOS queues. More...

#include <espnow_protocol.hpp>

Collaboration diagram for ProtoEvent:
[legend]

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 
 

Detailed Description

Protocol event structure pushed through FreeRTOS queues.

The active union member depends on type.

Member Data Documentation

◆ at_cycle

uint32_t ProtoEvent::at_cycle

◆ center_distance_deg

float ProtoEvent::center_distance_deg

◆ config

TestUnitSettings ProtoEvent::config

◆ cycle

uint32_t ProtoEvent::cycle

◆ [union]

union { ... } ProtoEvent::data

◆ device_name

char ProtoEvent::device_name[MAX_DEVICE_NAME_LEN]

◆ device_type

uint8_t ProtoEvent::device_type

◆ err_code

uint8_t ProtoEvent::err_code

◆ [struct]

struct { ... } ProtoEvent::error

◆ left_backoff_deg

float ProtoEvent::left_backoff_deg

◆ [struct]

struct { ... } ProtoEvent::manual_bounds

◆ [struct]

struct { ... } ProtoEvent::manual_confirm

◆ [struct]

struct { ... } ProtoEvent::manual_jog

◆ [struct]

struct { ... } ProtoEvent::manual_start

◆ [struct]

struct { ... } ProtoEvent::pairing

◆ peer_mac

uint8_t ProtoEvent::peer_mac[6]

◆ right_backoff_deg

float ProtoEvent::right_backoff_deg

◆ state

TestState ProtoEvent::state

◆ [struct]

struct { ... } ProtoEvent::status

◆ target_deg

float ProtoEvent::target_deg

◆ total_range_deg

float ProtoEvent::total_range_deg

◆ type

ProtoEventType ProtoEvent::type

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