Public Member Functions | Protected Member Functions | Private Types | Private Attributes
create::SerialStream Class Reference

#include <serial_stream.h>

Inheritance diagram for create::SerialStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SerialStream (boost::shared_ptr< Data > data, const uint8_t &header=create::util::STREAM_HEADER)

Protected Member Functions

void processByte (uint8_t byteRead)
bool startSensorStream ()

Private Types

enum  ReadState {
  READ_HEADER, READ_NBYTES, READ_PACKET_ID, READ_PACKET_BYTES,
  READ_CHECKSUM
}

Private Attributes

uint32_t byteSum
uint8_t expectedNumBytes
uint8_t expectedNumDataBytes
uint8_t headerByte
uint8_t numBytesRead
uint8_t numDataBytesRead
uint16_t packetBytes
uint8_t packetID
ReadState readState

Detailed Description

Definition at line 50 of file serial_stream.h.


Member Enumeration Documentation

Enumerator:
READ_HEADER 
READ_NBYTES 
READ_PACKET_ID 
READ_PACKET_BYTES 
READ_CHECKSUM 

Definition at line 52 of file serial_stream.h.


Constructor & Destructor Documentation

create::SerialStream::SerialStream ( boost::shared_ptr< Data data,
const uint8_t &  header = create::util::STREAM_HEADER 
)

Definition at line 8 of file serial_stream.cpp.


Member Function Documentation

void create::SerialStream::processByte ( uint8_t  byteRead) [protected, virtual]

Implements create::Serial.

Definition at line 32 of file serial_stream.cpp.

bool create::SerialStream::startSensorStream ( ) [protected, virtual]

Implements create::Serial.

Definition at line 11 of file serial_stream.cpp.


Member Data Documentation

uint32_t create::SerialStream::byteSum [private]

Definition at line 67 of file serial_stream.h.

Definition at line 64 of file serial_stream.h.

Definition at line 69 of file serial_stream.h.

Definition at line 62 of file serial_stream.h.

Definition at line 66 of file serial_stream.h.

Definition at line 68 of file serial_stream.h.

Definition at line 65 of file serial_stream.h.

uint8_t create::SerialStream::packetID [private]

Definition at line 63 of file serial_stream.h.

Definition at line 61 of file serial_stream.h.


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


libcreate
Author(s): Jacob Perron
autogenerated on Sat Nov 26 2016 03:41:46