Part Number:CC2640R2F
在osal_snv.h中定义了读写nv的函数,但函数中未说明一次可写入读取的字节数限制。请问每个NV id对应的flash可保存的字节是多少?谢谢大佬~
/********************************************************************* * @fnosal_snv_read * * @briefRead data from NV. * * @paramid- Valid NV item Id. * @paramlen - Length of data to read. * @param*pBuf - Data is read into this buffer. * * @return SUCCESS if successful. *Otherwise, NV_OPER_FAILED for failure. */ extern uint8 osal_snv_read( osalSnvId_t id, osalSnvLen_t len, void *pBuf); /********************************************************************* * @fnosal_snv_write * * @briefWrite a data item to NV. * * @paramid- Valid NV item Id. * @paramlen - Length of data to write. * @param*pBuf - Data to write. * * @return SUCCESS if successful, NV_OPER_FAILED if failed. */ extern uint8 osal_snv_write( osalSnvId_t id, osalSnvLen_t len, void *pBuf);
Kevin Qiu1:
osalSnvLen_t 的默认大小类型是 uint8,因此每个 NV id大小为 255 字节