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

Per-instance driver state. More...

#include <ra8_lsm6dso.h>

Collaboration diagram for ra8_lsm6dso_t:

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.

Detailed Description

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.

Field Documentation

◆ accel_fs_code

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().

◆ bus

◆ gyro_fs_code

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().

◆ initialized

◆ odr_code

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().


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