NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HostSink Class Reference

A HostSink receives data over a serial bus, buffers them and outputs the buffer later via printf. More...

Inheritance diagram for HostSink:
StaticReceiver< HostSink > Device

Public Member Functions

bool receive (MessageSerial &msg)
 HostSink (unsigned hdev, unsigned size, unsigned head_char, unsigned cont_char)
- Public Member Functions inherited from StaticReceiver< HostSink >
 StaticReceiver ()
- Public Member Functions inherited from Device
void debug_dump ()
 Device (const char *debug_name)

Private Attributes

unsigned _hdev
unsigned _size
unsigned _count
bool _overflow
unsigned _head_char
unsigned _cont_char
unsigned char * _buffer

Additional Inherited Members

- Static Public Member Functions inherited from StaticReceiver< HostSink >
static bool receive_static (Device *o, M &msg)

Detailed Description

A HostSink receives data over a serial bus, buffers them and outputs the buffer later via printf.

State: stable Features: printf output, buffering, overflow indication

Constructor & Destructor Documentation

HostSink::HostSink ( unsigned  hdev,
unsigned  size,
unsigned  head_char,
unsigned  cont_char 
)
inline

Member Function Documentation

bool HostSink::receive ( MessageSerial msg)
inline

Member Data Documentation

unsigned char* HostSink::_buffer
private
unsigned HostSink::_cont_char
private
unsigned HostSink::_count
private
unsigned HostSink::_hdev
private
unsigned HostSink::_head_char
private
bool HostSink::_overflow
private
unsigned HostSink::_size
private

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