-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
take_action.h
43 lines (37 loc) · 1.61 KB
/
take_action.h
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
/**
******************************************************************************
* @file take_action.h
* @author Basavaraju B V
* @version V1.0.0
* @date 25-June-2015
* @brief This is a header file for take_action.c file
******************************************************************************
*/
#ifndef _TAKE_ACTION_
#define _TAKE_ACTION_
/*************************************************************************************************
* #includes
*************************************************************************************************/
#include<stdio.h>
#include<string.h>
#include "eeprom_storage.h"
/*************************************************************************************************
* #defines
*************************************************************************************************/
#define ALL_SWITCH 0
#define DEFAULT_SWITCH 1
#define SECOND_SWITCH 2
/*************************************************************************************************
* Exported Variables
*************************************************************************************************/
extern uint8_t gDefaultSwitchState;
extern uint8_t gSecondSwitchState;
/*************************************************************************************************
* Exported functions
*************************************************************************************************/
void turnON(uint8_t);
void turnOFF(uint8_t);
uint8_t toggleDefaultSwitch();
void updateSwitches();
uint8_t getStatus(uint8_t);
#endif // _TAKE_ACTION_