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

What ra8_wifi_c6link_setup needs to wire this backend to a link. More...

#include <ra8_wifi_c6link.h>

Collaboration diagram for ra8_wifi_c6link_cfg:

Data Fields

ra8_c6link_tlink
 Caller-allocated link, opened by the backend.
ra8_c6link_transport_t transport
 Bound hardware (or model) seam.
uint8_t * arena
 Protobuf decode arena for the link.
uint32_t arena_bytes
 Bytes available at arena.
ra8_c6link_rx_cb_t rx_cb
 IP-stack L2 receive sink, or null.

Detailed Description

What ra8_wifi_c6link_setup needs to wire this backend to a link.

The link handle and its decode arena are caller-allocated because the whole ra8_c6link stack is heap-free; this backend opens the link inside ra8_wifi_backend::open. The transport seam is supplied already bound – by ra8_esp_hosted_c6link_bind on hardware, or by a co-processor model under test – so this backend stays independent of any one transport. The receive callback is the IP stack's L2 frame sink and may be null before the stack exists.

Invariant
link points at zero-initialised storage this backend may open.
transport has every row filled, exactly as ra8_c6link_open requires.
arena_bytes is at least k_ra8_c6link_arena_min.
Example:
ra8_wifi_c6link_cfg_t bcfg = { .link = &s_link, .arena = s_arena,
.arena_bytes = (uint32_t)sizeof s_arena };
static ra8_c6link_t s_link
Definition c6_cam_app.c:44
static uint8_t s_arena[k_c6_cam_arena_bytes]
Definition c6_cam_app.c:43
See also
ra8_wifi_c6link_setup
Since
0.1.0

Definition at line 90 of file ra8_wifi_c6link.h.

Field Documentation

◆ arena

uint8_t* ra8_wifi_c6link_cfg::arena

Protobuf decode arena for the link.

Definition at line 93 of file ra8_wifi_c6link.h.

Referenced by ra8_wifi_c6link_setup(), and wifi_hal_make_cfg().

◆ arena_bytes

uint32_t ra8_wifi_c6link_cfg::arena_bytes

Bytes available at arena.

Definition at line 94 of file ra8_wifi_c6link.h.

Referenced by ra8_wifi_c6link_setup(), and wifi_hal_make_cfg().

◆ link

ra8_c6link_t* ra8_wifi_c6link_cfg::link

Caller-allocated link, opened by the backend.

Definition at line 91 of file ra8_wifi_c6link.h.

Referenced by ra8_wifi_c6link_setup(), and wifi_hal_make_cfg().

◆ rx_cb

ra8_c6link_rx_cb_t ra8_wifi_c6link_cfg::rx_cb

IP-stack L2 receive sink, or null.

Definition at line 95 of file ra8_wifi_c6link.h.

Referenced by ra8_wifi_c6link_setup(), and wifi_hal_make_cfg().

◆ transport

ra8_c6link_transport_t ra8_wifi_c6link_cfg::transport

Bound hardware (or model) seam.

Definition at line 92 of file ra8_wifi_c6link.h.

Referenced by ra8_wifi_c6link_setup(), and wifi_hal_make_cfg().


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