ReduxLib C++ 2023.1.0
Loading...
Searching...
No Matches
redux::sensors::canandcoder::CANandcoderStatus Struct Reference

#include <CANandcoder.h>

Public Member Functions

 CANandcoderStatus (uint8_t activeFaultsRaw, uint8_t stickyFaultsRaw, bool faultsValid, units::celsius_t temp, bool magnetInRange)
 

Public Attributes

CANandcoderFaults activeFaults
 
CANandcoderFaults stickyFaults
 
units::celsius_t temperature
 
bool magnetInRange
 

Detailed Description

Struct class representing a CANandcoder's status.

Constructor & Destructor Documentation

◆ CANandcoderStatus()

redux::sensors::canandcoder::CANandcoderStatus::CANandcoderStatus ( uint8_t  activeFaultsRaw,
uint8_t  stickyFaultsRaw,
bool  faultsValid,
units::celsius_t  temp,
bool  magnetInRange 
)
inline

Constructor for CANandcoderStatus

Parameters
activeFaultsRawraw uint8_t field
stickyFaultsRawraw uint8_t field
faultsValidwhether the faults fields have valid adata
tempMCU temp
magnetInRangewhether the encoder magnet is in range

Member Data Documentation

◆ activeFaults

CANandcoderFaults redux::sensors::canandcoder::CANandcoderStatus::activeFaults

Active faults.

◆ magnetInRange

bool redux::sensors::canandcoder::CANandcoderStatus::magnetInRange

Whether the magnet is in range.

◆ stickyFaults

CANandcoderFaults redux::sensors::canandcoder::CANandcoderStatus::stickyFaults

Sticky faults.

◆ temperature

units::celsius_t redux::sensors::canandcoder::CANandcoderStatus::temperature

Encoder MCU temperature (celsius).


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