mikroSDK Reference Manual
ppp_hdlc.h
Go to the documentation of this file.
1
31#ifndef _PPP_HDLC_H
32#define _PPP_HDLC_H
33
34//Dependencies
35#include "core/nic.h"
36
37//C++ guard
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42//PPP HDLC driver
43extern const NicDriver pppHdlcDriver;
44
45//PPP HDLC driver related functions
46error_t pppHdlcDriverInit(NetInterface *interface);
47
48void pppHdlcDriverTick(NetInterface *interface);
49
50void pppHdlcDriverEnableIrq(NetInterface *interface);
51void pppHdlcDriverDisableIrq(NetInterface *interface);
52void pppHdlcDriverEventHandler(NetInterface *interface);
53
54error_t pppHdlcDriverSendPacket(NetInterface *interface,
55 const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
56
57error_t pppHdlcDriverReceivePacket(NetInterface *interface);
58
59error_t pppHdlcDriverUpdateMacAddrFilter(NetInterface *interface);
60
61error_t pppHdlcDriverSendAtCommand(NetInterface *interface, const char_t *data);
62
63error_t pppHdlcDriverReceiveAtCommand(NetInterface *interface, char_t *data,
64 size_t size);
65
66error_t pppHdlcDriverPurgeTxBuffer(PppContext *context);
67error_t pppHdlcDriverPurgeRxBuffer(PppContext *context);
68
69void pppHdlcDriverWriteTxQueue(PppContext *context, uint8_t c);
70uint8_t pppHdlcDriverReadRxQueue(PppContext *context);
71
72bool_t pppHdlcDriverReadTxQueue(NetInterface *interface, int_t *c);
73bool_t pppHdlcDriverWriteRxQueue(NetInterface *interface, uint8_t c);
74
75//C++ guard
76#ifdef __cplusplus
77}
78#endif
79
80#endif
error_t
Error codes.
Definition error.h:43
Network interface controller abstraction layer.
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89
NIC driver.
Definition nic.h:283