ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
board_periph_riic_devices_internal.h
Go to the documentation of this file.
1
12
13#pragma once
14
15#include <stdint.h>
16
17#include "ra8_attributes.h"
18
25typedef struct {
26 bool present;
27 uint8_t addr_7b;
28 void (*write)(void* ctx, uint8_t byte);
29 uint32_t (*read)(void* ctx, uint8_t* buf, uint32_t max);
30 void (*stop)(void* ctx);
31 void* ctx;
33
50
63
riic_device_t * priv_riic_device_find(uint8_t addr_7b)
Find the registered RIIC device answering one 7-bit address.
void priv_riic_devices_reset(void)
Reset and repopulate the board's RIIC device registry.
void priv_riic_devices_report(void)
Report activity observed by the registered board devices.
-proof
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
One device registered on the modelled RIIC bus.
uint32_t(* read)(void *ctx, uint8_t *buf, uint32_t max)
Device->controller.
void(* stop)(void *ctx)
STOP/transfer end.