Webserver+3d print
PPP HDLC driver. More...
Go to the source code of this file.
Functions | |
error_t | pppHdlcDriverInit (NetInterface *interface) |
PPP HDLC driver initialization. | |
void | pppHdlcDriverTick (NetInterface *interface) |
PPP HDLC driver timer handler. | |
void | pppHdlcDriverEnableIrq (NetInterface *interface) |
Enable interrupts. | |
void | pppHdlcDriverDisableIrq (NetInterface *interface) |
Disable interrupts. | |
void | pppHdlcDriverEventHandler (NetInterface *interface) |
PPP HDLC driver event handler. | |
error_t | pppHdlcDriverSendPacket (NetInterface *interface, const NetBuffer *buffer, size_t offset) |
Send a packet. | |
error_t | pppHdlcDriverReceivePacket (NetInterface *interface) |
Receive a packet. | |
error_t | pppHdlcDriverSetMulticastFilter (NetInterface *interface) |
Configure multicast MAC address filtering. | |
error_t | pppHdlcDriverSendAtCommand (NetInterface *interface, const char_t *data) |
Send AT command. | |
error_t | pppHdlcDriverReceiveAtCommand (NetInterface *interface, char_t *data, size_t size) |
Wait for an incoming AT command. | |
error_t | pppHdlcDriverPurgeTxBuffer (PppContext *context) |
Purge TX buffer. | |
error_t | pppHdlcDriverPurgeRxBuffer (PppContext *context) |
Purge RX buffer. | |
void | pppHdlcDriverWriteTxQueue (PppContext *context, uint8_t c) |
Write TX queue. | |
uint8_t | pppHdlcDriverReadRxQueue (PppContext *context) |
Read RX queue. | |
bool_t | pppHdlcDriverReadTxQueue (NetInterface *interface, int_t *c) |
Read TX queue. | |
bool_t | pppHdlcDriverWriteRxQueue (NetInterface *interface, uint8_t c) |
Write RX queue. | |
Variables | |
const NicDriver | pppHdlcDriver |
PPP HDLC driver. |
Detailed Description
PPP HDLC driver.
License
Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version:
- 1.7.6
Definition in file ppp_hdlc.c.
Function Documentation
void pppHdlcDriverDisableIrq | ( | NetInterface * | interface ) |
Disable interrupts.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 135 of file ppp_hdlc.c.
void pppHdlcDriverEnableIrq | ( | NetInterface * | interface ) |
Enable interrupts.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 123 of file ppp_hdlc.c.
void pppHdlcDriverEventHandler | ( | NetInterface * | interface ) |
PPP HDLC driver event handler.
- Parameters:
-
[in] interface Underlying network interface
Definition at line 146 of file ppp_hdlc.c.
error_t pppHdlcDriverInit | ( | NetInterface * | interface ) |
PPP HDLC driver initialization.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 74 of file ppp_hdlc.c.
error_t pppHdlcDriverPurgeRxBuffer | ( | PppContext * | context ) |
Purge RX buffer.
- Parameters:
-
[in] context Pointer to the PPP context
- Returns:
- Error code
Definition at line 528 of file ppp_hdlc.c.
error_t pppHdlcDriverPurgeTxBuffer | ( | PppContext * | context ) |
Purge TX buffer.
- Parameters:
-
[in] context Pointer to the PPP context
- Returns:
- Error code
Definition at line 504 of file ppp_hdlc.c.
uint8_t pppHdlcDriverReadRxQueue | ( | PppContext * | context ) |
Read RX queue.
- Parameters:
-
[in] context Pointer to the PPP context
- Returns:
- Character read from the queue
Definition at line 577 of file ppp_hdlc.c.
bool_t pppHdlcDriverReadTxQueue | ( | NetInterface * | interface, |
int_t * | c | ||
) |
Read TX queue.
- Parameters:
-
[in] interface Underlying network interface [out] c Character read from the queue
- Returns:
- TRUE if a context switch is required
Definition at line 607 of file ppp_hdlc.c.
error_t pppHdlcDriverReceiveAtCommand | ( | NetInterface * | interface, |
char_t * | data, | ||
size_t | size | ||
) |
Wait for an incoming AT command.
- Parameters:
-
[in] interface Underlying network interface [out] data Buffer where to store the incoming AT command [in] size Size of the buffer, in bytes
- Returns:
- Error code
Definition at line 421 of file ppp_hdlc.c.
error_t pppHdlcDriverReceivePacket | ( | NetInterface * | interface ) |
Receive a packet.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 290 of file ppp_hdlc.c.
error_t pppHdlcDriverSendAtCommand | ( | NetInterface * | interface, |
const char_t * | data | ||
) |
Send AT command.
- Parameters:
-
[in] interface Underlying network interface [in] data NULL-terminated string that contains the AT command to be sent
- Returns:
- Error code
Definition at line 386 of file ppp_hdlc.c.
error_t pppHdlcDriverSendPacket | ( | NetInterface * | interface, |
const NetBuffer * | buffer, | ||
size_t | offset | ||
) |
Send a packet.
- Parameters:
-
[in] interface Underlying network interface [in] buffer Multi-part buffer containing the data to send [in] offset Offset to the first data byte
- Returns:
- Error code
Definition at line 181 of file ppp_hdlc.c.
error_t pppHdlcDriverSetMulticastFilter | ( | NetInterface * | interface ) |
Configure multicast MAC address filtering.
- Parameters:
-
[in] interface Underlying network interface
- Returns:
- Error code
Definition at line 372 of file ppp_hdlc.c.
void pppHdlcDriverTick | ( | NetInterface * | interface ) |
PPP HDLC driver timer handler.
This routine is periodically called by the TCP/IP stack to handle periodic operations such as polling the link state
- Parameters:
-
[in] interface Underlying network interface
Definition at line 113 of file ppp_hdlc.c.
bool_t pppHdlcDriverWriteRxQueue | ( | NetInterface * | interface, |
uint8_t | c | ||
) |
Write RX queue.
- Parameters:
-
[in] interface Underlying network interface [in] c Character to be written
- Returns:
- TRUE if a context switch is required
Definition at line 654 of file ppp_hdlc.c.
void pppHdlcDriverWriteTxQueue | ( | PppContext * | context, |
uint8_t | c | ||
) |
Write TX queue.
- Parameters:
-
[in] context Pointer to the PPP context [in] c Character to be written
Definition at line 553 of file ppp_hdlc.c.
Variable Documentation
const NicDriver pppHdlcDriver |
{ NIC_TYPE_PPP, PPP_DEFAULT_MRU, pppHdlcDriverInit, pppHdlcDriverTick, pppHdlcDriverEnableIrq, pppHdlcDriverDisableIrq, pppHdlcDriverEventHandler, pppHdlcDriverSendPacket, pppHdlcDriverSetMulticastFilter, NULL, NULL, NULL, FALSE, FALSE, FALSE, FALSE }
PPP HDLC driver.
Definition at line 47 of file ppp_hdlc.c.
Generated on Tue Jul 12 2022 17:10:22 by
