#include <drive_frame.H>
Public Member Functions | |
drive_frame_t (frame_t const &frame_) | |
unsigned | device () const |
bool | is_steering (unsigned id) const |
bool | is_throttle (unsigned id) const |
bool | active () const |
bool | error () const |
bool | alive () const |
unsigned | encoder () const |
unsigned | input () const |
bool | deactivate_requested () const |
bool | park_brake_requested () const |
bool | activate_requested () const |
bool | eval_connected () const |
bool | eval_active () const |
unsigned | generic () const |
unsigned | command () const |
Static Protected Attributes | |
static unsigned const | DEVICE_MASK = 0x0F |
static unsigned const | ACTIVE_MASK = 0x10 |
static unsigned const | ERROR_MASK = 0x60 |
static unsigned const | ALIVE_MASK = 0x80 |
static unsigned const | ENCODER_LO_OFFSET = 1 |
static unsigned const | ENCODER_HI_OFFSET = 2 |
static unsigned const | INPUT_LO_OFFSET = 1 |
static unsigned const | INPUT_HI_OFFSET = 2 |
static unsigned const | INPUT_MASK = 0x07FF |
static unsigned const | DEACTIVATE_REQUESTED_MASK = 0x08 |
static unsigned const | PARK_BRAKE_REQUESTED_MASK = 0x10 |
static unsigned const | ACTIVATE_REQUESTED_MASK = 0x20 |
static unsigned const | EVAL_CONNECTED_MASK = 0x40 |
static unsigned const | EVAL_ACTIVE_MASK = 0x80 |
static unsigned const | GENERIC_LO_OFFSET = 5 |
static unsigned const | GENERIC_HI_OFFSET = 6 |
static unsigned const | COMMAND_OFFSET = 7 |
aevit::drive_frame_t::drive_frame_t | ( | frame_t const & | frame_ | ) | [inline] |
bool aevit::drive_frame_t::activate_requested | ( | ) | const [inline] |
References ACTIVATE_REQUESTED_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::active | ( | ) | const [inline] |
References ACTIVE_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::alive | ( | ) | const [inline] |
References ALIVE_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
unsigned aevit::drive_frame_t::command | ( | ) | const [inline] |
References COMMAND_OFFSET, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::deactivate_requested | ( | ) | const [inline] |
References DEACTIVATE_REQUESTED_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
unsigned aevit::drive_frame_t::device | ( | ) | const [inline] |
References DEVICE_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
unsigned aevit::drive_frame_t::encoder | ( | ) | const [inline] |
References ENCODER_HI_OFFSET, ENCODER_LO_OFFSET, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::error | ( | ) | const [inline] |
References ERROR_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::eval_active | ( | ) | const [inline] |
References EVAL_ACTIVE_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::eval_connected | ( | ) | const [inline] |
References EVAL_CONNECTED_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
unsigned aevit::drive_frame_t::generic | ( | ) | const [inline] |
References GENERIC_HI_OFFSET, GENERIC_LO_OFFSET, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
unsigned aevit::drive_frame_t::input | ( | ) | const [inline] |
References INPUT_HI_OFFSET, INPUT_LO_OFFSET, INPUT_MASK, and aevit::frame_t::m_data.
Referenced by drive_frame_printer().
bool aevit::drive_frame_t::is_steering | ( | unsigned | id | ) | const [inline] |
bool aevit::drive_frame_t::is_throttle | ( | unsigned | id | ) | const [inline] |
bool aevit::drive_frame_t::park_brake_requested | ( | ) | const [inline] |
References aevit::frame_t::m_data, and PARK_BRAKE_REQUESTED_MASK.
Referenced by drive_frame_printer().
unsigned const aevit::drive_frame_t::ACTIVATE_REQUESTED_MASK = 0x20 [static, protected] |
Referenced by activate_requested().
unsigned const aevit::drive_frame_t::ACTIVE_MASK = 0x10 [static, protected] |
Referenced by active().
unsigned const aevit::drive_frame_t::ALIVE_MASK = 0x80 [static, protected] |
Referenced by alive().
unsigned const aevit::drive_frame_t::COMMAND_OFFSET = 7 [static, protected] |
Referenced by command().
unsigned const aevit::drive_frame_t::DEACTIVATE_REQUESTED_MASK = 0x08 [static, protected] |
Referenced by deactivate_requested().
unsigned const aevit::drive_frame_t::DEVICE_MASK = 0x0F [static, protected] |
Referenced by device().
unsigned const aevit::drive_frame_t::ENCODER_HI_OFFSET = 2 [static, protected] |
Referenced by encoder().
unsigned const aevit::drive_frame_t::ENCODER_LO_OFFSET = 1 [static, protected] |
Referenced by encoder().
unsigned const aevit::drive_frame_t::ERROR_MASK = 0x60 [static, protected] |
Referenced by error().
unsigned const aevit::drive_frame_t::EVAL_ACTIVE_MASK = 0x80 [static, protected] |
Referenced by eval_active().
unsigned const aevit::drive_frame_t::EVAL_CONNECTED_MASK = 0x40 [static, protected] |
Referenced by eval_connected().
unsigned const aevit::drive_frame_t::GENERIC_HI_OFFSET = 6 [static, protected] |
Referenced by generic().
unsigned const aevit::drive_frame_t::GENERIC_LO_OFFSET = 5 [static, protected] |
Referenced by generic().
unsigned const aevit::drive_frame_t::INPUT_HI_OFFSET = 2 [static, protected] |
Referenced by input().
unsigned const aevit::drive_frame_t::INPUT_LO_OFFSET = 1 [static, protected] |
Referenced by input().
unsigned const aevit::drive_frame_t::INPUT_MASK = 0x07FF [static, protected] |
Referenced by input().
unsigned const aevit::drive_frame_t::PARK_BRAKE_REQUESTED_MASK = 0x10 [static, protected] |
Referenced by park_brake_requested().