|
iodrivers_base
|
#include <Bus.hpp>
Public Member Functions | |
| BusHandler (Bus *bus, bool auto_register=true) | |
| ~BusHandler () | |
| virtual void | packedReady (uint8_t const *buffer, size_t size)=0 |
| virtual int | readPacket (uint8_t *buffer, int buffer_size, int packet_timeout, int first_byte_timeout=-1) |
Public Member Functions inherited from iodrivers_base::Parser | |
| Parser (Bus *bus) | |
| virtual | ~Parser () |
| virtual int | extractPacket (uint8_t const *buffer, size_t buffer_size) const =0 |
| bool | writePacket (uint8_t const *buffer, int bufsize, int timeout) |
Additional Inherited Members | |
Protected Attributes inherited from iodrivers_base::Parser | |
| Bus * | bus |
This class Extends the Parser, this class should be inherit for all devices that send periodicly data to the bus, and are not request->answer based. In case an Parser detects an packed for this Device, the function packedReady get's call IF this class is registered to the Bus.
| BusHandler::BusHandler | ( | Bus * | bus, |
| bool | auto_register = true |
||
| ) |
Give the bus to which this Device belogns, auto_registration is done by the second parameter
| BusHandler::~BusHandler | ( | ) |
|
pure virtual |
see IODriver
|
virtual |
See IODriver
Reimplemented from iodrivers_base::Parser.
1.8.6