DUREX.h
2.21 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
/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:19:51T ****/
/**** 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 struct DUREX_String_t { char elems[240]; } DUREX_String_t;
#define DUREX_String_length 240
/* enum BOOLEAN */
typedef uint8_t DUREX_BOOLEAN;
#define DUREX_TRUE 0
#define DUREX_FALSE 1
/* resource serverBytesAvailable */
typedef uint8_t DUREX_serverBytesAvailable_t;
extern void DUREX_serverBytesAvailable_fetch(DUREX_serverBytesAvailable_t* const output);
extern void DUREX_serverBytesAvailable_store(DUREX_serverBytesAvailable_t* const input);
/* resource clientBytesAvailable */
typedef uint8_t DUREX_clientBytesAvailable_t;
extern void DUREX_clientBytesAvailable_fetch(DUREX_clientBytesAvailable_t* const output);
extern void DUREX_clientBytesAvailable_store(DUREX_clientBytesAvailable_t* const input);
/* resource serverData */
typedef DUREX_String DUREX_serverData_t[240];
extern void DUREX_serverData_fetch(DUREX_serverData_t* const output);
extern void DUREX_serverData_store(DUREX_serverData_t* const input);
/* resource clientData */
typedef DUREX_String DUREX_clientData_t[240];
extern void DUREX_clientData_fetch(DUREX_clientData_t* const output);
extern void DUREX_clientData_store(DUREX_clientData_t* const input);
/* resource serverMoreData */
typedef DUREX_BOOLEAN DUREX_serverMoreData_t;
extern void DUREX_serverMoreData_fetch(DUREX_serverMoreData_t* const output);
extern void DUREX_serverMoreData_store(DUREX_serverMoreData_t* const input);
/* resource clientMoreData */
typedef DUREX_BOOLEAN DUREX_clientMoreData_t;
extern void DUREX_clientMoreData_fetch(DUREX_clientMoreData_t* const output);
extern void DUREX_clientMoreData_store(DUREX_clientMoreData_t* const input);
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 */