Haptic Controller
Loading...
Searching...
No Matches
Set_Reboot_msg_t Struct Referencefinal

Message struct for reboooting Odrive. More...

Public Member Functions

constexpr Set_Reboot_msg_t ()=default
 
 Set_Reboot_msg_t (const TBoard::TCanIntf::TMsg &msg)
 
void encode_msg (TBoard::TCanIntf::TMsg &msg)
 
void decode_msg (const TBoard::TCanIntf::TMsg &msg)
 
void encode_buf (uint8_t *buf) const
 Encoders data to the buffer to send over CAN.
 
void decode_buf (const uint8_t *buf)
 Decoders data from the buffer and saves to struct message.
 

Public Attributes

uint8_t Action = 0
 

Static Public Attributes

static const uint8_t cmd_id = 0x16
 
static const uint8_t msg_length = 8
 

Detailed Description

Message struct for reboooting Odrive.

Definition at line 147 of file odrive_msgs.hpp.

Constructor & Destructor Documentation

◆ Set_Reboot_msg_t() [1/2]

Set_Reboot_msg_t::Set_Reboot_msg_t ( )
constexprdefault

◆ Set_Reboot_msg_t() [2/2]

Set_Reboot_msg_t::Set_Reboot_msg_t ( const TBoard::TCanIntf::TMsg & msg)
inline

Definition at line 152 of file odrive_msgs.hpp.

References decode_msg().

Member Function Documentation

◆ decode_buf()

void Set_Reboot_msg_t::decode_buf ( const uint8_t * buf)
inline

Decoders data from the buffer and saves to struct message.

Parameters
bufpointer to the buffer

Definition at line 177 of file odrive_msgs.hpp.

References Action.

Referenced by decode_msg().

◆ decode_msg()

void Set_Reboot_msg_t::decode_msg ( const TBoard::TCanIntf::TMsg & msg)
inline

Definition at line 162 of file odrive_msgs.hpp.

References decode_buf().

Referenced by Set_Reboot_msg_t().

◆ encode_buf()

void Set_Reboot_msg_t::encode_buf ( uint8_t * buf) const
inline

Encoders data to the buffer to send over CAN.

Parameters
bufpointer to the buffer

Definition at line 170 of file odrive_msgs.hpp.

References Action.

Referenced by encode_msg().

◆ encode_msg()

void Set_Reboot_msg_t::encode_msg ( TBoard::TCanIntf::TMsg & msg)
inline

Definition at line 157 of file odrive_msgs.hpp.

References encode_buf().

Member Data Documentation

◆ Action

uint8_t Set_Reboot_msg_t::Action = 0

◆ cmd_id

const uint8_t Set_Reboot_msg_t::cmd_id = 0x16
static

Definition at line 182 of file odrive_msgs.hpp.

◆ msg_length

const uint8_t Set_Reboot_msg_t::msg_length = 8
static

Definition at line 183 of file odrive_msgs.hpp.


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