|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
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) |
| #define ISM330_ACCEL_UG_PER_LSB 488 /* micro-g */ |
Definition at line 30 of file dev_ism330dhcx.h.
| #define ISM330_GYRO_MDPS_PER_LSB 140 /* milli-degrees per second */ |
Definition at line 31 of file dev_ism330dhcx.h.
| #define ISM330_TEMP_LSB_PER_DEGC 256 |
Definition at line 32 of file dev_ism330dhcx.h.
| #define ISM330_WHO_AM_I_VALUE 0x6BU |
Definition at line 29 of file dev_ism330dhcx.h.
Referenced by ism330_init().
| int ism330_init | ( | const dev_bus_t * | bus | ) |
Definition at line 45 of file dev_ism330dhcx.c.
References config, CTRL3_SW_RESET, DEV_ERR_BUS, DEV_ERR_ID, DEV_ERR_PARAM, DEV_ERR_TIMEOUT, DEV_ERR_VERIFY, DEV_OK, ISM330_WHO_AM_I_VALUE, read_reg(), reg, REG_CTRL3_C, REG_WHO_AM_I, RESET_POLLS, and write_reg().
Referenced by init_imu(), test_bus_error_is_reported(), test_dead_bus_reads_ff_and_is_refused(), test_init_writes_the_datasheet_configuration(), test_missing_arguments_are_refused(), test_register_that_does_not_read_back_fails(), test_reset_that_never_finishes_times_out(), and test_wrong_identity_is_refused_before_any_write().
| 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().
| int ism330_read | ( | const dev_bus_t * | bus, |
| ism330_sample_t * | out ) |
Definition at line 96 of file dev_ism330dhcx.c.
References DEV_ERR_BUS, DEV_ERR_PARAM, DEV_OK, le16(), REG_OUT_TEMP_L, and SPI_READ.
Referenced by read_imu(), test_missing_arguments_are_refused(), and test_read_decodes_the_burst().