|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Classes | |
| struct | h3lis_sample_t |
Macros | |
| #define | H3LIS_WHO_AM_I_VALUE 0x32U |
| #define | H3LIS_MG_PER_DIGIT 780 |
Functions | |
| int | h3lis_init (const dev_bus_t *bus) |
| int | h3lis_power_down (const dev_bus_t *bus) |
| int | h3lis_read (const dev_bus_t *bus, h3lis_sample_t *out) |
| #define H3LIS_MG_PER_DIGIT 780 |
Definition at line 30 of file dev_h3lis100dl.h.
| #define H3LIS_WHO_AM_I_VALUE 0x32U |
Definition at line 29 of file dev_h3lis100dl.h.
Referenced by h3lis_init().
| int h3lis_init | ( | const dev_bus_t * | bus | ) |
Definition at line 40 of file dev_h3lis100dl.c.
References config, DEV_ERR_BUS, DEV_ERR_ID, DEV_ERR_PARAM, DEV_ERR_VERIFY, DEV_OK, H3LIS_WHO_AM_I_VALUE, read_reg(), reg, REG_WHO_AM_I, and write_reg().
Referenced by init_highg(), test_bus_error_is_reported(), test_init_writes_the_datasheet_configuration(), test_read_back_mismatch_fails(), and test_wrong_identity_is_refused_before_any_write().
| int h3lis_power_down | ( | const dev_bus_t * | bus | ) |
Definition at line 63 of file dev_h3lis100dl.c.
References DEV_ERR_BUS, DEV_ERR_PARAM, DEV_OK, REG_CTRL_REG1, and write_reg().
Referenced by sensors_core_stop().
| int h3lis_read | ( | const dev_bus_t * | bus, |
| h3lis_sample_t * | out ) |
Definition at line 70 of file dev_h3lis100dl.c.
References DEV_ERR_BUS, DEV_ERR_PARAM, DEV_OK, REG_OUT_X, SPI_INCREMENT, and SPI_READ.
Referenced by read_highg(), test_read_takes_x_y_z_from_29_2b_2d(), and test_read_without_ms_bit_would_read_x_three_times().