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

Storage for whichever empty request body a bare call needs. More...

Data Fields

RpcReqWifiStart start
 Req_WifiStart body.
RpcReqWifiStop stop
 Req_WifiStop body.
RpcReqWifiDeinit deinit
 Req_WifiDeinit body.
RpcReqWifiConnect connect
 Req_WifiConnect body.
RpcReqWifiDisconnect disconnect
 Req_WifiDisconnect body.

Detailed Description

Storage for whichever empty request body a bare call needs.

All five bodies are a bare ProtobufCMessage, but each has its own type and its own generated initialiser, so one aggregate gives the caller a single stack object with no cast between unrelated structure types.

A struct rather than a union: only one member is ever used, the members are tiny, and MISRA Rule 19.2 discourages unions for an aliasing hazard that does not arise here – so a few dozen bytes of stack buys a rule this file simply obeys instead of deviating from.

Invariant
Exactly one member is initialised per request.
The aggregate outlives the Rpc that points into it, which a caller stack frame guarantees.
Example:
rpc__req__wifi_start__init(&body.start);
See also
priv_c6link_bare_req
Since
0.1.0

Definition at line 191 of file ra8_c6link_wifi.c.

Field Documentation

◆ connect

RpcReqWifiConnect ra8_c6link_bare_body::connect

Req_WifiConnect body.

Definition at line 195 of file ra8_c6link_wifi.c.

Referenced by internal_c6link_wifi_bare_body().

◆ deinit

RpcReqWifiDeinit ra8_c6link_bare_body::deinit

Req_WifiDeinit body.

Definition at line 194 of file ra8_c6link_wifi.c.

Referenced by internal_c6link_wifi_bare_body().

◆ disconnect

RpcReqWifiDisconnect ra8_c6link_bare_body::disconnect

Req_WifiDisconnect body.

Definition at line 196 of file ra8_c6link_wifi.c.

Referenced by internal_c6link_wifi_bare_body().

◆ start

RpcReqWifiStart ra8_c6link_bare_body::start

Req_WifiStart body.

Definition at line 192 of file ra8_c6link_wifi.c.

Referenced by internal_c6link_wifi_bare_body().

◆ stop

RpcReqWifiStop ra8_c6link_bare_body::stop

Req_WifiStop body.

Definition at line 193 of file ra8_c6link_wifi.c.

Referenced by internal_c6link_wifi_bare_body().


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