Blame view

DUREX/out/DUREX.h 1.64 KB
Imanol-Mikel Barba Sabariego authored
1
/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-14T13:18:01T ****/
Imanol-Mikel Barba Sabariego authored
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 */
Imanol-Mikel Barba Sabariego authored
15
16
typedef char DUREX_String;
#define DUREX_String_length 229
Imanol-Mikel Barba Sabariego authored
17
18
19
20
21
22

/* enum BOOLEAN */
typedef uint8_t DUREX_BOOLEAN;
#define DUREX_TRUE 0
#define DUREX_FALSE 1
Imanol-Mikel Barba Sabariego authored
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* resource numBytes */
typedef uint8_t DUREX_numBytes_t;
extern void DUREX_numBytes_fetch(DUREX_numBytes_t* const output);
extern void DUREX_numBytes_store(DUREX_numBytes_t* const input);

/* resource data */
typedef DUREX_String DUREX_data_t[229];
extern void DUREX_data_fetch(DUREX_data_t* const output);
extern void DUREX_data_store(DUREX_data_t* const input);

/* resource numPackets */
typedef uint8_t DUREX_numPackets_t;
extern void DUREX_numPackets_fetch(DUREX_numPackets_t* const output);
extern void DUREX_numPackets_store(DUREX_numPackets_t* const input);

/* resource messageAvailable */
typedef DUREX_BOOLEAN DUREX_messageAvailable_t;
extern void DUREX_messageAvailable_fetch(DUREX_messageAvailable_t* const output);
extern void DUREX_messageAvailable_store(DUREX_messageAvailable_t* const input);
extern void DUREX_messageAvailable_indicate(void);
Imanol-Mikel Barba Sabariego authored
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

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 */