OpenWSN Firmware
openserial.c File Reference
#include "openwsn.h"
#include "openserial.h"
#include "IEEE802154E.h"
#include "neighbors.h"
#include "sixtop.h"
#include "icmpv6echo.h"
#include "idmanager.h"
#include "openqueue.h"
#include "tcpinject.h"
#include "udpinject.h"
#include "openbridge.h"
#include "leds.h"
#include "schedule.h"
#include "uart.h"
#include "opentimers.h"
#include "openhdlc.h"

Functions

owerror_t openserial_printInfoErrorCritical (char severity, uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
 
void outputHdlcOpen ()
 Start an HDLC frame in the output buffer. More...
 
void outputHdlcWrite (uint8_t b)
 Add a byte to the outgoing HDLC frame being built. More...
 
void outputHdlcClose ()
 Finalize the outgoing HDLC frame. More...
 
void inputHdlcOpen ()
 Start an HDLC frame in the input buffer. More...
 
void inputHdlcWrite (uint8_t b)
 Add a byte to the incoming HDLC frame. More...
 
void inputHdlcClose ()
 Finalize the incoming HDLC frame. More...
 
void openserial_init ()
 
owerror_t openserial_printStatus (uint8_t statusElement, uint8_t *buffer, uint8_t length)
 
owerror_t openserial_printData (uint8_t *buffer, uint8_t length)
 
owerror_t openserial_printInfo (uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
 
owerror_t openserial_printError (uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
 
owerror_t openserial_printCritical (uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
 
uint8_t openserial_getNumDataBytes ()
 
uint8_t openserial_getInputBuffer (uint8_t *bufferToWrite, uint8_t maxNumBytes)
 
void openserial_startInput ()
 
void openserial_startOutput ()
 
void openserial_stop ()
 
bool debugPrint_outBufferIndexes ()
 Trigger this module to print status information, over serial. More...
 
void isr_openserial_tx ()
 
void isr_openserial_rx ()
 
void openserial_echo (uint8_t *buf, uint8_t bufLen)
 

Variables

openserial_vars_t openserial_vars
 Definition of the "openserial" driver. More...
 

Function Documentation

port_INLINE void inputHdlcClose ( void  )

Finalize the incoming HDLC frame.

port_INLINE void inputHdlcOpen ( void  )

Start an HDLC frame in the input buffer.

port_INLINE void inputHdlcWrite ( uint8_t  b)

Add a byte to the incoming HDLC frame.

owerror_t openserial_printInfoErrorCritical ( char  severity,
uint8_t  calling_component,
uint8_t  error_code,
errorparameter_t  arg1,
errorparameter_t  arg2 
)
port_INLINE void outputHdlcClose ( void  )

Finalize the outgoing HDLC frame.

port_INLINE void outputHdlcOpen ( void  )

Start an HDLC frame in the output buffer.

port_INLINE void outputHdlcWrite ( uint8_t  b)

Add a byte to the outgoing HDLC frame being built.

Variable Documentation

openserial_vars_t openserial_vars

Definition of the "openserial" driver.

Author
Fabien Chraim chrai.nosp@m.m@ee.nosp@m.cs.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u, March 2012.