#include <info_frame.H>
Public Member Functions | |
info_frame_t (frame_t const &frame_) | |
unsigned | command () const |
unsigned | generic (unsigned index_) const |
bool | present () const |
bool | booted () const |
bool | test_mode () const |
bool | steering_1_requested () const |
bool | steering_2_requested () const |
bool | gas_brake_1_requested () const |
bool | gas_brake_2_requested () const |
Static Protected Attributes | |
static unsigned const | COMMAND_OFFSET = 0 |
static unsigned const | GENERIC_OFFSET = 1 |
static unsigned const | PRESENT_MASK = 0x01 |
static unsigned const | BOOTED_MASK = 0x02 |
static unsigned const | TEST_MODE_MASK = 0x04 |
static unsigned const | STEERING_1_REQUESTED_MASK = 0x10 |
static unsigned const | STEERING_2_REQUESTED_MASK = 0x20 |
static unsigned const | GAS_BRAKE_1_REQUESTED_MASK = 0x40 |
static unsigned const | GAS_BRAKE_2_REQUESTED_MASK = 0x80 |
aevit::info_frame_t::info_frame_t | ( | frame_t const & | frame_ | ) | [inline] |
bool aevit::info_frame_t::booted | ( | ) | const [inline] |
References BOOTED_MASK, and aevit::frame_t::m_data.
Referenced by info_frame_printer().
unsigned aevit::info_frame_t::command | ( | ) | const [inline] |
References COMMAND_OFFSET, and aevit::frame_t::m_data.
Referenced by info_frame_printer().
bool aevit::info_frame_t::gas_brake_1_requested | ( | ) | const [inline] |
References GAS_BRAKE_1_REQUESTED_MASK, and aevit::frame_t::m_data.
Referenced by info_frame_printer().
bool aevit::info_frame_t::gas_brake_2_requested | ( | ) | const [inline] |
References GAS_BRAKE_2_REQUESTED_MASK, and aevit::frame_t::m_data.
Referenced by info_frame_printer().
unsigned aevit::info_frame_t::generic | ( | unsigned | index_ | ) | const [inline] |
References GENERIC_OFFSET, and aevit::frame_t::m_data.
Referenced by info_frame_printer().
bool aevit::info_frame_t::present | ( | ) | const [inline] |
References aevit::frame_t::m_data, and PRESENT_MASK.
Referenced by info_frame_printer().
bool aevit::info_frame_t::steering_1_requested | ( | ) | const [inline] |
References aevit::frame_t::m_data, and STEERING_1_REQUESTED_MASK.
Referenced by info_frame_printer().
bool aevit::info_frame_t::steering_2_requested | ( | ) | const [inline] |
References aevit::frame_t::m_data, and STEERING_2_REQUESTED_MASK.
Referenced by info_frame_printer().
bool aevit::info_frame_t::test_mode | ( | ) | const [inline] |
References aevit::frame_t::m_data, and TEST_MODE_MASK.
Referenced by info_frame_printer().
unsigned const aevit::info_frame_t::BOOTED_MASK = 0x02 [static, protected] |
Referenced by booted().
unsigned const aevit::info_frame_t::COMMAND_OFFSET = 0 [static, protected] |
Referenced by command().
unsigned const aevit::info_frame_t::GAS_BRAKE_1_REQUESTED_MASK = 0x40 [static, protected] |
Referenced by gas_brake_1_requested().
unsigned const aevit::info_frame_t::GAS_BRAKE_2_REQUESTED_MASK = 0x80 [static, protected] |
Referenced by gas_brake_2_requested().
unsigned const aevit::info_frame_t::GENERIC_OFFSET = 1 [static, protected] |
Referenced by generic().
unsigned const aevit::info_frame_t::PRESENT_MASK = 0x01 [static, protected] |
Referenced by present().
unsigned const aevit::info_frame_t::STEERING_1_REQUESTED_MASK = 0x10 [static, protected] |
Referenced by steering_1_requested().
unsigned const aevit::info_frame_t::STEERING_2_REQUESTED_MASK = 0x20 [static, protected] |
Referenced by steering_2_requested().
unsigned const aevit::info_frame_t::TEST_MODE_MASK = 0x04 [static, protected] |
Referenced by test_mode().