OpenWSN Firmware

Macros

#define HDLC_FLAG   0x7e
 
#define HDLC_ESCAPE   0x7d
 
#define HDLC_ESCAPE_MASK   0x20
 
#define HDLC_CRCINIT   0xffff
 
#define HDLC_CRCGOOD   0xf0b8
 

Functions

uint16_t crcIteration (uint16_t crc, uint8_t byte)
 Definition of the "openserial" driver. More...
 

Detailed Description

Macro Definition Documentation

#define HDLC_CRCGOOD   0xf0b8
#define HDLC_CRCINIT   0xffff
#define HDLC_ESCAPE   0x7d
#define HDLC_ESCAPE_MASK   0x20
#define HDLC_FLAG   0x7e

Function Documentation

uint16_t crcIteration ( uint16_t  crc,
uint8_t  byte 
)

Definition of the "openserial" driver.

Author
Min Ting tingm.nosp@m.417@.nosp@m.gmail.nosp@m..com, October 2012.
Fabien Chraim chrai.nosp@m.m@ee.nosp@m.cs.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u, October 2012.