#include <serialinterface.h>
Public Member Functions | |
void | dumpDebug (void) |
bool | getPacket (char *spacket, unsigned char &packet_type, unsigned short &packet_crc, unsigned short &packet_size) |
bool | getPackets (Telemetry *telemetry) |
void | output (unsigned char *output, int len) |
void | output (char *output, int len) |
void | sendControl (Telemetry *telemetry) |
void | sendEstop (Telemetry *telemetry) |
SerialInterface (std::string port, uint32_t speed) | |
~SerialInterface () | |
Public Attributes | |
int | counter |
int | pt [800] |
int * | scan |
uint32_t | serialport_bytes_rx_ |
uint32_t | serialport_bytes_tx_ |
bool | status |
Private Member Functions | |
speed_t | bitrate (int) |
void | drain () |
void | flush () |
void | stall (bool) |
int | wait (int) |
Private Attributes | |
int | dev_ |
speed_t | serialport_baud_ |
std::string | serialport_name_ |
uint32_t | serialport_speed_ |
Definition at line 42 of file serialinterface.h.
asctec::SerialInterface::SerialInterface | ( | std::string | port, | |
uint32_t | speed | |||
) |
Definition at line 49 of file serial_interface.cpp.
asctec::SerialInterface::~SerialInterface | ( | ) |
Definition at line 90 of file serial_interface.cpp.
speed_t asctec::SerialInterface::bitrate | ( | int | Bitrate | ) | [private] |
Definition at line 126 of file serial_interface.cpp.
void asctec::SerialInterface::drain | ( | ) | [private] |
Definition at line 102 of file serial_interface.cpp.
void asctec::SerialInterface::dumpDebug | ( | void | ) |
void asctec::SerialInterface::flush | ( | ) | [private] |
Definition at line 97 of file serial_interface.cpp.
bool asctec::SerialInterface::getPacket | ( | char * | spacket, | |
unsigned char & | packet_type, | |||
unsigned short & | packet_crc, | |||
unsigned short & | packet_size | |||
) |
Definition at line 147 of file serial_interface.cpp.
bool asctec::SerialInterface::getPackets | ( | Telemetry * | telemetry | ) |
Definition at line 331 of file serial_interface.cpp.
void asctec::SerialInterface::output | ( | unsigned char * | output, | |
int | len | |||
) |
Definition at line 259 of file serial_interface.cpp.
void asctec::SerialInterface::output | ( | char * | output, | |
int | len | |||
) |
Definition at line 242 of file serial_interface.cpp.
void asctec::SerialInterface::sendControl | ( | Telemetry * | telemetry | ) |
Definition at line 274 of file serial_interface.cpp.
void asctec::SerialInterface::sendEstop | ( | Telemetry * | telemetry | ) |
Definition at line 315 of file serial_interface.cpp.
void asctec::SerialInterface::stall | ( | bool | ) | [private] |
int asctec::SerialInterface::wait | ( | int | bytes_requested | ) | [private] |
Definition at line 107 of file serial_interface.cpp.
Definition at line 61 of file serialinterface.h.
int asctec::SerialInterface::dev_ [private] |
Definition at line 69 of file serialinterface.h.
int asctec::SerialInterface::pt[800] |
Definition at line 60 of file serialinterface.h.
Definition at line 58 of file serialinterface.h.
speed_t asctec::SerialInterface::serialport_baud_ [private] |
Definition at line 72 of file serialinterface.h.
Definition at line 56 of file serialinterface.h.
Definition at line 57 of file serialinterface.h.
std::string asctec::SerialInterface::serialport_name_ [private] |
Definition at line 70 of file serialinterface.h.
uint32_t asctec::SerialInterface::serialport_speed_ [private] |
Definition at line 71 of file serialinterface.h.
Definition at line 59 of file serialinterface.h.