aboutsummaryrefslogtreecommitdiff
path: root/src/nio.h
blob: 01aa61ec2ff701bdf19ffcd78134bfbd49d80e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * N: I/O
 */

#ifndef NIO_H
#define NIO_H

#define DFUJI   0x71
#define DREAD   0x40
#define DWRITE  0x80
#define DUPDATE 0xC0

#define OREAD   0x04
#define OWRITE  0x08
#define OUPDATE 0x0C

#define SUCCESS 1
#define DERROR  144

#define DVSTAT_BYTES_WATING_LO  0
#define DVSTAT_BYTES_WATING_HI  1
#define DVSTAT_PROTOCOL		    2 
#define DVSTAT_EXTENDED_ERROR	3

char nopen(void);
char nclose(void);
char nstatus(void);
char nread_rxbuf(void);
char nwrite_txbuf(void);
char nreset(void);

#endif /* NIO_H */