Haptic Controller
Loading...
Searching...
No Matches
Set_Param_msg_t< T > Struct Template Referencefinal

Structure for setting ODrive Parameters Endpoint_ids can be found at the following link: https://odrive-cdn.nyc3.digitaloceanspaces.com/releases/firmware/laZ44T35qb_uR6AW6S5RdTrOL9sqZlc2_FonY3vm21Q/flat_endpoints.json. More...

Public Member Functions

constexpr Set_Param_msg_t ()=default
 
 Set_Param_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 Opcode = 1
 
uint16_t Endpoint_ID = 0
 
uint8_t Reserved = 0
 
Value
 

Static Public Attributes

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

Detailed Description

template<typename T>
struct Set_Param_msg_t< T >

Structure for setting ODrive Parameters Endpoint_ids can be found at the following link: https://odrive-cdn.nyc3.digitaloceanspaces.com/releases/firmware/laZ44T35qb_uR6AW6S5RdTrOL9sqZlc2_FonY3vm21Q/flat_endpoints.json.

Definition at line 25 of file odrive_msgs.hpp.

Constructor & Destructor Documentation

◆ Set_Param_msg_t() [1/2]

template<typename T >
Set_Param_msg_t< T >::Set_Param_msg_t ( )
constexprdefault

◆ Set_Param_msg_t() [2/2]

template<typename T >
Set_Param_msg_t< T >::Set_Param_msg_t ( const TBoard::TCanIntf::TMsg & msg)
inline

Definition at line 30 of file odrive_msgs.hpp.

References Set_Param_msg_t< T >::decode_msg().

Member Function Documentation

◆ decode_buf()

template<typename T >
void Set_Param_msg_t< 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 58 of file odrive_msgs.hpp.

References Set_Param_msg_t< T >::Endpoint_ID, Set_Param_msg_t< T >::Opcode, Set_Param_msg_t< T >::Reserved, and Set_Param_msg_t< T >::Value.

Referenced by Set_Param_msg_t< T >::decode_msg().

◆ decode_msg()

template<typename T >
void Set_Param_msg_t< T >::decode_msg ( const TBoard::TCanIntf::TMsg & msg)
inline

Definition at line 40 of file odrive_msgs.hpp.

References Set_Param_msg_t< T >::decode_buf().

Referenced by Set_Param_msg_t< T >::Set_Param_msg_t().

◆ encode_buf()

template<typename T >
void Set_Param_msg_t< 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 48 of file odrive_msgs.hpp.

References Set_Param_msg_t< T >::Endpoint_ID, Set_Param_msg_t< T >::Opcode, Set_Param_msg_t< T >::Reserved, and Set_Param_msg_t< T >::Value.

Referenced by Set_Param_msg_t< T >::encode_msg().

◆ encode_msg()

template<typename T >
void Set_Param_msg_t< T >::encode_msg ( TBoard::TCanIntf::TMsg & msg)
inline

Definition at line 35 of file odrive_msgs.hpp.

References Set_Param_msg_t< T >::encode_buf().

Member Data Documentation

◆ cmd_id

template<typename T >
const uint8_t Set_Param_msg_t< T >::cmd_id = 0x04
static

Definition at line 66 of file odrive_msgs.hpp.

◆ Endpoint_ID

◆ msg_length

template<typename T >
const uint8_t Set_Param_msg_t< T >::msg_length = 8
static

Definition at line 67 of file odrive_msgs.hpp.

◆ Opcode

template<typename T >
uint8_t Set_Param_msg_t< T >::Opcode = 1

◆ Reserved

template<typename T >
uint8_t Set_Param_msg_t< T >::Reserved = 0

◆ Value


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