|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-allocated Wi-Fi handle. More...
#include <ra8_wifi.h>
Data Fields | |
| const ra8_wifi_backend_t * | backend |
| Bound radio operations. | |
| void * | backend_ctx |
| Backend's opaque state. | |
| ra8_wifi_ip_bind_fn | ip_bind |
| Bound IP-stack hook. | |
| void * | ip_ctx |
| Context for ip_bind. | |
| ra8_wifi_mac_t | mac |
| Cached station address. | |
| ra8_wifi_lease_t | lease |
| Cached DHCP lease. | |
| ra8_wifi_state_t | state |
| Lifecycle position. | |
| int8_t | rssi |
| Last signal reading, dBm. | |
| bool | open |
| The handle is initialised. | |
| bool | radio_on |
| The radio has been started. | |
| bool | mac_valid |
| mac has been read. | |
Caller-allocated Wi-Fi handle.
Treat every field as private.
Zero-initialise (= {}) and pass to ra8_wifi_init. It holds only the bound configuration and a little cached state, so it is small enough for file scope and carries no buffers of its own – the backend owns those.
Definition at line 397 of file ra8_wifi.h.
| const ra8_wifi_backend_t* ra8_wifi::backend |
Bound radio operations.
Definition at line 398 of file ra8_wifi.h.
Referenced by internal_ensure_radio_up(), ra8_wifi_connect(), ra8_wifi_deinit(), ra8_wifi_disconnect(), ra8_wifi_get_ap(), ra8_wifi_get_mac(), ra8_wifi_init(), and ra8_wifi_poll().
| void* ra8_wifi::backend_ctx |
Backend's opaque state.
Definition at line 399 of file ra8_wifi.h.
Referenced by internal_ensure_radio_up(), ra8_wifi_connect(), ra8_wifi_deinit(), ra8_wifi_disconnect(), ra8_wifi_get_ap(), ra8_wifi_get_mac(), ra8_wifi_init(), and ra8_wifi_poll().
| ra8_wifi_ip_bind_fn ra8_wifi::ip_bind |
Bound IP-stack hook.
Definition at line 400 of file ra8_wifi.h.
Referenced by ra8_wifi_init(), and ra8_wifi_wait_ip().
| void* ra8_wifi::ip_ctx |
Context for ip_bind.
Definition at line 401 of file ra8_wifi.h.
Referenced by ra8_wifi_init(), and ra8_wifi_wait_ip().
| ra8_wifi_lease_t ra8_wifi::lease |
Cached DHCP lease.
Definition at line 403 of file ra8_wifi.h.
Referenced by ra8_wifi_disconnect(), ra8_wifi_get_ip(), ra8_wifi_status(), and ra8_wifi_wait_ip().
| ra8_wifi_mac_t ra8_wifi::mac |
Cached station address.
Definition at line 402 of file ra8_wifi.h.
Referenced by ra8_wifi_connect(), ra8_wifi_get_mac(), and ra8_wifi_wait_ip().
| bool ra8_wifi::mac_valid |
mac has been read.
Definition at line 408 of file ra8_wifi.h.
Referenced by ra8_wifi_connect(), and ra8_wifi_get_mac().
| bool ra8_wifi::open |
The handle is initialised.
Definition at line 406 of file ra8_wifi.h.
Referenced by ra8_wifi_connect(), ra8_wifi_deinit(), ra8_wifi_disconnect(), ra8_wifi_get_ap(), ra8_wifi_get_ip(), ra8_wifi_get_mac(), ra8_wifi_init(), ra8_wifi_poll(), ra8_wifi_status(), and ra8_wifi_wait_ip().
| bool ra8_wifi::radio_on |
The radio has been started.
Definition at line 407 of file ra8_wifi.h.
Referenced by internal_ensure_radio_up(), ra8_wifi_deinit(), and ra8_wifi_disconnect().
| int8_t ra8_wifi::rssi |
Last signal reading, dBm.
Definition at line 405 of file ra8_wifi.h.
Referenced by ra8_wifi_get_ap(), and ra8_wifi_status().
| ra8_wifi_state_t ra8_wifi::state |
Lifecycle position.
Definition at line 404 of file ra8_wifi.h.
Referenced by ra8_wifi_connect(), ra8_wifi_deinit(), ra8_wifi_disconnect(), ra8_wifi_get_ap(), ra8_wifi_init(), ra8_wifi_poll(), ra8_wifi_status(), and ra8_wifi_wait_ip().