ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_io_i2c_bus_internal.h
Go to the documentation of this file.
1
23
24#pragma once
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <stdint.h>
31
32#include "ra8_err.h"
33#include "ra8_io_i2c_bus.h"
34
51 ra8_err_t (*write)(void* ctx, uint8_t addr, const uint8_t* data, uint32_t len, bool send_stop);
52
54 ra8_err_t (*read)(void* ctx, uint8_t addr, uint8_t* data, uint32_t len);
55
57 ra8_err_t (*transfer)(void* ctx,
58 uint8_t addr,
59 const uint8_t* wr,
60 uint32_t wr_len,
61 uint8_t* rd,
62 uint32_t rd_len);
63};
64
65#ifdef __cplusplus
66}
67#endif
-proof
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_io I2C-bus facade – one controller-transfer vtable over thechip's two I2C implementations.
Opaque to applications – backends implement this internally and export a binding helper through their...
ra8_err_t(* read)(void *ctx, uint8_t addr, uint8_t *data, uint32_t len)
Controller read; always ends with STOP.
ra8_err_t(* transfer)(void *ctx, uint8_t addr, const uint8_t *wr, uint32_t wr_len, uint8_t *rd, uint32_t rd_len)
Write-then-RESTART-then-read combined transaction.