blob: f4bc7877dd23926136bf421bf075bd6482cc079e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <stdint.h>
#define EOS_FE310_CMD_FLAG_ONEW 0x10
#define EOS_FE310_CMD_CONNECT 1
#define EOS_FE310_CMD_DISCONNECT 2
#define EOS_FE310_CMD_SCAN 3
#define EOS_FE310_CMD_PKT 4
#define EOS_FE310_MAX_CMD 8
#define EOS_FE310_SIZE_Q 64
#define EOS_FE310_SIZE_BUF 2048
typedef void (*eos_fe310_fptr_t) (unsigned char, unsigned char *, uint16_t);
void eos_fe310_init(void);
int eos_fe310_send(unsigned char cmd, unsigned char *buffer, uint16_t len);
void eos_fe310_set_handler(unsigned char cmd, eos_fe310_fptr_t handler);
|