11 #include <satcat5/pkt_buffer.h>
32 u8* buff,
unsigned buffbytes);
55 template<
unsigned SIZE = SATCAT5_DEFAULT_PKTBUFF>
Event-handler interface for newly received data.
The PacketBuffer class is a wrapper for a circular buffer, with optional logic to support retention o...
The PacketCombiner class combines packets written to it into a single packet, and forwards it to a Wr...
void set_timeout(unsigned msec)
Set a timeout for automatic data forwarding after a period, if the buffer is not yet full.
void send_now()
Send the buffer now.
PacketCombiner(satcat5::io::Writeable *dst, u8 *buff, unsigned buffbytes)
Create an object that combines packets.
void data_rcvd(satcat5::io::Readable *src) override
The data_rcvd() callback is polled whenever data is available.
void timer_event() override
Child class MUST override this method.
PacketCombiner with statically-allocated working memory.
PacketCombinerStatic(satcat5::io::Writeable *dst)
Link parent object to the statically allocated buffer.
Abstract API for reading byte-streams and packets.
Abstract API for writing byte-streams and packets.
Wrapper class for forwarding writes to another object.
Timer objects are polled after a fixed delay or at a regular interval.
I/O interface core definitions.
Core event-processing loop for SatCat5 software.
Basic type aliases and prototypes used throughout SatCat5.