|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
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. | |
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.
| void* ra8_lsm6dso_bus_t::ctx |
Caller-supplied context.
Definition at line 269 of file ra8_lsm6dso.h.
Referenced by internal_lsm6dso_burst_fifo(), internal_lsm6dso_read_byte(), internal_lsm6dso_read_fifo_depth(), internal_lsm6dso_read_xyz(), internal_lsm6dso_write_byte(), and ra8_lsm6dso_read_temp().
| ra8_lsm6dso_read_fn_t ra8_lsm6dso_bus_t::read_regs |
Read callback.
Non-NULL.
Definition at line 267 of file ra8_lsm6dso.h.
Referenced by internal_lsm6dso_burst_fifo(), internal_lsm6dso_read_byte(), internal_lsm6dso_read_fifo_depth(), internal_lsm6dso_read_xyz(), ra8_lsm6dso_init(), and ra8_lsm6dso_read_temp().
| 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().