ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
riic_device_t Struct Reference

One device registered on the modelled RIIC bus. More...

#include <board_periph_riic_devices_internal.h>

Data Fields

bool present
 Slot occupied.
uint8_t addr_7b
 7-bit address.
void(* write )(void *ctx, uint8_t byte)
 Controller->device.
uint32_t(* read )(void *ctx, uint8_t *buf, uint32_t max)
 Device->controller.
void(* stop )(void *ctx)
 STOP/transfer end.
void * ctx
 Device state.

Detailed Description

One device registered on the modelled RIIC bus.

Binds a 7-bit address to bounded byte-transfer callbacks and their module-owned context; the RIIC controller never assumes a concrete device representation.

Definition at line 25 of file board_periph_riic_devices_internal.h.

Field Documentation

◆ addr_7b

uint8_t riic_device_t::addr_7b

7-bit address.

Definition at line 27 of file board_periph_riic_devices_internal.h.

◆ ctx

void* riic_device_t::ctx

◆ present

bool riic_device_t::present

Slot occupied.

Definition at line 26 of file board_periph_riic_devices_internal.h.

◆ read

uint32_t(* riic_device_t::read) (void *ctx, uint8_t *buf, uint32_t max)

Device->controller.

Definition at line 29 of file board_periph_riic_devices_internal.h.

Referenced by internal_riic_address_phase().

◆ stop

void(* riic_device_t::stop) (void *ctx)

STOP/transfer end.

Definition at line 30 of file board_periph_riic_devices_internal.h.

Referenced by internal_riic_close_transfer().

◆ write

void(* riic_device_t::write) (void *ctx, uint8_t byte)

Controller->device.

Definition at line 28 of file board_periph_riic_devices_internal.h.

Referenced by internal_riic_icdrt_write().


The documentation for this struct was generated from the following file: