HomeAut
SysManager.h
1 /*******************************************************************************
2  * Purpose:
3  ******************************************************************************/
4 
5 #ifndef SYSMANAGER_H_
6 #define SYSMANAGER_H_
7 
8 
9 /*------------------------------------------------------------------------------
10  * Includes
11  *----------------------------------------------------------------------------*/
12 
13 #include "homeautmessage.h"
14 #include "include.h"
15 
16 
17 
18 /*------------------------------------------------------------------------------
19  * Macros & definitions
20  *----------------------------------------------------------------------------*/
21 #define HOMEAUTMESSAGE_DEVICE_CONNECT_MAX_NUM ( 5 )
22 
23 #define HOMEAUTMESSAGE_RECEIVE_QUEUE_LENGTH ( 5 )
24 #define HOMEAUTMESSAGE_RECEIVE_ITEM_SIZE ( sizeof(HOMEAUTMESSAGE_InformationType) )
25 
26 
27 
28 /*------------------------------------------------------------------------------
29  * Type definitions
30  *----------------------------------------------------------------------------*/
31 
33 typedef enum
34 {
35  State_Unknown = 0,
36  State_Connected,
37  State_Disconnected,
38  State_Server,
39  State_Last_NotUsed_NumOfHomeAutDeviceStateType
40 } HomeAutDeviceStateType;
41 
42 
44 typedef struct
45 {
46  uint8_t IP_addressDec;
47  HomeAutDeviceStateType State;
49 
50 
51 
52 /*------------------------------------------------------------------------------
53  * Global variables
54  *----------------------------------------------------------------------------*/
55 
56 extern HomeAutDeviceDataType HomeAutDevices[];
57 extern volatile uint8_t SYSMANAGER_ReceivedAnValidHomeAutMessageAndNeedProcess;
58 
59 
60 
61 /*------------------------------------------------------------------------------
62  * Global function declarations
63  *----------------------------------------------------------------------------*/
64 
65 void SYSMANAGER_Task ( void );
66 
67 
68 
69 #endif /* SYSMANAGER_H_ */
uint8_t IP_addressDec
IP address.
Definition: SysManager.h:46
HomeAutDeviceStateType State
State.
Definition: SysManager.h:47
HomeAut Device connection type: IP and status.
Definition: SysManager.h:44