|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
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. | |
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.
| uint8_t riic_device_t::addr_7b |
7-bit address.
Definition at line 27 of file board_periph_riic_devices_internal.h.
| void* riic_device_t::ctx |
Device state.
Definition at line 31 of file board_periph_riic_devices_internal.h.
Referenced by internal_riic_address_phase(), internal_riic_close_transfer(), and internal_riic_icdrt_write().
| bool riic_device_t::present |
Slot occupied.
Definition at line 26 of file board_periph_riic_devices_internal.h.
| 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().
| 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().
| 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().