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

Per-channel bring-up configuration for ra8_i3c_init. More...

#include <ra8_i3c.h>

Data Fields

ra8_i3c_mode_t mode
 Operating mode for this channel.
uint32_t bus_hz
 Target bus clock in Hz (I2C mode).
uint32_t pclka_hz
 Source clock for the bit-rate calc (I2C).

Detailed Description

Per-channel bring-up configuration for ra8_i3c_init.

bus_hz and pclka_hz are used by the I2C-compat mode to compute the STDBR bit-rate divider; native mode currently ignores them (SCL is driven from the I3C clock tree). mode selects the operating mode.

Invariant
bus_hz and pclka_hz are non-zero in I2C mode.
const ra8_i3c_cfg_t cfg = {
.mode = k_ra8_i3c_mode_i2c, .bus_hz = 100000U, .pclka_hz = 8000000U };
ra8_i3c_init(0U, &cfg);
@ k_ra8_i3c_mode_i2c
Legacy I2C-compatibility controller.
Definition ra8_i3c.h:69
ra8_err_t ra8_i3c_init(uint8_t channel, const ra8_i3c_cfg_t *cfg)
Initialise an I3C channel in the configured mode.
Definition ra8_i3c.c:311
Per-channel bring-up configuration for ra8_i3c_init.
Definition ra8_i3c.h:90
See also
ra8_i3c_mode_t
Since
0.1.0

Definition at line 90 of file ra8_i3c.h.

Field Documentation

◆ bus_hz

uint32_t ra8_i3c_cfg_t::bus_hz

Target bus clock in Hz (I2C mode).

Definition at line 92 of file ra8_i3c.h.

Referenced by ra8_i3c_init().

◆ mode

ra8_i3c_mode_t ra8_i3c_cfg_t::mode

Operating mode for this channel.

Definition at line 91 of file ra8_i3c.h.

Referenced by ra8_i3c_init(), and ra8_nsc_iic_init().

◆ pclka_hz

uint32_t ra8_i3c_cfg_t::pclka_hz

Source clock for the bit-rate calc (I2C).

Definition at line 93 of file ra8_i3c.h.

Referenced by ra8_i3c_init().


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