This Class implements an Parser, classes they inherit this, are able to "dock" on an IOBus. Its used for e.g. for RS-485 Communication busses, there may different devices on one bus. Its not pratcicable to wrote an huge extract_packed for this, each device can with this clas implement it's own extractor.
| int Parser::readPacket |
( |
uint8_t * |
buffer, |
|
|
int |
buffer_size, |
|
|
int |
packet_timeout, |
|
|
int |
first_byte_timeout = -1 |
|
) |
| |
|
virtual |
read packed calls the readPacked from IOBus, if this readPacked is used only the extract packed from this Device is called, other device-extractors are not involved, to no call to packedReady (see IOBusHandler) is done. If youre devices not request->answer like you need to use the IOBusHandler, and call the readPacked from IOBus.
Reimplemented in iodrivers_base::BusHandler.