41 lines
952 B
C
41 lines
952 B
C
/****************************************************************************
|
|
*
|
|
* Copy right: 2017-, Copyrigths of EigenComm Ltd.
|
|
* File name: status.h
|
|
* Description: EC718 at command demo entry header file
|
|
* History: Rev1.0 2018-07-12
|
|
*
|
|
****************************************************************************/
|
|
#ifndef SUBSYS_STATUS_H
|
|
#define SUBSYS_STATUS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#define SIM_UNKNOWN 0
|
|
#define SIM_READY 1
|
|
#define SIM_REMOVED 2
|
|
|
|
|
|
typedef struct
|
|
{
|
|
uint32_t batteryVoltage : 23;
|
|
uint32_t batteryLevel : 7;
|
|
uint32_t batteryCharge : 2;
|
|
uint32_t simStatus : 2;
|
|
uint32_t nwReady : 1;
|
|
uint32_t serverReady : 1;
|
|
uint32_t reserved : 4;
|
|
uint32_t csqLevel : 8;
|
|
uint32_t rssi : 16;
|
|
char time[6];
|
|
} StatusT;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SUBSYS_STATUS_H */ |