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

Configuration descriptor for ra8_i2c_peripheral_init. More...

#include <ra8_i2c.h>

Data Fields

uint8_t own_addr_7b
 7-bit own address to answer on.
ra8_i2c_peripheral_slot_t slot
 Own-address comparator slot.
bool general_call
 Also answer the general-call addr.
bool clock_stretch
 Arm ICMR3.WAIT clock stretching.
bool irq_enable
 Arm ICIER RIE / TIE / SPIE.

Detailed Description

Configuration descriptor for ra8_i2c_peripheral_init.

Selects the 7-bit own address, the comparator slot that holds it, whether to also answer the I2C general-call address, whether to arm ICMR3.WAIT-based clock stretching so the servicing loop has time to handle each byte, and whether to arm the ICIER target interrupts. cppcheck cannot see tests/ so it flags the members as unused; all five are read in ra8_i2c_peripheral_init.

Invariant
own_addr_7b is a 7-bit value (<= 0x7F) and slot is one of the three k_ra8_i2c_peripheral_slot_* values.
See also
ra8_i2c_peripheral_init
Since
0.1.0

Definition at line 482 of file ra8_i2c.h.

Field Documentation

◆ clock_stretch

bool ra8_i2c_peripheral_cfg_t::clock_stretch

Arm ICMR3.WAIT clock stretching.

Definition at line 486 of file ra8_i2c.h.

Referenced by ra8_i2c_peripheral_init().

◆ general_call

bool ra8_i2c_peripheral_cfg_t::general_call

Also answer the general-call addr.

Definition at line 485 of file ra8_i2c.h.

Referenced by ra8_i2c_peripheral_init().

◆ irq_enable

bool ra8_i2c_peripheral_cfg_t::irq_enable

Arm ICIER RIE / TIE / SPIE.

Definition at line 487 of file ra8_i2c.h.

Referenced by ra8_i2c_peripheral_init().

◆ own_addr_7b

uint8_t ra8_i2c_peripheral_cfg_t::own_addr_7b

7-bit own address to answer on.

Definition at line 483 of file ra8_i2c.h.

Referenced by ra8_i2c_peripheral_init().

◆ slot

ra8_i2c_peripheral_slot_t ra8_i2c_peripheral_cfg_t::slot

Own-address comparator slot.

Definition at line 484 of file ra8_i2c.h.

Referenced by ra8_i2c_peripheral_init().


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