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

Callback context: the channel and the last controller-write payload. More...

Data Fields

uint8_t channel
 RIIC channel the target answers on.
uint32_t rx_len
 Bytes captured from the last write (>= 1).
uint8_t rx [k_riic_target_buf_len]
 Last controller-write payload (echoed).

Detailed Description

Callback context: the channel and the last controller-write payload.

Passed to ra8_i2c_peripheral_attach_handler and handed back to riic_target_on_event. A controller write is captured into rx and echoed back on the next controller read, giving a simple loopback semantic. cppcheck cannot see the dispatch call graph, so pre-waive the member scan.

Definition at line 80 of file main.c.

Field Documentation

◆ channel

uint8_t riic_target_ctx_t::channel

RIIC channel the target answers on.

Definition at line 81 of file main.c.

Referenced by riic_target_on_event().

◆ rx

uint8_t riic_target_ctx_t::rx[k_riic_target_buf_len]

Last controller-write payload (echoed).

Definition at line 83 of file main.c.

Referenced by riic_target_on_event().

◆ rx_len

uint32_t riic_target_ctx_t::rx_len

Bytes captured from the last write (>= 1).

Definition at line 82 of file main.c.

Referenced by riic_target_on_event().


The documentation for this struct was generated from the following file:
  • examples/ek_ra8d2/hw_pending/i2c_peripheral_responder/src/main.c