|
enum | accel30_drv_t { ACCEL30_DRV_SEL_SPI
, ACCEL30_DRV_SEL_I2C
} |
| Accel 30 Click driver selector. More...
|
|
enum | accel30_return_value_t { ACCEL30_OK = 0
, ACCEL30_ERROR = -1
} |
| Accel 30 Click return value data. More...
|
|
enum | accel30_gain_t { ACCEL30_GAIN_DEFAULT = 0
, ACCEL30_GAIN_4X
, ACCEL30_GAIN_1X
, ACCEL30_GAIN_NOT_USED
} |
| Accel 30 Click gain value data. More...
|
|
enum | accel30_op_mode_t {
ACCEL30_MODE_SLEEP = 0
, ACCEL30_MODE_STANDBY = 1
, ACCEL30_MODE_SNIFF = 2
, ACCEL30_MODE_CWAKE = 5
,
ACCEL30_MODE_TRIG = 7
} |
| Accel 30 Click operating mode value data. More...
|
|
enum | accel30_range_t {
ACCEL30_RANGE_2G = 0
, ACCEL30_RANGE_4G
, ACCEL30_RANGE_8G
, ACCEL30_RANGE_12G
,
ACCEL30_RANGE_16G
, ACCEL30_RANGE_END
} |
| Accel 30 Click range value data. More...
|
|
enum | accel30_resolution_t {
ACCEL30_RESOLUTION_6BIT = 0
, ACCEL30_RESOLUTION_7BIT
, ACCEL30_RESOLUTION_8BIT
, ACCEL30_RESOLUTION_10BIT
,
ACCEL30_RESOLUTION_12BIT
, ACCEL30_RESOLUTION_14BIT
, ACCEL30_RESOLUTION_END
} |
| Accel 30 Click resolution value data. More...
|
|
enum | accel30_cwake_t {
ACCEL30_CWAKE_DEFAULT_50Hz = 0
, ACCEL30_CWAKE_0p4Hz
, ACCEL30_CWAKE_0p8Hz
, ACCEL30_CWAKE_2Hz
,
ACCEL30_CWAKE_6Hz
, ACCEL30_CWAKE_14Hz
, ACCEL30_CWAKE_28Hz
, ACCEL30_CWAKE_54Hz
,
ACCEL30_CWAKE_100Hz
, ACCEL30_CWAKE_210Hz
, ACCEL30_CWAKE_400Hz
, ACCEL30_CWAKE_600Hz
,
ACCEL30_CWAKE_RESER0
, ACCEL30_CWAKE_RESER1
, ACCEL30_CWAKE_RESER2
, ACCEL30_CWAKE_750Hz
,
ACCEL30_CWAKE_END
} |
| Accel 30 Click CWAKE sampling value data. More...
|
|
enum | accel30_sniff_sr_t {
ACCEL30_SNIFF_SR_DEFAULT_6Hz = 0
, ACCEL30_SNIFF_SR_0p4Hz
, ACCEL30_SNIFF_SR_0p8Hz
, ACCEL30_SNIFF_SR_2Hz
,
ACCEL30_SNIFF_SR_6Hz
, ACCEL30_SNIFF_SR_13Hz
, ACCEL30_SNIFF_SR_25Hz
, ACCEL30_SNIFF_SR_50Hz
,
ACCEL30_SNIFF_SR_100Hz
, ACCEL30_SNIFF_SR_200Hz
, ACCEL30_SNIFF_SR_400Hz
, ACCEL30_SNIFF_SR_END
} |
| Accel 30 Click SNIFF sampling value data. More...
|
|
enum | accel30_fifo_mode_t { ACCEL30_FIFO_MODE_NORMAL = 0
, ACCEL30_FIFO_MODE_WATERMARK
, ACCEL30_FIFO_MODE_END
} |
| Accel 30 Click FIFO mode value data. More...
|
|
enum | accel30_power_mode_t {
ACCEL30_LOW_POWER = 0
, ACCEL30_RESERVED_1
, ACCEL30_RESERVED_2
, ACCEL30_ULOW_POWER
,
ACCEL30_PRE_POWER
} |
| Accel 30 Click power mode value data. More...
|
|
|
void | accel30_cfg_setup (accel30_cfg_t *cfg) |
| Accel 30 configuration object setup function.
|
|
void | accel30_drv_interface_selection (accel30_cfg_t *cfg, accel30_drv_t drv_sel) |
| Accel 30 driver interface setup function.
|
|
err_t | accel30_init (accel30_t *ctx, accel30_cfg_t *cfg) |
| Accel 30 initialization function.
|
|
err_t | accel30_default_cfg (accel30_t *ctx) |
| Accel 30 default configuration function.
|
|
err_t | accel30_generic_write (accel30_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| Accel 30 data writing function.
|
|
err_t | accel30_generic_read (accel30_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| Accel 30 data reading function.
|
|
err_t | accel30_set_mode (accel30_t *ctx, accel30_op_mode_t mode) |
| Accel 30 set operating mode function.
|
|
err_t | accel30_set_range_ctrl (accel30_t *ctx, accel30_range_t range) |
| Accel 30 set range control function.
|
|
err_t | accel30_soft_reset (accel30_t *ctx) |
| Accel 30 soft reset function.
|
|
err_t | accel30_set_sniff_gain (accel30_t *ctx, accel30_gain_t gain) |
| Accel 30 set sniff gain function.
|
|
err_t | accel30_set_wake_gain (accel30_t *ctx, accel30_gain_t gain) |
| Accel 30 set wake gain function.
|
|
err_t | accel30_set_resolution_ctrl (accel30_t *ctx, accel30_resolution_t resolution) |
| Accel 30 set resolution control function.
|
|
err_t | accel30_set_sample_rate (accel30_t *ctx, accel30_cwake_t sample_rate) |
| Accel 30 set sampling rate function.
|
|
err_t | accel30_set_sniff_sample_rate (accel30_t *ctx, accel30_sniff_sr_t sample_rate) |
| Accel 30 set sniff sampling rate function.
|
|
err_t | accel30_set_pwr_mode (accel30_t *ctx, accel30_power_mode_t pwr_mode) |
| Accel 30 set power mode function.
|
|
err_t | accel30_get_axis (accel30_t *ctx, accel30_axis_t *acc_axis) |
| Accel 30 get accel data function.
|
|
err_t | accel30_get_avg_axes (accel30_t *ctx, accel30_avg_axis_t *acc_avg_axis) |
| Accel 30 get accel averaged data function.
|
|
uint8_t | accel30_get_int_pin (accel30_t *ctx) |
| Accel 30 get interrupt function.
|
|
This file contains API for Accel 30 Click Driver.