#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "rlcutil.h"
#include "rl3964r.h"
Go to the source code of this file.
|
static const char * | statestr [] = {"idle","sending","receiving","want_to_send","want_to_receive"} |
|
◆ ACK
◆ DLE
◆ ENQ
◆ EOT
◆ ETB
◆ ETX
◆ NAK
◆ STX
◆ State
Enumerator |
---|
IDLE | |
SENDING | |
RECEIVING | |
WANT_TO_SEND | |
WANT_TO_RECEIVE | |
Definition at line 30 of file rl3964r.cpp.
◆ receiverThread()
static void* receiverThread |
( |
void * |
arg | ) |
|
|
static |
Definition at line 41 of file rl3964r.cpp.
70 d->
dprintf(
"receiverThread: STX WANT_TO_SEND lowPriority\n");
78 d->
dprintf(
"receiverThread: STX WANT_TO_SEND highPriority\n");
84 d->
dprintf(
"receiverThread: DLE WANT_TO_SEND\n");
91 d->
dprintf(
"receiverThread: NAK\n");
98 else if(send_retry < 3)
102 d->
dprintf(
"receiverThread: WANT_TO_SEND send=STX retry=%d\n",send_retry+1);
107 d->
dprintf(
"receiverThread: WANT_TO_SEND failed after 3 retries\n");
114 d->
dprintf(
"receiverThread: IDLE\n");
static const char * statestr[]
int writeChar(unsigned char uchar)
int select(int timeout=500)
int dprintf(const char *format,...)
◆ statestr
const char* statestr[] = {"idle","sending","receiving","want_to_send","want_to_receive"} |
|
static |