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

Transport interface bound at ra8_lsm6dso_init time. More...

#include <ra8_lsm6dso.h>

Data Fields

ra8_lsm6dso_read_fn_t read_regs
 Read callback.
ra8_lsm6dso_write_fn_t write_regs
 Write callback.
void * ctx
 Caller-supplied context.

Detailed Description

Transport interface bound at ra8_lsm6dso_init time.

Production code wires read_regs and write_regs to thin adapters over ra8_iic_b_transfer / ra8_iic_b_write or ra8_spi_xfer8. Unit tests wire them to a canned-response mock. The ctx field is passed through to both callbacks unchanged.

Definition at line 266 of file ra8_lsm6dso.h.

Field Documentation

◆ ctx

◆ read_regs

◆ write_regs

ra8_lsm6dso_write_fn_t ra8_lsm6dso_bus_t::write_regs

Write callback.

Non-NULL.

Definition at line 268 of file ra8_lsm6dso.h.

Referenced by internal_lsm6dso_write_byte(), and ra8_lsm6dso_init().


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