can i store a struct in EEPROM using Nordic SPI api and sent struct through Nordic BLE api?
HW: PCA10056
SW: nRF5_SDK_15.2.0_9412b96
can i store a struct in EEPROM using Nordic SPI api and sent struct through Nordic BLE api?
HW: PCA10056
SW: nRF5_SDK_15.2.0_9412b96
Hi,
I assume there are many ways of solving this, but the following thread show basically how you can cast struct to an array, and thereby solve you problem:
https://stackoverflow.com/questions/29661516/cast-struct-to-array
The array (buffer) can be transferred or stored as you see fit, you cast the array to a struct when you want to read, write or modify the data in the array.
Best regards,
Kenneth
Hi,
I assume there are many ways of solving this, but the following thread show basically how you can cast struct to an array, and thereby solve you problem:
https://stackoverflow.com/questions/29661516/cast-struct-to-array
The array (buffer) can be transferred or stored as you see fit, you cast the array to a struct when you want to read, write or modify the data in the array.
Best regards,
Kenneth