SatCat5
satcat5::eth::LogToCbor Class Referencefinal

Detailed Description

Specialization of satcat5::log::ToCbor for raw-Ethernet frames.

Definition at line 114 of file log_cbor.h.

#include <log_cbor.h>

Inheritance diagram for satcat5::eth::LogToCbor:
[legend]
Collaboration diagram for satcat5::eth::LogToCbor:
[legend]

Public Member Functions

 LogToCbor (satcat5::eth::Dispatch *eth, const satcat5::eth::MacType &typ)
 Constructor binds to a specific interface and EtherType. More...
 
void connect (const satcat5::eth::MacAddr &addr, const satcat5::eth::MacType &type)
 Set the destination address.
 
void close ()
 Stop message forwarding.
 
void set_min_priority (s8 priority)
 

Protected Member Functions

void log_event (s8 priority, unsigned nbytes, const char *msg) override
 Callback for each formatted Log message. More...
 

Protected Attributes

satcat5::eth::Address m_addr
 
satcat5::net::Address *const m_dst
 

Private Attributes

s8 m_min_priority = satcat5::log::DEBUG
 
satcat5::log::EventHandlerm_next
 

Constructor & Destructor Documentation

◆ LogToCbor()

satcat5::eth::LogToCbor::LogToCbor ( satcat5::eth::Dispatch eth,
const satcat5::eth::MacType typ 
)

Constructor binds to a specific interface and EtherType.

The default destination is the broadcast address. To change this behavior, call connect.

Definition at line 131 of file log_cbor.cc.

Member Function Documentation

◆ log_event()

void ToCbor::log_event ( s8  priority,
unsigned  nbytes,
const char *  msg 
)
overrideprotectedvirtualinherited

Callback for each formatted Log message.

Child class must override this method.)

Implements satcat5::log::EventHandler.

Definition at line 96 of file log_cbor.cc.


The documentation for this class was generated from the following files: