#ifndef _APPARMS_DATA_EXAMPLE_HEAD | |
#define _APPARMS_DATA_EXAMPLE_HEAD | |
#include "apparms_data_os.h" | |
#include "apparms_config_example_srv.h" | |
#ifdef ARMS_BOARD_EXAMPLE | |
PARMSDATAFUNLIST arms_data_example_get_cfgfun_pointer(void); | |
int arms_data_example_set_waketime(unsigned long uHWId, long long nNowInSec, unsigned short nIntervalInSec); | |
int arms_data_example_get_suspend(unsigned long uHWId, int* pSuspend); | |
int arms_data_example_get_timestamp(unsigned long* pTimeStamp); | |
#ifdef ARMS_SUPPORT_DM | |
int arms_data_example_get_dm_header_tag(unsigned char* pTag); | |
int arms_data_example_get_dm_header_event(unsigned short* pEvent); | |
int arms_data_example_get_dm_generic_pid(unsigned char* pID); | |
int arms_data_example_get_dm_generic_gps(PDMGPSDATA pGPS); | |
int arms_data_example_get_dm_generic_battchg(PDMBATTCHGDATA pBattChg); | |
int arms_data_example_get_dm_generic_network(PDMNETWORKDATA pNetwork); | |
int arms_data_example_get_dm_generic_gpio(PDMGPIODATA pGpio); | |
int arms_data_example_get_dm_generic_odometer(unsigned long* pOdometer); | |
int arms_data_example_get_dm_version(PDMVERSIONDATA pVersion); | |
int arms_data_example_get_dm_extver(PDMEXTVERDATA pExtver); | |
int arms_data_example_get_dm_dmreport_pricell(PDMREPORTPRICELL pDMRptPriCell); | |
int arms_data_example_get_dm_dmreport_nbcell(PDMREPORTNBCELL pDMRptNBCell); | |
int arms_data_example_get_dm_dmreport_light(PDMREPORTLIGHTDATA pDMRptLight); | |
int arms_data_example_get_dm_dmreport_macsim(PDMREPORTMACSIM pDMRptMacSim); | |
int arms_data_example_get_dm_cusdata(unsigned char index, int* pLen, unsigned char* pData); | |
int arms_data_example_handle_dm_ack_pushmsg(unsigned char* pInData, int nInLen,unsigned char* pOutData, int *pOutLen); | |
int arms_data_example_handle_dm_ack_ok(void); | |
int arms_data_example_handle_dm_ack_fail(int nType); | |
#endif | |
#ifdef ARMS_SUPPORT_FOTA | |
int arms_data_example_get_fota_ret(PFOTARET pFOTRet); | |
int arms_data_example_get_fota_ver_fw(PFOTADATAFW pVerFW); | |
int arms_data_example_get_fota_ver_cfg(PFOTADATAFCFG pVerCfg); | |
int arms_data_example_get_fota_ver_mcu(PFOTADATAMCU pVerMCU); | |
int arms_data_example_get_fota_net_status(void); | |
int arms_data_example_get_fota_task_id(unsigned int *pTaskId); | |
int arms_data_example_save_fota_task_id(unsigned int nTaskId); | |
int arms_data_example_get_fota_device_id(char *pDevId); | |
int arms_data_example_save_fota_device_id(char *pDevId); | |
int arms_data_example_get_fota_device_sec(char *pDevSec); | |
int arms_data_example_save_fota_device_sec(char *pDevSec); | |
int arms_data_example_get_fota_deviceid_md5(char *pDevIdMD5); | |
int arms_data_example_save_fota_deviceid_md5(char *pDevIdMD5); | |
int arms_data_example_get_fota_pre_version_fw(PFOTADATAFW pPreVerFW); | |
int arms_data_example_save_fota_pre_version_fw(PFOTADATAFW pPreVerFW); | |
int arms_data_example_get_fota_pre_version_cfg(PFOTADATAFCFG pPreVerCFG); | |
int arms_data_example_save_fota_pre_version_cfg(PFOTADATAFCFG pPreVerCFG); | |
int arms_data_example_get_fota_pre_version_mcu(PFOTADATAMCU pPreVerMCU); | |
int arms_data_example_save_fota_pre_version_mcu(PFOTADATAMCU pPreVerMCU); | |
int arms_data_example_get_fota_backup(char *pBackup); | |
int arms_data_example_save_fota_backup(char *pBackup); | |
int arms_data_example_get_fota_down_size(unsigned int *pDownSize); | |
int arms_data_example_save_fota_down_size(unsigned int nDownSize); | |
int arms_data_example_upgrade(char *pPath); | |
int arms_data_example_get_region_size(unsigned int* pRegionSize); | |
int arms_data_example_get_log(char *pPath, int *pPathLen, char *pFileName, int *pFileNameLen); | |
#endif | |
#endif | |
#endif |