ReduxLib C++ 2025.0.0-beta2
Loading...
Searching...
No Matches
redux::sensors::canandgyro::details::msg::AccelerationOutput Struct Reference

#include <CanandgyroDetails.h>

Public Member Functions

constexpr uint64_t encode ()
 
bool send (redux::canand::CanandAddress &addr)
 

Static Public Member Functions

static constexpr AccelerationOutput decode (uint64_t data)
 

Public Attributes

int16_t z
 
int16_t y
 
int16_t x
 

Static Public Attributes

static const uint32_t DLC_MIN = 6
 
static const uint32_t DLC_MAX = 6
 

Detailed Description

Acceleration frame struct

Member Function Documentation

◆ decode()

static constexpr AccelerationOutput redux::sensors::canandgyro::details::msg::AccelerationOutput::decode ( uint64_t  data)
inlinestaticconstexpr

Decodes a struct.

Parameters
dataintfield to decode
Returns
a decoded struct

◆ encode()

constexpr uint64_t redux::sensors::canandgyro::details::msg::AccelerationOutput::encode ( )
inlineconstexpr

Encodes a struct.

Returns
an encoded struct.

◆ send()

bool redux::sensors::canandgyro::details::msg::AccelerationOutput::send ( redux::canand::CanandAddress addr)
inline

Sends the message struct to a CanandAddress.

Parameters
addrthe address to send to
Returns
the return value of SendCANMessage

Member Data Documentation

◆ DLC_MAX

const uint32_t redux::sensors::canandgyro::details::msg::AccelerationOutput::DLC_MAX = 6
static

Maximum acceptable data length code for this message

◆ DLC_MIN

const uint32_t redux::sensors::canandgyro::details::msg::AccelerationOutput::DLC_MIN = 6
static

Minimum acceptable data length code for this message

◆ x

int16_t redux::sensors::canandgyro::details::msg::AccelerationOutput::x

X-axis acceleration

◆ y

int16_t redux::sensors::canandgyro::details::msg::AccelerationOutput::y

Y-axis acceleration

◆ z

int16_t redux::sensors::canandgyro::details::msg::AccelerationOutput::z

Z-axis acceleration


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