ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
wifi_hal_run_cfg Struct Reference

Injected dependencies for the hardware-free wifi_hal_join_run. More...

#include <wifi_hal_join.h>

Collaboration diagram for wifi_hal_run_cfg:

Data Fields

const ra8_wifi_cfg_twifi_cfg
 Facade config: backend + ip provider.
ra8_wifi_twifi
 Caller-allocated facade handle.
const char * ssid
 Target SSID; empty means "no creds".
const char * psk
 Passphrase, or null for an open network.
uint32_t poll_budget
 Association poll attempts after connect.

Detailed Description

Injected dependencies for the hardware-free wifi_hal_join_run.

The facade configuration and handle are caller-owned, so the same core runs in two places: main.c builds the config over the C6 backend and a NetX DHCP provider, and the host test builds it over a mock backend and a canned provider. The core touches no hardware, no RTOS and no console.

Invariant
wifi_cfg and wifi are non-null and out-live the run.
poll_budget is non-zero, so the association wait runs at least once.
Example:
wifi_hal_run_cfg_t cfg = { .wifi = &s_wifi, .wifi_cfg = &wcfg,
.ssid = s_ssid, .psk = s_psk,
.poll_budget = (uint32_t)k_wifi_hal_assoc_polls };
static ra8_wifi_t s_wifi
The Wi-Fi handle every operation goes through.
Definition main.c:66
struct wifi_hal_run_cfg wifi_hal_run_cfg_t
@ k_wifi_hal_assoc_polls
Extra association polls after connect.
See also
wifi_hal_join_run
Since
0.1.0

Definition at line 215 of file wifi_hal_join.h.

Field Documentation

◆ poll_budget

uint32_t wifi_hal_run_cfg::poll_budget

Association poll attempts after connect.

Definition at line 220 of file wifi_hal_join.h.

Referenced by wifi_hal_join_run().

◆ psk

const char* wifi_hal_run_cfg::psk

Passphrase, or null for an open network.

Definition at line 219 of file wifi_hal_join.h.

Referenced by wifi_hal_join_run().

◆ ssid

const char* wifi_hal_run_cfg::ssid

Target SSID; empty means "no creds".

Definition at line 218 of file wifi_hal_join.h.

Referenced by wifi_hal_join_run().

◆ wifi

ra8_wifi_t* wifi_hal_run_cfg::wifi

Caller-allocated facade handle.

Definition at line 217 of file wifi_hal_join.h.

Referenced by wifi_hal_join_run().

◆ wifi_cfg

const ra8_wifi_cfg_t* wifi_hal_run_cfg::wifi_cfg

Facade config: backend + ip provider.

Definition at line 216 of file wifi_hal_join.h.

Referenced by wifi_hal_join_run().


The documentation for this struct was generated from the following file: