BSB Developer Docs
Loading...
Searching...
No Matches
usb_network.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <core/state.h>
8
9#define RECORD_USB_NETWORK "usb_network"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
18typedef struct UsbNetwork UsbNetwork;
19
28
35
42bool usb_network_is_dhcp_addr(UsbNetwork* usb_network, const uint8_t* addr);
43
52FuriState* usb_network_get_state(UsbNetwork* usb_network);
53
54#ifdef __cplusplus
55}
56#endif
Definition usb_network_i.h:14
USB Network information structure.
Definition usb_network.h:32
UsbNetworkState state
Current USB Network state.
Definition usb_network.h:33
UsbNetworkState
Enumeration of possible UsbNetwork states.
Definition usb_network.h:23
@ UsbNetworkStateDown
USB Network is down (e.g.
Definition usb_network.h:25
@ UsbNetworkStateUnknown
Unknown state (e.g.
Definition usb_network.h:24
@ UsbNetworkStateUp
USB Network is up (normal operation)
Definition usb_network.h:26
bool usb_network_is_dhcp_addr(UsbNetwork *usb_network, const uint8_t *addr)
Check whether the provided IPv4 address was configured via DHCP.
Definition usb_network.c:229
FuriState * usb_network_get_state(UsbNetwork *usb_network)
Get the UsbNetwork dynamic info object.
Definition usb_network.c:243