|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Per-instance driver state. More...
#include <ra8_lsm6dso.h>
Data Fields | |
| ra8_lsm6dso_bus_t | bus |
| Transport interface. | |
| ra8_lsm6dso_xl_fs_t | accel_fs_code |
| Last accel full-scale code written. | |
| ra8_lsm6dso_g_fs_t | gyro_fs_code |
| Last gyro full-scale code written. | |
| ra8_lsm6dso_odr_t | odr_code |
| Last ODR code written to both blocks. | |
| bool | initialized |
| True after a successful _init. | |
Per-instance driver state.
Holds a copy of the transport interface plus the most recent configuration codes so ra8_lsm6dso_read_* can apply the right scaling if a future revision of the API extends the read helpers to return engineering units. Allocated by the caller (NASA Rule 3: no dynamic allocation inside the driver).
Definition at line 283 of file ra8_lsm6dso.h.
| ra8_lsm6dso_xl_fs_t ra8_lsm6dso_t::accel_fs_code |
Last accel full-scale code written.
Definition at line 285 of file ra8_lsm6dso.h.
Referenced by ra8_lsm6dso_init(), and ra8_lsm6dso_set_accel_range().
| ra8_lsm6dso_bus_t ra8_lsm6dso_t::bus |
Transport interface.
Definition at line 284 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(), ra8_lsm6dso_init(), and ra8_lsm6dso_read_temp().
| ra8_lsm6dso_g_fs_t ra8_lsm6dso_t::gyro_fs_code |
Last gyro full-scale code written.
Definition at line 286 of file ra8_lsm6dso.h.
Referenced by ra8_lsm6dso_init(), and ra8_lsm6dso_set_gyro_range().
| bool ra8_lsm6dso_t::initialized |
True after a successful _init.
Definition at line 288 of file ra8_lsm6dso.h.
Referenced by internal_lsm6dso_fifo_check_args(), ra8_lsm6dso_init(), ra8_lsm6dso_read_accel(), ra8_lsm6dso_read_gyro(), ra8_lsm6dso_read_temp(), ra8_lsm6dso_set_accel_range(), ra8_lsm6dso_set_gyro_range(), ra8_lsm6dso_set_odr(), and ra8_lsm6dso_who_am_i().
| ra8_lsm6dso_odr_t ra8_lsm6dso_t::odr_code |
Last ODR code written to both blocks.
Definition at line 287 of file ra8_lsm6dso.h.
Referenced by ra8_lsm6dso_init(), and ra8_lsm6dso_set_odr().