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

Per-channel dispatch state shared across the driver's TUs. More...

#include <ra8_i3c_i2c_internal.h>

Data Fields

ra8_i3c_i2c_complete_fn_t cb
 Callback or NULL.
void * ctx
 Callback context.
bool initialized
 Tracks ra8_i3c_i2c_init / ra8_i3c_i2c_deinit.
bool bus_held
 True when the previous transaction returned with restart=true and the next call must inject a RESTART instead of a fresh START.

Detailed Description

Per-channel dispatch state shared across the driver's TUs.

Tracks the registered completion callback, its context, the initialization flag, and the held-bus flag used to inject a RESTART instead of a fresh START on a chained transaction. Defined as the s_iic_b_state table in ra8_i3c_i2c.c.

Invariant
bus_held is true only between a restart=true transaction and the next chained call on the same channel.
See also
s_iic_b_state
Since
0.1.0

Definition at line 41 of file ra8_i3c_i2c_internal.h.

Field Documentation

◆ bus_held

bool ra8_i3c_i2c_state_t::bus_held

True when the previous transaction returned with restart=true and the next call must inject a RESTART instead of a fresh START.

Definition at line 46 of file ra8_i3c_i2c_internal.h.

◆ cb

ra8_i3c_i2c_complete_fn_t ra8_i3c_i2c_state_t::cb

Callback or NULL.

Definition at line 42 of file ra8_i3c_i2c_internal.h.

◆ ctx

void* ra8_i3c_i2c_state_t::ctx

Callback context.

Definition at line 43 of file ra8_i3c_i2c_internal.h.

◆ initialized

bool ra8_i3c_i2c_state_t::initialized

Tracks ra8_i3c_i2c_init / ra8_i3c_i2c_deinit.

Definition at line 44 of file ra8_i3c_i2c_internal.h.


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