#include <emc_serial.H>
Public Member Functions | |
emc_serial_t (int fd) | |
bool | set_turn_signals (unsigned unit) |
bool | set_gear_position (steering_data_t) |
int | get_status (unsigned device_id) |
Static Public Attributes | |
static unsigned const | MAX_BUFFER_SIZE = 13 |
static unsigned const | HEADLIGHTS_DEVICE_ID = 1 |
static unsigned const | WIPERS_DEVICE_ID = 2 |
static unsigned const | IGNITION_DEVICE_ID = 5 |
static unsigned const | TURN_SIGNAL_DEVICE_ID = 9 |
static unsigned const | GEAR_STATUS_DEVICE_ID = 13 |
static unsigned const | BREAKLIGHT_STATUS_DEVICE_ID = 14 |
static unsigned const | STARTER_1_DEVICE_ID = 26 |
static unsigned const | STARTER_2_DEVICE_ID = 28 |
Protected Attributes | |
int | m_fd |
emc_serial_t::emc_serial_t | ( | int | fd | ) |
int emc_serial_t::get_status | ( | unsigned | device_id | ) |
References m_fd, and MAX_BUFFER_SIZE.
Referenced by main().
bool emc_serial_t::set_gear_position | ( | steering_data_t | steering | ) |
References m_fd, and MAX_BUFFER_SIZE.
Referenced by main().
bool emc_serial_t::set_turn_signals | ( | unsigned | unit | ) |
References m_fd, MAX_BUFFER_SIZE, and TURN_SIGNAL_DEVICE_ID.
Referenced by main().
unsigned const cajun::emc_serial_t::BREAKLIGHT_STATUS_DEVICE_ID = 14 [static] |
unsigned const cajun::emc_serial_t::GEAR_STATUS_DEVICE_ID = 13 [static] |
unsigned const cajun::emc_serial_t::HEADLIGHTS_DEVICE_ID = 1 [static] |
unsigned const cajun::emc_serial_t::IGNITION_DEVICE_ID = 5 [static] |
int cajun::emc_serial_t::m_fd [protected] |
Referenced by get_status(), set_gear_position(), and set_turn_signals().
unsigned const cajun::emc_serial_t::MAX_BUFFER_SIZE = 13 [static] |
Referenced by get_status(), set_gear_position(), and set_turn_signals().
unsigned const cajun::emc_serial_t::STARTER_1_DEVICE_ID = 26 [static] |
unsigned const cajun::emc_serial_t::STARTER_2_DEVICE_ID = 28 [static] |
unsigned const cajun::emc_serial_t::TURN_SIGNAL_DEVICE_ID = 9 [static] |
Referenced by set_turn_signals().
unsigned const cajun::emc_serial_t::WIPERS_DEVICE_ID = 2 [static] |