Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hdlc.h File Reference

Go to the source code of this file.

Data Structures

struct  isdnhdlc_vars
 

Macros

#define HDLC_56KBIT   0x01
 
#define HDLC_DCHANNEL   0x02
 
#define HDLC_BITREVERSE   0x04
 
#define HDLC_FRAMING_ERROR   1
 
#define HDLC_CRC_ERROR   2
 
#define HDLC_LENGTH_ERROR   3
 

Functions

void isdnhdlc_rcv_init (struct isdnhdlc_vars *hdlc, u32 features)
 
int isdnhdlc_decode (struct isdnhdlc_vars *hdlc, const u8 *src, int slen, int *count, u8 *dst, int dsize)
 
void isdnhdlc_out_init (struct isdnhdlc_vars *hdlc, u32 features)
 
int isdnhdlc_encode (struct isdnhdlc_vars *hdlc, const u8 *src, u16 slen, int *count, u8 *dst, int dsize)
 

Macro Definition Documentation

#define HDLC_56KBIT   0x01

Definition at line 59 of file hdlc.h.

#define HDLC_BITREVERSE   0x04

Definition at line 61 of file hdlc.h.

#define HDLC_CRC_ERROR   2

Definition at line 69 of file hdlc.h.

#define HDLC_DCHANNEL   0x02

Definition at line 60 of file hdlc.h.

#define HDLC_FRAMING_ERROR   1

Definition at line 68 of file hdlc.h.

#define HDLC_LENGTH_ERROR   3

Definition at line 70 of file hdlc.h.

Function Documentation

int isdnhdlc_decode ( struct isdnhdlc_vars hdlc,
const u8 src,
int  slen,
int count,
u8 dst,
int  dsize 
)

Definition at line 131 of file isdnhdlc.c.

int isdnhdlc_encode ( struct isdnhdlc_vars hdlc,
const u8 src,
u16  slen,
int count,
u8 dst,
int  dsize 
)

Definition at line 354 of file isdnhdlc.c.

void isdnhdlc_out_init ( struct isdnhdlc_vars hdlc,
u32  features 
)

Definition at line 64 of file isdnhdlc.c.

void isdnhdlc_rcv_init ( struct isdnhdlc_vars hdlc,
u32  features 
)

Definition at line 53 of file isdnhdlc.c.