MySensors Library & Examples  2.3.2
MyIndication.h
1 /*
2  * The MySensors Arduino library handles the wireless radio link and protocol
3  * between your home built sensors/actuators and HA controller of choice.
4  * The sensors forms a self healing radio network with optional repeaters. Each
5  * repeater and gateway builds a routing tables in EEPROM which keeps track of the
6  * network topology allowing messages to be routed to nodes.
7  *
8  * Created by Henrik Ekblad <[email protected]>
9  * Copyright (C) 2013-2019 Sensnology AB
10  * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11  *
12  * Documentation: http://www.mysensors.org
13  * Support Forum: http://forum.mysensors.org
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * version 2 as published by the Free Software Foundation.
18  */
19 
20 #ifndef MyIndication_h
21 #define MyIndication_h
22 
26 typedef enum {
27  INDICATION_TX = 0,
28  INDICATION_RX,
29 
30  INDICATION_GW_TX,
31  INDICATION_GW_RX,
32 
33  INDICATION_FIND_PARENT,
34  INDICATION_GOT_PARENT,
35  INDICATION_REQ_NODEID,
36  INDICATION_GOT_NODEID,
37  INDICATION_CHECK_UPLINK,
38  INDICATION_REQ_REGISTRATION,
39  INDICATION_GOT_REGISTRATION,
40  INDICATION_REBOOT,
41  INDICATION_PRESENT,
42  INDICATION_CLEAR_ROUTING,
43  INDICATION_SLEEP,
44  INDICATION_WAKEUP,
45  INDICATION_FW_UPDATE_START,
46  INDICATION_FW_UPDATE_RX,
47  INDICATION_FW_UPDATE_RX_ERR,
48 
49  INDICATION_ERR_START = 100,
50  INDICATION_ERR_HW_INIT,
51  INDICATION_ERR_TX,
52  INDICATION_ERR_TRANSPORT_FAILURE,
53  INDICATION_ERR_INIT_TRANSPORT,
54  INDICATION_ERR_FIND_PARENT,
55  INDICATION_ERR_GET_NODEID,
56  INDICATION_ERR_CHECK_UPLINK,
57  INDICATION_ERR_SIGN,
58  INDICATION_ERR_LENGTH,
59  INDICATION_ERR_VERSION,
60  INDICATION_ERR_NET_FULL,
61  INDICATION_ERR_INIT_GWTRANSPORT,
62  INDICATION_ERR_LOCKED,
63  INDICATION_ERR_FW_FLASH_INIT,
64  INDICATION_ERR_FW_TIMEOUT,
65  INDICATION_ERR_FW_CHECKSUM,
66  INDICATION_ERR_END
67 } indication_t;
68 
73 void setIndication( const indication_t ind );
74 
78 void indication( const indication_t );
79 
80 #endif