Part Number: CC1352P
Other Parts Discussed in Thread: SYSCONFIG
I have developed my own application using the collector and sensor application, but I want to write data to and read data from flash memory.When I download the nvsinternal example, I see NVS_write and NVS_read commands. I understand that I can write and read data to a specific address using these commands.However, in the collector part, data can be written using Main_user1Cfg.nvFps.writeItem as an example. But I cannot fully grasp this interface structure. The part I cannot understand is:
NVINTF_itemID_t id;
/* Setup NV ID */
id.systemID = memory_location_panid;
id.itemID = 0;
id.subID = 0;
/* write dynamicWeightThreshold */
Main_user1Cfg.nvFps.writeItem(id,sizeof collectorPanId, &collectorPanId);
I am writing data to memory with this command, but I don't understand which address I am writing to. Here, with variables like id.systemID, id.itemID, id.subID, I want to understand how I can determine where I am writing data. As you know, in the example, there are many values written and read to memory. I don't want to accidentally delete these variables. Therefore, I want to perform the write and read operations by explaining where and what I am writing. How can I achieve this?