Receives the packets of a PacketEncoder: the written bytes (e.g. the output of a modem decoder) are deframed, corrected and checked, and the payload of the valid packets is written to the output.
More...
#include <PacketStream.h>
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
class tinymodem::PacketDecoder< MAX_PAYLOAD, ECC_BYTES >
Receives the packets of a PacketEncoder: the written bytes (e.g. the output of a modem decoder) are deframed, corrected and checked, and the payload of the valid packets is written to the output.
- Template Parameters
-
- Copyright
- GPLv3
◆ PacketDecoder() [1/2]
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ PacketDecoder() [2/2]
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ processFrame()
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ reset()
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
Resets the statistics and drops an incomplete frame.
◆ setOutput()
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ statistics()
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
Statistics of the received packets.
◆ write() [1/2]
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ write() [2/2]
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ escaped
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ frame
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ frame_len
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ MAX_FRAME
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ MSG_LEN
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ overflow
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ p_out
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ rs
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
◆ stats
template<uint8_t MAX_PAYLOAD = 64, uint8_t ECC_BYTES = 16>
The documentation for this class was generated from the following file: