![Texas TMS320C6000 Programmer'S Reference Manual Download Page 255](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844255.webp)
Low-Level Serial Port Driver (llSerial)
D-12
When opening the device, the driver should save the callback function pointer
pCharmodeRxCb. This function should be called for each character received
while in character mode. When the driver is opened in HDLC mode, no charac-
ter mode input is received. When the HDLC mode is closed, the character
mode becomes active again.
Close Driver Character Mode
llSerialCloseCharmode
Syntax
void llSerialCloseCharmode( uint dev );
Return Value
nothing
Description
Closes the “character mode” of the low level serial driver specified by the one’s
based index dev. Once called, the serial driver should not attempt to call any
character mode callback function.
Open Driver in HDLC Mode
llSerialOpenHDLC
Syntax
uint llSerialOpenHDLC( uint dev, HANDLE hHDLC );
Return Value
This function should return 1 on success, and 0 on failure.
Description
Opens the low level serial driver specified by the one’s based index dev in
HDLC mode. The maximum value of dev is the number of devices returned
from the _llSerialInit() function.
HDLC mode input builds up buffers of one HDLC frame each, and passes them
to the HDLC object when the llSerialService() function is called. Note that the
HDLC flag character (0x7E) should always be removed from the input buffer,
but no further processing is required.
When opening the device, the driver should bind the physical index with the
logical HDLC object handle specified in hHDLC. This handle is used in receive
indications to the stack.
Close Driver HDLC Mode
llSerialCloseHDLC
Syntax
void llSerialCloseHDLC( uint dev );
Return Value
nothing
Description
Closes the “HDLC mode” of the low level serial driver specified by the one’s
based index dev. Once called, the serial driver should not attempt to indicate
HDLC frame buffers to the scheduler or stack. Any queued buffers should be
flushed.