Blinker.h
2.04 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
72
/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-07-30T13:03:35T ****/
/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
#ifndef Blinker__H
#define Blinker__H
#include "Em_Types.h"
#include "Em_Message.h"
#ifdef __cplusplus
extern "C" {
#endif
/* -------- connection callback functions implemented by the application -------- */
void Blinker_connectHandler(void);
void Blinker_disconnectHandler(void);
/* -------- resource types defined in the schema -------- */
/* enum Cmd */
typedef uint8_t Blinker_Cmd;
#define Blinker_START_CMD 0
#define Blinker_STOP_CMD 1
/* enum LedState */
typedef uint8_t Blinker_LedState;
#define Blinker_LED_OFF 0
#define Blinker_LED_ON 1
/* -------- resource callback functions implemented by the application -------- */
/* resource cmd */
typedef Blinker_Cmd Blinker_cmd_t;
extern void Blinker_cmd_store(Blinker_cmd_t* input);
/* resource count */
typedef int16_t Blinker_count_t;
extern void Blinker_count_fetch(Blinker_count_t* output);
extern void Blinker_count_store(Blinker_count_t* input);
/* resource delay */
typedef uint16_t Blinker_delay_t;
#define Blinker_delay_min 500
#define Blinker_delay_max 2000
#define Blinker_delay_step 100
#define Blinker_delay_scale 1000
extern void Blinker_delay_fetch(Blinker_delay_t* output);
extern void Blinker_delay_store(Blinker_delay_t* input);
/* resource ledState */
typedef Blinker_LedState Blinker_ledState_t;
extern void Blinker_ledState_fetch(Blinker_ledState_t* output);
extern void Blinker_ledState_indicate(void); /* called by the application */
/* -------- application functions implemented in Blinker.c -------- */
void Blinker_accept(bool enable);
void Blinker_activateParameters(uint8_t group);
void Blinker_broadcastOff(void);
void Blinker_disconnect(void);
void Blinker_pairingOn(uint8_t secs, void(*handler)(void));
void Blinker_pairingOff(void(*handler)(void));
void Blinker_reset(void);
void Blinker_setDeviceName(const char* name);
void Blinker_start(void);
#ifdef __cplusplus
}
#endif
#endif /* Blinker__H */