ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_spi_bus_ops.h
Go to the documentation of this file.
1
35
36#pragma once
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42#include <stdint.h>
43
44#include "ra8_err.h"
45
75typedef struct {
90 ra8_err_t (*xfer8)(void* ctx, uint8_t tx, uint8_t* rx);
91
92 void* ctx;
94
95#ifdef __cplusplus
96}
97#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
Caller-filled SPI transfer seam: one full-duplex byte exchange.
void * ctx
Opaque cookie handed to xfer8 (binder-owned).
ra8_err_t(* xfer8)(void *ctx, uint8_t tx, uint8_t *rx)
Full-duplex single-byte exchange on the bound bus.