Model Railroad System 2.2.2
Public Attributes | List of all members
azatrax::SL2::status1_union Union Reference

Status byte 1 union type (Output states) More...

Public Attributes

uint8_t theByte
 Status byte as a byte. More...
 
struct {
   unsigned int   motor_1_direction:1
 Motor 1 direction. More...
 
   unsigned int   motor_1_state:1
 Motor 1 state. More...
 
   unsigned int   motor_2_direction:1
 Motor 2 direction. More...
 
   unsigned int   motor_2_state:1
 Motor 2 state. More...
 
   unsigned int   reservered:4
 Reserved bits. More...
 
theBits
 Status byte as bit fields. More...
 

Detailed Description

Status byte 1 union type (Output states)

Member Data Documentation

◆ motor_1_direction

unsigned int azatrax::SL2::status1_union::motor_1_direction

Motor 1 direction.

Referenced by azatrax::SL2::Motor_1_Direction().

◆ motor_1_state

unsigned int azatrax::SL2::status1_union::motor_1_state

Motor 1 state.

Referenced by azatrax::SL2::Motor_1_State().

◆ motor_2_direction

unsigned int azatrax::SL2::status1_union::motor_2_direction

Motor 2 direction.

Referenced by azatrax::SL2::Motor_2_Direction().

◆ motor_2_state

unsigned int azatrax::SL2::status1_union::motor_2_state

Motor 2 state.

Referenced by azatrax::SL2::Motor_2_State().

◆ reservered

unsigned int azatrax::SL2::status1_union::reservered

Reserved bits.

◆ 

struct { ... } azatrax::SL2::status1_union::theBits

◆ theByte

uint8_t azatrax::SL2::status1_union::theByte