tinyproto
Public Member Functions | List of all members
tinyproto::StaticSerialHdlcLink< MTU, BUFFER_SIZE, BLOCK > Class Template Reference
Inheritance diagram for tinyproto::StaticSerialHdlcLink< MTU, BUFFER_SIZE, BLOCK >:
Inheritance graph
[legend]
Collaboration diagram for tinyproto::StaticSerialHdlcLink< MTU, BUFFER_SIZE, BLOCK >:
Collaboration graph
[legend]

Public Member Functions

 StaticSerialHdlcLink (char *dev)
 
- Public Member Functions inherited from tinyproto::ISerialLinkLayer< IHdlcLinkLayer, BLOCK >
 ISerialLinkLayer (char *dev, void *buffer, int size)
 
bool begin (on_frame_read_cb_t onReadCb, on_frame_send_cb_t onSendCb, void *udata) override
 
void end () override
 
void runRx () override
 
void runTx () override
 
void setSpeed (uint32_t speed)
 
- Public Member Functions inherited from tinyproto::IHdlcLinkLayer
 IHdlcLinkLayer (void *buffer, int size)
 
bool put (void *buf, int size, uint32_t timeout) override
 Puts new data for sending over the link layer. More...
 
void flushTx () override
 Flush tx operation if possible.
 
hdlc_crc_t getCrc ()
 
void setCrc (hdlc_crc_t crc)
 
void setBuffer (void *buffer, int size)
 
- Public Member Functions inherited from tinyproto::ILinkLayer
void setTimeout (uint32_t timeout)
 Sets timeout of Rx/Tx operations in milliseconds for the link layer protocol. More...
 
uint32_t getTimeout ()
 Returns current timeout of Rx/Tx operations.
 
int getMtu ()
 Returns current mtu for the link layer protocol in bytes.
 
void setMtu (int mtu)
 Set protocol mtu (maximum transmission unit) payload. More...
 
virtual ~ILinkLayer ()=default
 Default virtual destructor.
 

Additional Inherited Members

- Protected Member Functions inherited from tinyproto::IHdlcLinkLayer
int parseData (const uint8_t *data, int size)
 
int getData (uint8_t *data, int size)
 

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