Programmable Gateways
Login
Overview
Power Industry
Serial Device Server
Programmable Gateways
Serial/Ethernet Gateway XNUT-100
CAN/Ethernet Gateway XNUT-105
Ethernet CPU Boards
Shop
Information and Support
Main Page
|
Modules
|
Data Structures
|
File List
|
Data Fields
|
Globals
|
Related Pages
|
Examples
include/dev/ahdlcavr.h File Reference
Detailed Description
On-chip UART HDLC device definitions.
Functions
int
AhdlcAvrInit
(
NUTDEVICE
*dev)
Initialize asynchronous HDLC device.
int
AhdlcAvrIOCtl
(
NUTDEVICE
*dev, int req, void *conf)
Perform on-chip UART control functions.
int
AhdlcAvrInput
(
NUTDEVICE
*dev)
int
AhdlcAvrOutput
(
NUTDEVICE
*dev)
int
AhdlcAvrFlush
(
NUTDEVICE
*dev)
int
AhdlcAvrGetRaw
(
u_char
*cp)
int
AhdlcAvrPutRaw
(
u_char
ch)
int
AhdlcAvrRead
(
NUTFILE
*fp, void *buffer, int size)
Read from the asynchronous HDLC device.
int
AhdlcAvrWrite
(
NUTFILE
*fp, CONST void *buffer, int len)
Write to the asynchronous HDLC device.
NUTFILE
*
AhdlcAvrOpen
(
NUTDEVICE
*dev, CONST char *name, int mode, int acc)
Open the asynchronous HDLC device.
int
AhdlcAvrClose
(
NUTFILE
*fp)
Close the asynchronous HDLC device.
Variables
NUTDEVICE
devAhdlc0
Device information structure.
NUTDEVICE
devAhdlc1
Device information structure.