mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-19 16:33:20 +08:00
修改了Web后台的部分界面,增加了HAmqtt中的总电量传感器,后台新增mqtt上报频率设置
This commit is contained in:
45
mico-os/platform/MCU/MX1101/peripherals/Libraries/inc/nvm.h
Normal file
45
mico-os/platform/MCU/MX1101/peripherals/Libraries/inc/nvm.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file nvm.h
|
||||
* @author Sean
|
||||
* @version V1.0.0
|
||||
* @date 3-June-2013
|
||||
* @brief Nvm read and write functions declare
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2013 MVSilicon </center></h2>
|
||||
*/
|
||||
|
||||
#ifndef __NVM_H__
|
||||
#define __NVM_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif//__cplusplus
|
||||
|
||||
#include "type.h"
|
||||
|
||||
/**
|
||||
* @brief Read data from NVM Memory
|
||||
* @param NvmAddr: the NVM buffer index which you read start,its range [0:179]
|
||||
* @param Buf: the data address which you read and save data form the NVM
|
||||
* @param Length: the NVM buffer length which you read,Addr+Length must be not more than 180
|
||||
* @return 0:failure,1:success
|
||||
*/
|
||||
bool NvmRead(uint8_t NvmAddr, uint8_t* Buf, uint8_t Length);
|
||||
|
||||
/**
|
||||
* @brief Write data to NVM Memory
|
||||
* @param NvmAddr: NVM buffer index which you write start,its range [0~179]
|
||||
* @param Buf: the data address which you will write to NVM
|
||||
* @param Length: the NVM buffer length which you will write,Addr+Length must be not more than 180
|
||||
* @return 0:failure,1:success
|
||||
*/
|
||||
bool NvmWrite(uint8_t NvmAddr, uint8_t* Buf, uint8_t Length);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif//__cplusplus
|
||||
|
||||
#endif //__NVM_H__
|
||||
Reference in New Issue
Block a user