27 #define SERIAL_OUTPUT_BUFFER_SIZE 256 // leave at 256!
35 #define SERIAL_INPUT_BUFFER_SIZE 200
45 #define SERFRAME_MOTE2PC_DATA ((uint8_t)'D')
46 #define SERFRAME_MOTE2PC_STATUS ((uint8_t)'S')
47 #define SERFRAME_MOTE2PC_INFO ((uint8_t)'I')
48 #define SERFRAME_MOTE2PC_ERROR ((uint8_t)'E')
49 #define SERFRAME_MOTE2PC_CRITICAL ((uint8_t)'C')
50 #define SERFRAME_MOTE2PC_REQUEST ((uint8_t)'R')
53 #define SERFRAME_PC2MOTE_SETROOT ((uint8_t)'R')
54 #define SERFRAME_PC2MOTE_SETBRIDGE ((uint8_t)'B')
55 #define SERFRAME_PC2MOTE_DATA ((uint8_t)'D')
56 #define SERFRAME_PC2MOTE_TRIGGERTCPINJECT ((uint8_t)'T')
57 #define SERFRAME_PC2MOTE_TRIGGERUDPINJECT ((uint8_t)'U')
58 #define SERFRAME_PC2MOTE_TRIGGERICMPv6ECHO ((uint8_t)'E')
59 #define SERFRAME_PC2MOTE_TRIGGERSERIALECHO ((uint8_t)'S')
70 uint8_t reqFrame[1+1+2+1];
uint16_t outputCrc
Definition: openserial.h:80
uint8_t openserial_getInputBuffer(uint8_t *bufferToWrite, uint8_t maxNumBytes)
Definition: openserial.c:216
Definition: openserial.h:65
owerror_t openserial_printData(uint8_t *buffer, uint8_t length)
Definition: openserial.c:130
owerror_t openserial_printCritical(uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
Definition: openserial.c:185
uint16_t inputCrc
Definition: openserial.h:75
uint8_t outputBufIdxR
Definition: openserial.h:82
bool busyReceiving
Definition: openserial.h:73
void isr_openserial_tx()
Definition: openserial.c:544
owerror_t openserial_printStatus(uint8_t statusElement, uint8_t *buffer, uint8_t length)
Definition: openserial.c:83
The module is off, no serial activity.
Definition: openserial.h:39
uint8_t owerror_t
Definition: openwsn.h:265
bool inputEscaping
Definition: openserial.h:74
uint8_t outputBufIdxW
Definition: openserial.h:81
uint8_t inputBufFill
Definition: openserial.h:76
uint8_t reqFrameIdx
Definition: openserial.h:71
bool outputBufFilled
Definition: openserial.h:79
uint16_t errorparameter_t
Definition: openwsn.h:263
void openserial_startOutput()
Definition: openserial.c:270
void openserial_startInput()
Definition: openserial.c:238
#define SERIAL_INPUT_BUFFER_SIZE
Number of bytes of the serial input buffer, in bytes.
Definition: openserial.h:35
void openserial_init()
Definition: openserial.c:48
bool debugPrint_outBufferIndexes()
Trigger this module to print status information, over serial.
Definition: openserial.c:432
owerror_t openserial_printInfo(uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
Definition: openserial.c:158
void openserial_echo(uint8_t *buf, uint8_t bufLen)
Definition: openserial.c:639
void isr_openserial_rx()
Definition: openserial.c:567
uint8_t debugPrintCounter
Definition: openserial.h:68
uint8_t lastRxByte
Definition: openserial.h:72
#define SERIAL_OUTPUT_BUFFER_SIZE
Number of bytes of the serial output buffer, in bytes.
Definition: openserial.h:27
uint8_t mode
Definition: openserial.h:67
The serial is transmitting bytes.
Definition: openserial.h:41
void openserial_stop()
Definition: openserial.c:354
The serial is listening or receiving bytes.
Definition: openserial.h:40
owerror_t openserial_printError(uint8_t calling_component, uint8_t error_code, errorparameter_t arg1, errorparameter_t arg2)
Definition: openserial.c:170
uint8_t openserial_getNumDataBytes()
Definition: openserial.c:205