Interface: moteiv.tos.lib.sp.SPInterface

interface SPInterface

Interface for querying the devices (radio interfaces) connected to SP.

Author:
Joe Polastre, Moteiv Corporation <info@moteiv.com>

Commands
command sp_interface_t getMaxInterfaces() Get the number of available SP interfaces.
command bool isUart(sp_interface_t i) Check if an interface is a UART link.
command bool isWired(sp_interface_t i) Check if an interface is a wired link.
command bool isWireless(sp_interface_t i) Check if an interface is a wireless link.

Commands - Details

getMaxInterfaces

command sp_interface_t getMaxInterfaces()

Get the number of available SP interfaces.

Returns:
the count of available interfaces.

isUart

command bool isUart(sp_interface_t i)

Check if an interface is a UART link.

Parameters:
i - the interface to check
Returns:
TRUE if the link is a UART link.

isWired

command bool isWired(sp_interface_t i)

Check if an interface is a wired link.

Parameters:
i - the interface to check
Returns:
TRUE if the link is a wired link.

isWireless

command bool isWireless(sp_interface_t i)

Check if an interface is a wireless link.

Parameters:
i - the interface to check
Returns:
TRUE if the link is a wireless link.