-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgsm_module.h
58 lines (51 loc) · 2.01 KB
/
gsm_module.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
******************************************************************************
* @file gsm_module.h
* @author Basavaraju B V
* @version V1.0.0
* @date 24-June-2015
* @brief This file is the header file for gsm_module.c
******************************************************************************
*/
#ifndef _GSM_MODULE_
#define _GSM_MODULE_
/*************************************************************************************************
* #includes
*************************************************************************************************/
#include<stdio.h>
#include<string.h>
#include <util/delay.h>
#include "atmega328p_usart.h"
#include "printf_code.h"
#include "wireless_control_config.h"
#include "commands.h"
#include "eeprom_storage.h"
#if(USE_GSM_MODULE != 0)
/*************************************************************************************************
* ENUM Definition
*************************************************************************************************/
typedef enum
{
GSM_IDLE = 0x00,
GSM_VOICE_CALL = 0x01,
GSM_MISSED_CALL = 0x02,
GSM_READ_MESSAGE = 0x03,
GSM_WRITE_MESSAGE = 0x04,
}eGSM_States;
/*************************************************************************************************
* Exported variables
*************************************************************************************************/
extern uint8_t gFlagLicensingUser;
extern uint8_t gFlagPrimaryUser;
extern uint8_t gCommandLength;
/*************************************************************************************************
* Exported Function
*************************************************************************************************/
void GSM_SetPrimayUser(const char*);
void GSM_WaitAndProcessRequest();
void GSM_ExtractArguement(uint8_t length);
uint8_t GSM_TestForResponse();
uint8_t GSM_SetEchoOFF();
uint8_t GSM_SetupForSMS();
#endif //USE_GSM_MODULE
#endif // _GSM_MODULE_