Struct address_t

Inheritance Relationships

Base Type

Struct Documentation

struct address_t : public hi_can::addressing::structured_address_t

Inheritance diagram for hi_can::addressing::drive::vesc::address_t:

Collaboration diagram for hi_can::addressing::drive::vesc::address_t:

VESC command packet address.

Public Functions

inline address_t(const uint8_t &_vesc, const command_id &_command)
inline virtual constexpr operator raw_address_t() const override

Convert to a raw address.

Returns:

The raw address

Public Members

uint8_t vesc = static_cast<uint8_t>(device::FRONT_LEFT)

The VESC device ID.

command_id command = command_id::SET_DUTY

The VESC command ID.