Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
asctec::SerialInterface Class Reference

#include <serialinterface.h>

List of all members.

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 (char *output, int len)
void output (unsigned 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_

Detailed Description

Definition at line 42 of file serialinterface.h.


Constructor & Destructor Documentation

asctec::SerialInterface::SerialInterface ( std::string  port,
uint32_t  speed 
)

Definition at line 49 of file serial_interface.cpp.

Definition at line 90 of file serial_interface.cpp.


Member Function Documentation

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::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.

Definition at line 331 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::output ( unsigned char *  output,
int  len 
)

Definition at line 259 of file serial_interface.cpp.

Definition at line 274 of file serial_interface.cpp.

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.


Member Data Documentation

Definition at line 61 of file serialinterface.h.

Definition at line 69 of file serialinterface.h.

Definition at line 60 of file serialinterface.h.

Definition at line 58 of file serialinterface.h.

Definition at line 72 of file serialinterface.h.

Definition at line 56 of file serialinterface.h.

Definition at line 57 of file serialinterface.h.

Definition at line 70 of file serialinterface.h.

Definition at line 71 of file serialinterface.h.

Definition at line 59 of file serialinterface.h.


The documentation for this class was generated from the following files:


asctec_autopilot
Author(s): William Morris, Ivan Dryanovski, Steven Bellens, Patrick Bouffard et al.
autogenerated on Tue Jan 7 2014 11:04:25