#include <emc_drive_frame.H>
Public Member Functions | |
drive_frame_t (pcan_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 |
pcan::drive_frame_t::drive_frame_t | ( | pcan_frame_t const & | frame_ | ) | [inline] |
bool pcan::drive_frame_t::activate_requested | ( | ) | const [inline] |
References ACTIVATE_REQUESTED_MASK, TPCANMsg::DATA, and pcan::pcan_frame_t::m_msg.
bool pcan::drive_frame_t::active | ( | ) | const [inline] |
References ACTIVE_MASK, TPCANMsg::DATA, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::drive_frame_t::alive | ( | ) | const [inline] |
References ALIVE_MASK, TPCANMsg::DATA, and pcan::pcan_frame_t::m_msg.
unsigned pcan::drive_frame_t::command | ( | ) | const [inline] |
References COMMAND_OFFSET, TPCANMsg::DATA, and pcan::pcan_frame_t::m_msg.
bool pcan::drive_frame_t::deactivate_requested | ( | ) | const [inline] |
References TPCANMsg::DATA, DEACTIVATE_REQUESTED_MASK, and pcan::pcan_frame_t::m_msg.
unsigned pcan::drive_frame_t::device | ( | ) | const [inline] |
References TPCANMsg::DATA, DEVICE_MASK, and pcan::pcan_frame_t::m_msg.
unsigned pcan::drive_frame_t::encoder | ( | ) | const [inline] |
References TPCANMsg::DATA, ENCODER_HI_OFFSET, ENCODER_LO_OFFSET, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::drive_frame_t::error | ( | ) | const [inline] |
References TPCANMsg::DATA, ERROR_MASK, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::drive_frame_t::eval_active | ( | ) | const [inline] |
References TPCANMsg::DATA, EVAL_ACTIVE_MASK, and pcan::pcan_frame_t::m_msg.
bool pcan::drive_frame_t::eval_connected | ( | ) | const [inline] |
References TPCANMsg::DATA, EVAL_CONNECTED_MASK, and pcan::pcan_frame_t::m_msg.
unsigned pcan::drive_frame_t::generic | ( | ) | const [inline] |
References TPCANMsg::DATA, GENERIC_HI_OFFSET, GENERIC_LO_OFFSET, and pcan::pcan_frame_t::m_msg.
unsigned pcan::drive_frame_t::input | ( | ) | const [inline] |
References TPCANMsg::DATA, INPUT_HI_OFFSET, INPUT_LO_OFFSET, INPUT_MASK, and pcan::pcan_frame_t::m_msg.
bool pcan::drive_frame_t::is_steering | ( | unsigned | id | ) | const [inline] |
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::drive_frame_t::is_throttle | ( | unsigned | id | ) | const [inline] |
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::drive_frame_t::park_brake_requested | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and PARK_BRAKE_REQUESTED_MASK.
unsigned const pcan::drive_frame_t::ACTIVATE_REQUESTED_MASK = 0x20 [static, protected] |
Referenced by activate_requested().
unsigned const pcan::drive_frame_t::ACTIVE_MASK = 0x10 [static, protected] |
Referenced by active().
unsigned const pcan::drive_frame_t::ALIVE_MASK = 0x80 [static, protected] |
Referenced by alive().
unsigned const pcan::drive_frame_t::COMMAND_OFFSET = 7 [static, protected] |
Referenced by command().
unsigned const pcan::drive_frame_t::DEACTIVATE_REQUESTED_MASK = 0x08 [static, protected] |
Referenced by deactivate_requested().
unsigned const pcan::drive_frame_t::DEVICE_MASK = 0x0F [static, protected] |
Referenced by device().
unsigned const pcan::drive_frame_t::ENCODER_HI_OFFSET = 2 [static, protected] |
Referenced by encoder().
unsigned const pcan::drive_frame_t::ENCODER_LO_OFFSET = 1 [static, protected] |
Referenced by encoder().
unsigned const pcan::drive_frame_t::ERROR_MASK = 0x60 [static, protected] |
Referenced by error().
unsigned const pcan::drive_frame_t::EVAL_ACTIVE_MASK = 0x80 [static, protected] |
Referenced by eval_active().
unsigned const pcan::drive_frame_t::EVAL_CONNECTED_MASK = 0x40 [static, protected] |
Referenced by eval_connected().
unsigned const pcan::drive_frame_t::GENERIC_HI_OFFSET = 6 [static, protected] |
Referenced by generic().
unsigned const pcan::drive_frame_t::GENERIC_LO_OFFSET = 5 [static, protected] |
Referenced by generic().
unsigned const pcan::drive_frame_t::INPUT_HI_OFFSET = 2 [static, protected] |
Referenced by input().
unsigned const pcan::drive_frame_t::INPUT_LO_OFFSET = 1 [static, protected] |
Referenced by input().
unsigned const pcan::drive_frame_t::INPUT_MASK = 0x07FF [static, protected] |
Referenced by input().
unsigned const pcan::drive_frame_t::PARK_BRAKE_REQUESTED_MASK = 0x10 [static, protected] |
Referenced by park_brake_requested().