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

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)

Macro Definition Documentation

◆ H3LIS_MG_PER_DIGIT

#define H3LIS_MG_PER_DIGIT   780

Definition at line 30 of file dev_h3lis100dl.h.

◆ H3LIS_WHO_AM_I_VALUE

#define H3LIS_WHO_AM_I_VALUE   0x32U

Definition at line 29 of file dev_h3lis100dl.h.

Referenced by h3lis_init().

Function Documentation

◆ h3lis_init()

◆ h3lis_power_down()

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

◆ h3lis_read()