|
1
|
/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-13T02:53:20T ****/
|
|
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/
#ifndef DUREX__H
#define DUREX__H
#include "Em_Types.h"
#include "Em_Message.h"
#ifdef __cplusplus
extern "C" {
#endif
/* typedef String */
|
|
15
16
|
typedef char *DUREX_String;
#define DUREX_String_length 239
|
|
17
18
19
20
21
22
|
/* enum BOOLEAN */
typedef uint8_t DUREX_BOOLEAN;
#define DUREX_TRUE 0
#define DUREX_FALSE 1
|
|
23
24
25
|
/* resource numServerBytes */
typedef uint8_t DUREX_numServerBytes_t;
extern void DUREX_numServerBytes_fetch(DUREX_numServerBytes_t* const output);
|
|
26
|
|
|
27
28
29
|
/* resource numClientBytes */
typedef uint8_t DUREX_numClientBytes_t;
extern void DUREX_numClientBytes_store(DUREX_numClientBytes_t* const input);
|
|
30
31
|
/* resource serverData */
|
|
32
|
typedef DUREX_String DUREX_serverData_t[239];
|
|
33
34
35
|
extern void DUREX_serverData_fetch(DUREX_serverData_t* const output);
/* resource clientData */
|
|
36
|
typedef DUREX_String DUREX_clientData_t[239];
|
|
37
38
|
extern void DUREX_clientData_store(DUREX_clientData_t* const input);
|
|
39
40
41
|
/* resource numServerPackets */
typedef uint8_t DUREX_numServerPackets_t;
extern void DUREX_numServerPackets_fetch(DUREX_numServerPackets_t* const output);
|
|
42
|
|
|
43
44
45
46
47
48
49
50
51
52
53
54
|
/* resource numClientPackets */
typedef uint8_t DUREX_numClientPackets_t;
extern void DUREX_numClientPackets_store(DUREX_numClientPackets_t* const input);
/* resource clientMessageAvailable */
typedef DUREX_BOOLEAN DUREX_clientMessageAvailable_t;
extern void DUREX_clientMessageAvailable_store(DUREX_clientMessageAvailable_t* const input);
/* resource serverMessageAvailable */
typedef DUREX_BOOLEAN DUREX_serverMessageAvailable_t;
extern void DUREX_serverMessageAvailable_fetch(DUREX_serverMessageAvailable_t* const output);
extern void DUREX_serverMessageAvailable_indicate(void);
|
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
void DUREX_reset(void);
void DUREX_run(void);
void DUREX_accept(bool enable);
void DUREX_disconnect(void);
void DUREX_pairingOn(uint8_t secs, void(*handler)(void));
void DUREX_pairingOff(void(*handler)(void));
void DUREX_connectHandler(void);
void DUREX_disconnectHandler(void);
#ifdef __cplusplus
}
#endif
#endif /* DUREX__H */
|