ReduxLib C++ 2024.3.2
Loading...
Searching...
No Matches
redux::sensors::canandmag::CanandmagStatus Struct Reference

#include <CanandmagStatus.h>

Public Member Functions

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

Public Attributes

CanandmagFaults activeFaults
 
CanandmagFaults stickyFaults
 
units::celsius_t temperature
 
bool magnetInRange
 

Detailed Description

Struct class representing a Canandmag's status.

Constructor & Destructor Documentation

◆ CanandmagStatus()

constexpr redux::sensors::canandmag::CanandmagStatus::CanandmagStatus ( uint8_t  activeFaultsRaw,
uint8_t  stickyFaultsRaw,
bool  faultsValid,
units::celsius_t  temp,
bool  magnetInRange 
)
inlineconstexpr

Constructor for CanandmagStatus

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

CanandmagFaults redux::sensors::canandmag::CanandmagStatus::activeFaults

Active faults.

◆ magnetInRange

bool redux::sensors::canandmag::CanandmagStatus::magnetInRange

Whether the magnet is in range.

◆ stickyFaults

CanandmagFaults redux::sensors::canandmag::CanandmagStatus::stickyFaults

Sticky faults.

◆ temperature

units::celsius_t redux::sensors::canandmag::CanandmagStatus::temperature

Encoder MCU temperature (celsius).


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