I am trying to store a 2D array in non-volatile memory. Each entry in the array will be a uint8 and the whole array will be of the size 50 rows by 10 columns. The process is that the client will write to a characteristic in my application with a array row and the 10 bytes of data and then my application will store this data in the appropriate row. Then I will need to read this data later in the program.
I am a bit confused on how to use the osal_snv_write function to do this. Do I call this function as I declare the 2D array or just when I set the values? What should be the parameter "id - Valid NV item Id"?
Would this work?
VOID osal_snv_write( 0x01, 10 , arrayrow1);
VOID osal_snv_write( 0x02, 10 , arrayrow2);
...
VOID osal_snv_write( 0x32, 10 , arrayrow50);