|
SatCat5
|
Thin wrapper for receiving CBOR telemetry over raw-Ethernet.
Definition at line 402 of file net_telemetry.h.
#include <net_telemetry.h>
Public Member Functions | |
| TelemetryRx (satcat5::eth::Dispatch *iface, const satcat5::eth::MacType &type) | |
| Constructor sets network interface and incoming EtherType. | |
| void | telem_packet (satcat5::io::LimitedRead &src) |
| The child object MUST call this method for each received message. More... | |
| void | add_watcher (TelemetryWatcher *callback) |
| Manage the list of registered callback objects. | |
| void | remove_watcher (TelemetryWatcher *callback) |
| Manage the list of registered callback objects. | |
Protected Member Functions | |
| void | frame_rcvd (satcat5::io::LimitedRead &src) |
| Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value. More... | |
Protected Attributes | |
| satcat5::eth::Dispatch *const | m_iface |
| satcat5::net::Type | m_filter |
| Incoming packet filter. | |
Private Member Functions | |
| void | telem_item (QCBORDecodeContext *cbor, const QCBORItem &item) |
| Internal callback delivers one item to each watcher. | |
Private Attributes | |
| satcat5::net::Protocol * | m_next |
| Linked list of Protocols. | |
| satcat5::util::List< satcat5::net::TelemetryWatcher > | m_watchers |
| Linked list of registered callback objects. | |
|
protectedvirtual |
Dispatch calls frame_rcvd(...) for each incoming frame with with a matching net::Type value.
The child class SHOULD read the frame contents from the provided "src" object, which is only valid until the function returns.
To send a reply:
The child class MUST override this method.
Implements satcat5::net::Protocol.
Definition at line 49 of file net_telemetry.cc.
|
inherited |
The child object MUST call this method for each received message.
This API is also used by net::TelemetryLoopback.
Definition at line 184 of file net_telemetry.cc.