Class CanIdRequest

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class CanIdRequest : public myactuator_rmd::SingleMotorRequest<CommandType::CAN_ID_SETTING>

Request for getting/setting the CAN ID of the actuator.

Subclassed by myactuator_rmd::GetCanIdRequest, myactuator_rmd::SetCanIdRequest

Public Functions

bool isWrite() const noexcept

Check if the can request reads or writes the given CAN ID.

Returns:

True in case this is a write command, false in case it is a read command

constexpr SingleMotorRequest(std::array<std::uint8_t, 8> const &data)
constexpr SingleMotorRequest() = default
SingleMotorRequest(SingleMotorRequest const&) = default
SingleMotorRequest(SingleMotorRequest&&) = default

Protected Functions

CanIdRequest() = default
CanIdRequest(CanIdRequest const&) = default
CanIdRequest &operator=(CanIdRequest const&) = default
CanIdRequest(CanIdRequest&&) = default
CanIdRequest &operator=(CanIdRequest&&) = default