USER MANUAL RC188x-GPR
2019 Radiocrafts AS
RIIM User Manual (rev.1.2)
Page
18
of
23
8.9. Node
The Node module contains functions for setting node power options.
Example TBD:
Example : ICI code
static
void
DemoFunc
()
{
NodeInfo info
;
Node
.
getNodeInfo
(&
info
);
Util
.
printf
(
"HW Revision is %i\n"
,
NodeInfo
.
Hardware
.
Rev
);
return
;
}
Example 9 - Node example code
The following functions are part of the Node module:
Function
Description
getNodeInfo
(Node_Info)
Return info about the node: Hardware ID+Revision, Platform
ID+Version, Application Version
Table 9 - Node functions
8.10. NVS
The NVS module contains functions for accessing the non-volatile memory. This must be used with caution, as it is
possible to erase or corrupt the module firmware. If that happens, it may need to be reprogrammed at Radiocrafts.
Example TBD
Example : ICI code
static
void
DemoFunc
()
{
const
uint8_t
buffer
=
"1234567890"
;
NVS
.
eraseSector
(
0x00001000
);
NVS
.
write
(
0x00001000
,
10
,
buffer
);
return
;
}
Example 10 - NVS example code
The following functions are part of the NVS module:
Function
Description
init
(void)
Initialize the NVS module
eraseSector
(Address)
Erase a whole FLASH sector
read
(Address, Length, Buffer)
Read a part of FLASH
write
(Address, Length, Buffer)
Write a part of FLASH
Table 10 - NVS functions