![]() |
BSB Developer Docs
|
USB Network (virtual Ethernet) API. More...
#include <core/state.h>Go to the source code of this file.
Data Structures | |
| struct | UsbNetworkInfo |
| USB Network information structure. More... | |
Macros | |
| #define | RECORD_USB_NETWORK "usb_network" |
Typedefs | |
| typedef struct UsbNetwork | UsbNetwork |
| UsbNetwork opaque type. | |
Enumerations | |
| enum | UsbNetworkState { UsbNetworkStateUnknown , UsbNetworkStateDown , UsbNetworkStateUp } |
| Enumeration of possible UsbNetwork states. More... | |
Functions | |
| bool | usb_network_is_dhcp_addr (UsbNetwork *usb_network, const uint8_t *addr) |
| Check whether the provided IPv4 address was configured via DHCP. | |
| FuriState * | usb_network_get_state (UsbNetwork *usb_network) |
Get the UsbNetwork dynamic info object. | |
USB Network (virtual Ethernet) API.
| enum UsbNetworkState |
| FuriState * usb_network_get_state | ( | UsbNetwork * | usb_network | ) |
Get the UsbNetwork dynamic info object.
The enclosed type is UsbNetworkInfo
| [in] | usb_network | Service instance |
| bool usb_network_is_dhcp_addr | ( | UsbNetwork * | usb_network, |
| const uint8_t * | addr ) |
Check whether the provided IPv4 address was configured via DHCP.
| [in] | usb_network | Service instance |
| [in] | addr | IPv4 address to be checked |