USER MANUAL RC188x-GPR
2019 Radiocrafts AS
RIIM User Manual (rev.1.2)
Page
14
of
23
8.4. Debug
The Debug module contains useful functions for debugging.
The following example shows how you can dump the configuration of the node by calling Debug.printSetup().
Example : ICI code
RIIM_SETUP
()
{
Network
.
startBorderRouter
(
NULL
,
NULL
,
NULL
,
NULL
);
// Print out the configuration
Debug
.
printSetup
();
return
UAPI_OK
;
}
Example 4 - Debug example code
The following functions are part of the Debug module.
Function
Description
printPayload
(Payload, Payload_Size)
Dump the payload to the UART
printSetup
()
Print the current node setup on the UART
printIPAddr
(IPAddr)
Nicely print
IPAddr
Table 4 - Debug functions
8.5. Ethernet
The Ethernet module contains functions for the Ethernet physical connection.
The following example shows how to initialize the Ethernet controller. However, this is normally not necessary as
the Ethernet module is automatically initialized if the node is configured as a Border Router.
Example : ICI code
void
DemoFunc
()
{
Ethernet
.
init
();
}
Example 5 - Ethernet example code
The following functions are part of the Ethernet module.
Function
Description
Init
()
Initialize the Ethernet module. This is automatically called when user
starts the Border Router with
Network.startBorderRouter
, and it is
then not necessary to call this.
Table 5 - Ethernet functions