161 void (*
idle)(
void* ctx, uint16_t ms);
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
A small, uniform Wi-Fi facade: init, connect, get an IP, disconnect.
struct ra8_wifi_ap ra8_wifi_ap_t
struct ra8_wifi_mac ra8_wifi_mac_t
ra8_wifi_link_t
The instantaneous association state a backend reports.
ra8_err_t(* open)(void *ctx)
Bring the radio's link up and prove it answers.
ra8_err_t(* radio_up)(void *ctx)
Start the radio in station mode.
ra8_err_t(* get_mac)(void *ctx, ra8_wifi_mac_t *out)
Read the station's own MAC address.
ra8_err_t(* get_ap)(void *ctx, ra8_wifi_ap_t *out)
Read what the radio knows about the associated AP.
ra8_err_t(* join)(void *ctx, const char *ssid, const char *psk)
Ask the station to associate with a network.
ra8_err_t(* close)(void *ctx)
Release the link the backend opened.
ra8_err_t(* service)(void *ctx, ra8_wifi_link_t *out_link)
Service the link once and report the association state.
void(* idle)(void *ctx, uint16_t ms)
Idle for ms milliseconds, pacing a bounded wait.
ra8_err_t(* radio_down)(void *ctx)
Stop the radio and release its resources.
ra8_err_t(* leave)(void *ctx)
Disassociate the station from its network.