DUREX.h
2.09 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-13T02:53:20T ****/
/**** 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 */
typedef char *DUREX_String;
#define DUREX_String_length 239
/* enum BOOLEAN */
typedef uint8_t DUREX_BOOLEAN;
#define DUREX_TRUE 0
#define DUREX_FALSE 1
/* resource numServerBytes */
typedef uint8_t DUREX_numServerBytes_t;
extern void DUREX_numServerBytes_fetch(DUREX_numServerBytes_t* const output);
/* resource numClientBytes */
typedef uint8_t DUREX_numClientBytes_t;
extern void DUREX_numClientBytes_store(DUREX_numClientBytes_t* const input);
/* resource serverData */
typedef DUREX_String DUREX_serverData_t[239];
extern void DUREX_serverData_fetch(DUREX_serverData_t* const output);
/* resource clientData */
typedef DUREX_String DUREX_clientData_t[239];
extern void DUREX_clientData_store(DUREX_clientData_t* const input);
/* resource numServerPackets */
typedef uint8_t DUREX_numServerPackets_t;
extern void DUREX_numServerPackets_fetch(DUREX_numServerPackets_t* const output);
/* 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);
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 */