Network contains the definitions related to networking.
bool ltrx_network_get_mac_address |
( |
uint8_t |
zeroBasedInterface, |
|
|
void * |
mac, |
|
|
size_t |
size |
|
) |
| |
Get MAC address.
- Return values
-
true | Success. |
false | Failed. |
- Parameters
-
[in] | zeroBasedInterface | Specifies interface to get the MAC for.
NETS_SOFTAP_START for ap0.
NETS_ETHERNET_START for eth0.
NETS_WLAN_START for wlan0.
|
[out] | mac | Receives the binary MAC address. |
[in] | size | Size of mac to be filled in. |
const struct vardef_values_interface* ltrx_network_interface_configuration_get |
( |
uint8_t |
zeroBasedInterface | ) |
|
Get Interface configuration.
- Returns
- Structure containing Interface configurables.
- Parameters
-
[in] | zeroBasedInterface | Specifies interface to check.
NETS_SOFTAP_START for ap0.
NETS_ETHERNET_START for eth0.
NETS_WLAN_START for wlan0.
|
const char* ltrx_network_interface_get_name |
( |
uint8_t |
zeroBasedInterface | ) |
|
Get Interface name.
- Returns
- Interface name.
- Parameters
-
[in] | zeroBasedInterface | Specifies interface to check.
NETS_SOFTAP_START for ap0.
NETS_ETHERNET_START for eth0.
NETS_WLAN_START for wlan0.
|