ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_i3c_i2c_peripheral.h
Go to the documentation of this file.
1
26
27#pragma once
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include <stdint.h>
34
35#include "ra8_err.h"
36
55
68
82[[nodiscard]] ra8_err_t ra8_i3c_i2c_peripheral_open(uint8_t channel,
84
96[[nodiscard]] ra8_err_t ra8_i3c_i2c_peripheral_close(uint8_t channel);
97
113[[nodiscard]] ra8_err_t
114ra8_i3c_i2c_peripheral_send(uint8_t channel, const uint8_t* data, uint32_t len);
115
131[[nodiscard]] ra8_err_t ra8_i3c_i2c_peripheral_receive(uint8_t channel, uint8_t* buf, uint32_t len);
132
146[[nodiscard]] ra8_err_t ra8_i3c_i2c_peripheral_status(uint8_t channel, uint8_t* out_mask);
147
148#ifdef __cplusplus
149}
150#endif
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
ra8_err_t ra8_i3c_i2c_peripheral_status(uint8_t channel, uint8_t *out_mask)
Read latched peripheral-side status mask.
ra8_err_t ra8_i3c_i2c_peripheral_send(uint8_t channel, const uint8_t *data, uint32_t len)
Push len bytes into NTDTBP0 in response to a controller-read.
ra8_i3c_i2c_peripheral_status_t
Peripheral-side status mask.
@ k_ra8_i3c_i2c_peripheral_status_nack
BST.NACKDF set.
@ k_ra8_i3c_i2c_peripheral_status_stop
BST.SPCNDDF set.
@ k_ra8_i3c_i2c_peripheral_status_tx_empty
NTST.TDBEF0 set.
@ k_ra8_i3c_i2c_peripheral_status_rx_full
NTST.RDBFF0 set.
@ k_ra8_i3c_i2c_peripheral_status_aas
Address matched.
@ k_ra8_i3c_i2c_peripheral_status_idle
No latched event.
ra8_err_t ra8_i3c_i2c_peripheral_open(uint8_t channel, const ra8_i3c_i2c_peripheral_cfg_t *cfg)
Open a channel as an IIC_B peripheral.
ra8_err_t ra8_i3c_i2c_peripheral_receive(uint8_t channel, uint8_t *buf, uint32_t len)
Drain len bytes from NTDTBP0 after a controller-write.
ra8_err_t ra8_i3c_i2c_peripheral_close(uint8_t channel)
Close the peripheral channel.
Configuration descriptor for ra8_i3c_i2c_peripheral_open.
uint8_t general_call
Non-zero -> answer general-call address.
uint8_t peripheral_addr_7b
7-bit own address.