#include <emc_vehicle_frame.H>
Public Member Functions | |
vehicle_frame_t (pcan_frame_t const &frame_) | |
bool | present () const |
bool | booted () const |
bool | valid_coil_pulse () const |
bool | brake_lights () const |
bool | park_lights () const |
bool | steering_servo_engaged () const |
bool | remote_off_switch () const |
bool | ignition () const |
double | speed () const |
bool | throttle_clutch_engaged () const |
unsigned | generic () const |
double | battery_1_voltage () const |
double | battery_2_voltage () const |
unsigned | command () const |
Static Protected Attributes | |
static unsigned const | PRESENT_MASK = 0x01 |
static unsigned const | BOOTED_MASK = 0x02 |
static unsigned const | VALID_COIL_PULSE_MASK = 0x04 |
static unsigned const | BRAKE_LIGHTS_MASK = 0x08 |
static unsigned const | PARK_LIGHTS_MASK = 0x10 |
static unsigned const | STEERING_SERVO_ENGAGED_MASK = 0x20 |
static unsigned const | REMOTE_OFF_SWITCH_MASK = 0x40 |
static unsigned const | IGNITION_MASK = 0x80 |
static unsigned const | SPEED_OFFSET = 1 |
static unsigned const | THROTTLE_CLUTCH_ENGAGED_MASK = 0x01 |
static unsigned const | GENERIC_LO_OFFSET = 3 |
static unsigned const | GENERIC_HI_OFFSET = 4 |
static unsigned const | BATTERY_1_VOLTAGE_OFFSET = 5 |
static unsigned const | BATTERY_2_VOLTAGE_OFFSET = 6 |
static unsigned const | COMMAND_OFFSET = 7 |
pcan::vehicle_frame_t::vehicle_frame_t | ( | pcan_frame_t const & | frame_ | ) | [inline] |
double pcan::vehicle_frame_t::battery_1_voltage | ( | ) | const [inline] |
References BATTERY_1_VOLTAGE_OFFSET, TPCANMsg::DATA, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
double pcan::vehicle_frame_t::battery_2_voltage | ( | ) | const [inline] |
References BATTERY_2_VOLTAGE_OFFSET, 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::vehicle_frame_t::booted | ( | ) | const [inline] |
References BOOTED_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::vehicle_frame_t::brake_lights | ( | ) | const [inline] |
References BRAKE_LIGHTS_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().
unsigned pcan::vehicle_frame_t::command | ( | ) | const [inline] |
References COMMAND_OFFSET, TPCANMsg::DATA, and pcan::pcan_frame_t::m_msg.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
unsigned pcan::vehicle_frame_t::generic | ( | ) | const [inline] |
References TPCANMsg::DATA, GENERIC_HI_OFFSET, GENERIC_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::vehicle_frame_t::ignition | ( | ) | const [inline] |
References TPCANMsg::DATA, IGNITION_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::vehicle_frame_t::park_lights | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and PARK_LIGHTS_MASK.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::vehicle_frame_t::present | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and PRESENT_MASK.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::vehicle_frame_t::remote_off_switch | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and REMOTE_OFF_SWITCH_MASK.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
double pcan::vehicle_frame_t::speed | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and SPEED_OFFSET.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::vehicle_frame_t::steering_servo_engaged | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and STEERING_SERVO_ENGAGED_MASK.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::vehicle_frame_t::throttle_clutch_engaged | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and THROTTLE_CLUTCH_ENGAGED_MASK.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
bool pcan::vehicle_frame_t::valid_coil_pulse | ( | ) | const [inline] |
References TPCANMsg::DATA, pcan::pcan_frame_t::m_msg, and VALID_COIL_PULSE_MASK.
Referenced by cajun::aevit_t::extract_data(), and cajun::pcan_pci_t::extract_emc_frame().
unsigned const pcan::vehicle_frame_t::BATTERY_1_VOLTAGE_OFFSET = 5 [static, protected] |
Referenced by battery_1_voltage().
unsigned const pcan::vehicle_frame_t::BATTERY_2_VOLTAGE_OFFSET = 6 [static, protected] |
Referenced by battery_2_voltage().
unsigned const pcan::vehicle_frame_t::BOOTED_MASK = 0x02 [static, protected] |
Referenced by booted().
unsigned const pcan::vehicle_frame_t::BRAKE_LIGHTS_MASK = 0x08 [static, protected] |
Referenced by brake_lights().
unsigned const pcan::vehicle_frame_t::COMMAND_OFFSET = 7 [static, protected] |
Referenced by command().
unsigned const pcan::vehicle_frame_t::GENERIC_HI_OFFSET = 4 [static, protected] |
Referenced by generic().
unsigned const pcan::vehicle_frame_t::GENERIC_LO_OFFSET = 3 [static, protected] |
Referenced by generic().
unsigned const pcan::vehicle_frame_t::IGNITION_MASK = 0x80 [static, protected] |
Referenced by ignition().
unsigned const pcan::vehicle_frame_t::PARK_LIGHTS_MASK = 0x10 [static, protected] |
Referenced by park_lights().
unsigned const pcan::vehicle_frame_t::PRESENT_MASK = 0x01 [static, protected] |
Referenced by present().
unsigned const pcan::vehicle_frame_t::REMOTE_OFF_SWITCH_MASK = 0x40 [static, protected] |
Referenced by remote_off_switch().
unsigned const pcan::vehicle_frame_t::SPEED_OFFSET = 1 [static, protected] |
Referenced by speed().
unsigned const pcan::vehicle_frame_t::STEERING_SERVO_ENGAGED_MASK = 0x20 [static, protected] |
Referenced by steering_servo_engaged().
unsigned const pcan::vehicle_frame_t::THROTTLE_CLUTCH_ENGAGED_MASK = 0x01 [static, protected] |
Referenced by throttle_clutch_engaged().
unsigned const pcan::vehicle_frame_t::VALID_COIL_PULSE_MASK = 0x04 [static, protected] |
Referenced by valid_coil_pulse().