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

A single snapshot of where a handle is, without touching the wire. More...

#include <ra8_wifi.h>

Collaboration diagram for ra8_wifi_status:

Data Fields

ra8_wifi_state_t state
 Lifecycle position.
bool associated
 The station is joined.
bool ip_bound
 A DHCP lease is held.
int8_t rssi
 Last known signal level in dBm, or zero.
ra8_wifi_lease_t ip
 The current lease, valid when ip_bound.

Detailed Description

A single snapshot of where a handle is, without touching the wire.

Every field is a cached value the facade already holds, so reading status is side-effect-free and safe to call as often as a display refresh wants. Call ra8_wifi_poll first when a fresher association reading is needed.

Invariant
associated is true exactly when state is at least k_ra8_wifi_state_associated.
ip_bound is true exactly when state is k_ra8_wifi_state_ip_bound.
Example:
(void)ra8_wifi_status(&wifi, &st);
ra8_err_t ra8_wifi_status(const ra8_wifi_t *wifi, ra8_wifi_status_t *out)
Read a handle's cached status without touching the wire.
Definition ra8_wifi.c:394
struct ra8_wifi_status ra8_wifi_status_t
See also
ra8_wifi_status
Since
0.1.0

Definition at line 295 of file ra8_wifi.h.

Field Documentation

◆ associated

bool ra8_wifi_status::associated

The station is joined.

Definition at line 297 of file ra8_wifi.h.

Referenced by ra8_wifi_status(), and wifi_hal_settle().

◆ ip

ra8_wifi_lease_t ra8_wifi_status::ip

The current lease, valid when ip_bound.

Definition at line 300 of file ra8_wifi.h.

Referenced by ra8_wifi_status().

◆ ip_bound

bool ra8_wifi_status::ip_bound

A DHCP lease is held.

Definition at line 298 of file ra8_wifi.h.

Referenced by ra8_wifi_status().

◆ rssi

int8_t ra8_wifi_status::rssi

Last known signal level in dBm, or zero.

Definition at line 299 of file ra8_wifi.h.

Referenced by ra8_wifi_status().

◆ state

ra8_wifi_state_t ra8_wifi_status::state

Lifecycle position.

Definition at line 296 of file ra8_wifi.h.

Referenced by ra8_wifi_status().


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