⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nvm.h

📁 zigbee精简协议栈代码
💻 H
字号:
#ifndef _ZNVM_H_
#define _ZNVM_H_

#include "zigbee.h"

void NVMWrite(void *dest, const void *src, size_t count);

void NVMRead(void *dest, const void *src, size_t count);

void ClearNVM( void *dest, BYTE count );

#define GetMACAddress( x )          NVMRead( (void *)x, &macLongAddr, sizeof(LONG_ADDR) )
#define PutMACAddress( x )          NVMWrite((void *)&macLongAddr, (BYTE*)x, sizeof(LONG_ADDR))
#define GetMACShortAddress(x)		NVMRead( (void *)x, &macShortAddr, sizeof(SHORT_ADDR) )
#define PutMACShortAddress(x)		NVMWrite((void *)&macShortAddr, (BYTE*)x, sizeof(SHORT_ADDR))

extern EEMEM LONG_ADDR                macLongAddr;
extern EEMEM SHORT_ADDR               macShortAddr;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -