Nut/OS  4.10.3
API Reference
ahdlcavr.h File Reference

On-chip UART HDLC device definitions. More...

#include <dev/netbuf.h>
#include <net/if_var.h>
#include <dev/ahdlc.h>
Include dependency graph for ahdlcavr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int AhdlcAvrInit (NUTDEVICE *dev)
 Initialize asynchronous HDLC device.
int AhdlcAvrIOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform on-chip UART control functions.
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.
int AhdlcAvrWrite_P (NUTFILE *fp, PGM_P buffer, int len)
 Write to the asynchronous HDLC device.
NUTFILEAhdlcAvrOpen (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.

UART1 RTS Handshake Control

UART1_RTS_BIT must be defined in arch/avr.h

int AhdlcOutput (NUTDEVICE *dev, NETBUF *nb)
 Send HDLC frame.

Detailed Description

On-chip UART HDLC device definitions.

Definition in file ahdlcavr.h.