Serial HDLC Client and Server Support
C-14
C.2 Serial HDLC Client and Server Support
C.2.1 Please Note
The HDLC API is user callable. Unlike the low level PPP support API, users
should not use the llEnter()/llExit() functions when calling the functions de-
scribed in this section.
C.2.2 Synopsis
The implementation of HDLC supplied in the TCP/IP stack library is available
in an optional serial support library that includes the HAL layer serial driver
(llSerial). The HDLC module is all that is required to enable PPP over the serial
port. There is no need to call the PPP API directly.
C.2.3 Function Overview
Called by Application:
hdlcNew()
Create a Serial HDLC Client Session
hdlcFree()
Destroy a Serial HDLC Client Session
hdlcGetStatus()
Get the Call Status of a Serial HDLC Client
Session
hdlcsNew()
Create a Serial HDLC Server Session
hdlcsFree()
Destroy a Serial HDLC Server Session
hdlcsGetStatus()
Get the Call Status of a Server HDLC Client
Session
Called by Serial Port Driver:
hdlcInput()
Send HDLC input buffer for processing
C.2.4 HDLC API Functions
Create a Serial HDLC Client Session
hdlcNew
Syntax
HANDLE hdlcNew( uint Dev, uint pppFlags, UINT32 cmap, char *Username,
char *Password );
Parameter(s)
Dev
Physical index of serial port to use
pppFlags
Connection option flags
cmap
Async control character map