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

Caller-allocated backend context for the ESP32-C6 radio. More...

#include <ra8_wifi_c6link.h>

Collaboration diagram for ra8_wifi_c6link:

Data Fields

ra8_c6link_tlink
 The link this backend opens and drives.
ra8_c6link_transport_t transport
 Bound seam passed to ra8_c6link_open.
uint8_t * arena
 Decode arena passed to ra8_c6link_open.
uint32_t arena_bytes
 Bytes available at arena.
ra8_c6link_rx_cb_t rx_cb
 IP-stack L2 receive sink, or null.
volatile bool connected
 A station-connected event has arrived.
volatile bool disconnected
 A station-disconnected event has arrived.
uint16_t reason
 Last 802.11 disconnect reason code.

Detailed Description

Caller-allocated backend context for the ESP32-C6 radio.

Holds the link this backend drives plus the two flags its event callback latches from the co-processor's station announcements. It is the void* ctx every ra8_wifi_backend_t row receives. Zero-initialise it and hand it to ra8_wifi_c6link_setup; treat every field as private thereafter.

Invariant
connected and disconnected reflect the newest station events since the last ra8_wifi_backend::join.
link is the same handle across the backend's whole lifetime.
Example:
static ra8_wifi_c6link_t s_c6
The ESP32-C6 ra8_wifi backend context.
Definition main.c:64
See also
ra8_wifi_c6link_setup
Since
0.1.0

Definition at line 120 of file ra8_wifi_c6link.h.

Field Documentation

◆ arena

uint8_t* ra8_wifi_c6link::arena

Decode arena passed to ra8_c6link_open.

Definition at line 123 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_op_open(), and ra8_wifi_c6link_setup().

◆ arena_bytes

uint32_t ra8_wifi_c6link::arena_bytes

Bytes available at arena.

Definition at line 124 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_op_open(), and ra8_wifi_c6link_setup().

◆ connected

volatile bool ra8_wifi_c6link::connected

A station-connected event has arrived.

Definition at line 126 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_on_event(), internal_c6link_op_join(), and internal_c6link_op_service().

◆ disconnected

volatile bool ra8_wifi_c6link::disconnected

A station-disconnected event has arrived.

Definition at line 127 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_on_event(), internal_c6link_op_join(), and internal_c6link_op_service().

◆ link

◆ reason

uint16_t ra8_wifi_c6link::reason

Last 802.11 disconnect reason code.

Definition at line 128 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_on_event(), and internal_c6link_op_join().

◆ rx_cb

ra8_c6link_rx_cb_t ra8_wifi_c6link::rx_cb

IP-stack L2 receive sink, or null.

Definition at line 125 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_op_open(), and ra8_wifi_c6link_setup().

◆ transport

ra8_c6link_transport_t ra8_wifi_c6link::transport

Bound seam passed to ra8_c6link_open.

Definition at line 122 of file ra8_wifi_c6link.h.

Referenced by internal_c6link_op_idle(), internal_c6link_op_open(), and ra8_wifi_c6link_setup().


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