Astra MCU SDK Peripheral Driver Library
Loading...
Searching...
No Matches
i3c_device_config_t Struct Reference

Abstracted I³C device configuration structure. More...

#include <i3c.h>

Data Fields

i3c_target_type_t device_type
uint8_t static_address
uint8_t dynamic_address
uint8_t nack_retry_count
bool accept_ibi
bool ibi_has_payload
bool enable_ibi_pec

Detailed Description

Abstracted I³C device configuration structure.

This structure provides a user-friendly interface for configuring I³C devices without exposing hardware register details. It hides the complexity of the underlying hardware register format and provides logical, validated fields.

Note
This structure replaces direct usage of internal DAT hardware entries and improves API portability and maintainability.

Field Documentation

◆ device_type

i3c_target_type_t i3c_device_config_t::device_type

Device type: I³C or I²C

◆ static_address

uint8_t i3c_device_config_t::static_address

Static address (I²C devices only)

◆ dynamic_address

uint8_t i3c_device_config_t::dynamic_address

Dynamic address (0 = auto-assign)

◆ nack_retry_count

uint8_t i3c_device_config_t::nack_retry_count

NACK retry count (0-3)

◆ accept_ibi

bool i3c_device_config_t::accept_ibi

Accept In-Band Interrupts

◆ ibi_has_payload

bool i3c_device_config_t::ibi_has_payload

IBI includes payload data

◆ enable_ibi_pec

bool i3c_device_config_t::enable_ibi_pec

Enable IBI Packet Error Check