Arduino KVComm
master
Key-Value pair communication library for Arduino
|
Go to the documentation of this file.
41 size_t writePacket(
const uint8_t *data,
size_t len);
46 size_t write(
const uint8_t *data,
size_t len);
104 size_t writePacket(
const uint8_t *data,
size_t len);
109 size_t write(
const uint8_t *data,
size_t len);
size_t beginPacket()
Start a packet.
size_t writePacket(const uint8_t *data, size_t len)
Sends a packet.
StreamSender(Stream *stream)
SLIPStream(Stream &stream)
typename boost::uint_t< CRC::bit_count >::least checksum_t
The integer type of the checksum.
Class that implements SLIP, a simple packet framing protocol.
size_t operator()(uint8_t c) const
SLIPSenderCRC< StreamSender, CRC > sender
typename SLIPParserCRC< CRC >::checksum_t checksum_t
The integer type of the checksum.
SLIPParserCRC< CRC > parser
size_t endPacket()
Finish the packet.
SLIPStreamCRC(Stream &stream, CRC &&senderCRC, const SLIPParser &parser, CRC &&parserCRC)
Class for parsing SLIP packets with a CRC checksum to check the integrity of the packets.
bool wasTruncated() const
Check if the previous packet was truncated.
Class for parsing SLIP packets.
bool wasTruncated() const
Check if the previous packet was truncated.
SLIPStream(Stream &stream, const SLIPParser &parser)
StreamSender(Stream &stream)
size_t readPacket()
Receives a packet into the read buffer.
size_t numTruncated() const
Get the number of bytes that were truncated due to the previous packet being too large for the buffer...
size_t numTruncated() const
Get the number of bytes that were truncated due to the previous packet being too large for the buffer...
size_t write(const uint8_t *data, size_t len)
Write some data as the body of a packet.
size_t endPacket()
Finish the packet.
checksum_t checksum() const
Get the checksum of the previous packet.
size_t beginPacket()
Start a packet.
size_t write(const uint8_t *data, size_t len)
Write some data as the body of a packet.
bool wasTruncated() const
Check if the previous packet was truncated.
Class that implements SLIP, a simple packet framing protocol, and that uses cyclic redundancy checks ...
Functor that sends bytes over an Arduino Stream.
Class for sending SLIP packets with a CRC checksum to check the integrity of the packets.
size_t numTruncated() const
Get the number of bytes that were truncated due to the previous packet being too large for the buffer...
size_t readPacket()
Receives a packet into the read buffer.
size_t writePacket(const uint8_t *data, size_t len)
Sends a packet.