openpcd/openpicc/application/cmd.h @ master
1 |
#ifndef CMD_H_
|
---|---|
2 |
#define CMD_H_
|
3 |
|
4 |
#include <queue.h>
|
5 |
|
6 |
#define MAX_CMD_LEN 32
|
7 |
|
8 |
typedef struct { |
9 |
enum { SRC_USB, SRC_RF } source; |
10 |
portCHAR command[ MAX_CMD_LEN ]; |
11 |
} cmd_type; |
12 |
|
13 |
portBASE_TYPE vCmdInit(void); |
14 |
extern void DumpUIntToUSB(unsigned int data); |
15 |
extern void DumpStringToUSB(const char *string); |
16 |
extern void DumpBufferToUSB(char* buffer, int len); |
17 |
extern void DumpTimeToUSB(long ticks); |
18 |
extern xQueueHandle xCmdQueue; |
19 |
|
20 |
#endif /*CMD_H_*/ |