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

Decoded esp-hosted payload header plus the locally recomputed sum. More...

#include <c6_proto.h>

Data Fields

uint8_t if_type
 Interface identifier (c6_if_type_t).
uint8_t if_num
 Interface instance number.
uint8_t flags
 Fragment / wake / power-save bits.
uint16_t len
 Payload length claimed by the sender.
uint16_t offset
 Payload offset; always the header size.
uint16_t checksum
 Checksum carried on the wire.
uint16_t seq_num
 Sender sequence number.
uint8_t throttle
 Wi-Fi transmit throttle command.
uint8_t pkt_type
 HCI / private packet sub-type.
uint16_t computed
 Checksum recomputed over the receive buffer.

Detailed Description

Decoded esp-hosted payload header plus the locally recomputed sum.

Invariant
offset and len are taken verbatim from the wire and are judged by c6_probe_classify, not by the decoder.
Example:
c6_hdr_t h = {};
void c6_probe_decode_header(const uint8_t *buf, c6_hdr_t *out)
Unpack the twelve-byte esp-hosted payload header.
Definition c6_frame.c:72
Decoded esp-hosted payload header plus the locally recomputed sum.
Definition c6_proto.h:246
See also
c6_probe_decode_header

Definition at line 246 of file c6_proto.h.

Field Documentation

◆ checksum

uint16_t c6_hdr_t::checksum

Checksum carried on the wire.

Definition at line 252 of file c6_proto.h.

Referenced by c6_probe_classify(), c6_probe_decode_header(), and c6_probe_print_header().

◆ computed

uint16_t c6_hdr_t::computed

Checksum recomputed over the receive buffer.

Definition at line 256 of file c6_proto.h.

Referenced by c6_probe_classify(), c6_probe_decode_header(), and c6_probe_print_header().

◆ flags

uint8_t c6_hdr_t::flags

Fragment / wake / power-save bits.

Definition at line 249 of file c6_proto.h.

Referenced by c6_probe_decode_header(), and c6_probe_print_header().

◆ if_num

uint8_t c6_hdr_t::if_num

Interface instance number.

Definition at line 248 of file c6_proto.h.

Referenced by c6_probe_classify(), c6_probe_decode_header(), and c6_probe_print_header().

◆ if_type

uint8_t c6_hdr_t::if_type

Interface identifier (c6_if_type_t).

Definition at line 247 of file c6_proto.h.

Referenced by c6_probe_classify(), c6_probe_decode_header(), and c6_probe_print_header().

◆ len

uint16_t c6_hdr_t::len

Payload length claimed by the sender.

Definition at line 250 of file c6_proto.h.

Referenced by c6_probe_classify(), c6_probe_decode_header(), c6_probe_print_header(), and internal_report_frame().

◆ offset

uint16_t c6_hdr_t::offset

Payload offset; always the header size.

Definition at line 251 of file c6_proto.h.

Referenced by c6_probe_classify(), c6_probe_decode_header(), and c6_probe_print_header().

◆ pkt_type

uint8_t c6_hdr_t::pkt_type

HCI / private packet sub-type.

Definition at line 255 of file c6_proto.h.

Referenced by c6_probe_decode_header(), and c6_probe_print_header().

◆ seq_num

uint16_t c6_hdr_t::seq_num

Sender sequence number.

Definition at line 253 of file c6_proto.h.

Referenced by c6_probe_decode_header(), and c6_probe_print_header().

◆ throttle

uint8_t c6_hdr_t::throttle

Wi-Fi transmit throttle command.

Definition at line 254 of file c6_proto.h.

Referenced by c6_probe_decode_header().


The documentation for this struct was generated from the following file:
  • examples/ek_ra8d2/hw_validated/c6/c6_spi_probe/inc/c6_proto.h