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()
command bool isUart(sp_interface_t i)
command bool isWired(sp_interface_t i)
command bool isWireless(sp_interface_t i)
Commands - Details
getMaxInterfaces
command sp_interface_t getMaxInterfaces()
- Returns:
-
the count of available interfaces.
isUart
command bool isUart(sp_interface_t i)
- Parameters:
-
i
- the interface to check
- Returns:
-
TRUE if the link is a UART link.
isWired
command bool isWired(sp_interface_t i)
- Parameters:
-
i
- the interface to check
- Returns:
-
TRUE if the link is a wired link.
isWireless
command bool isWireless(sp_interface_t i)
- Parameters:
-
i
- the interface to check
- Returns:
-
TRUE if the link is a wireless link.