-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
44 lines (37 loc) · 1.01 KB
/
main.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
/*
* 20200102.034
* ECG-TFT
*
* File: main.h
* Processor: PIC18F2455
* Author: wizlab.it
*/
#ifndef MAIN_H
#define MAIN_H
#include "commons.h"
#define OPERATOR_NAME_SIZE 32
#define OPERATOR_NAME_TOP_MARGIN 8
#define OPERATOR_NAME_RIGHT_MARGIN 110
#define OPERATOR_NAME_REFRESH_SHORT 2510
#define OPERATOR_NAME_REFRESH_LONG 37190
#define OPERATOR_RSSI_REFRESH 4740
#define OPERATOR_GPRS_REFRESH 5920
struct {
uint8_t gsmModuleStatus;
uint32_t nextOperatorName;
uint32_t nextRSSI;
uint32_t nextGPRSStatus;
char operatorName[OPERATOR_NAME_SIZE];
char operatorNameLastFirstChar;
uint8_t operatorRSSILevel;
uint8_t operatorGPRSIsConnected;
} GSMStatus;
uint32_t tmp1 = 0;
uint32_t tmp2 = 0;
void loop(void);
void processGSM(void);
uint8_t processGSM_CheckGSMAndSIMStatus(void);
void processGSM_RefreshOperatorName(void);
void processGSM_RefreshRSSI(void);
void processGSM_RefreshGPRS(void);
#endif