STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
dev_ism330dhcx.h File Reference
#include <stdint.h>
#include "dev_bus.h"
Include dependency graph for dev_ism330dhcx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ism330_sample_t

Macros

#define ISM330_WHO_AM_I_VALUE   0x6BU
#define ISM330_ACCEL_UG_PER_LSB   488 /* micro-g */
#define ISM330_GYRO_MDPS_PER_LSB   140 /* milli-degrees per second */
#define ISM330_TEMP_LSB_PER_DEGC   256

Functions

int ism330_init (const dev_bus_t *bus)
int ism330_power_down (const dev_bus_t *bus)
int ism330_read (const dev_bus_t *bus, ism330_sample_t *out)

Macro Definition Documentation

◆ ISM330_ACCEL_UG_PER_LSB

#define ISM330_ACCEL_UG_PER_LSB   488 /* micro-g */

Definition at line 30 of file dev_ism330dhcx.h.

◆ ISM330_GYRO_MDPS_PER_LSB

#define ISM330_GYRO_MDPS_PER_LSB   140 /* milli-degrees per second */

Definition at line 31 of file dev_ism330dhcx.h.

◆ ISM330_TEMP_LSB_PER_DEGC

#define ISM330_TEMP_LSB_PER_DEGC   256

Definition at line 32 of file dev_ism330dhcx.h.

◆ ISM330_WHO_AM_I_VALUE

#define ISM330_WHO_AM_I_VALUE   0x6BU

Definition at line 29 of file dev_ism330dhcx.h.

Referenced by ism330_init().

Function Documentation

◆ ism330_init()

◆ ism330_power_down()

int ism330_power_down ( const dev_bus_t * bus)

Definition at line 81 of file dev_ism330dhcx.c.

References DEV_ERR_BUS, DEV_ERR_PARAM, DEV_OK, REG_CTRL1_XL, REG_CTRL2_G, and write_reg().

Referenced by sensors_core_stop().

◆ ism330_read()

int ism330_read ( const dev_bus_t * bus,
ism330_sample_t * out )