Bridle API 4.1.99
A Zephyr based application framework
|
I2C-Bus Access for an STK8BA58. More...
#include "stk8ba58_reg.h"
Functions | |
int32_t | stk8ba58_read_reg (const struct i2c_dt_spec *i2c, uint8_t reg, uint8_t *data, uint16_t len) |
Read generic device register. | |
int32_t | stk8ba58_write_reg (const struct i2c_dt_spec *i2c, uint8_t reg, uint8_t *data, uint16_t len) |
Write generic device register. | |
float_t | stk8ba58_from_fs2g_to_mg (int16_t lsb) |
float_t | stk8ba58_from_fs4g_to_mg (int16_t lsb) |
float_t | stk8ba58_from_fs8g_to_mg (int16_t lsb) |
int32_t | stk8ba58_all_sources_get (const struct i2c_dt_spec *i2c, stk8ba58_all_sources_t *val) |
Read all the interrupt/status flag of the device. | |
int32_t | stk8ba58_xl_range_set (const struct i2c_dt_spec *i2c, stk8ba58_range_t val) |
Accelerometer range selection. | |
int32_t | stk8ba58_xl_range_get (const struct i2c_dt_spec *i2c, stk8ba58_range_t *val) |
Accelerometer range selection. | |
int32_t | stk8ba58_xl_bandwidth_set (const struct i2c_dt_spec *i2c, stk8ba58_bw_t val, stk8ba58_ds_t sel) |
Accelerometer bandwidth selection. | |
int32_t | stk8ba58_xl_bandwidth_get (const struct i2c_dt_spec *i2c, stk8ba58_bw_t *val, stk8ba58_ds_t *sel) |
Accelerometer bandwidth selection. | |
int32_t | stk8ba58_xl_power_mode_set (const struct i2c_dt_spec *i2c, stk8ba58_sleepdur_t val, stk8ba58_pm_t sel) |
Accelerometer power mode selection. | |
int32_t | stk8ba58_xl_power_mode_get (const struct i2c_dt_spec *i2c, stk8ba58_sleepdur_t *val, stk8ba58_pm_t *sel) |
Accelerometer bandwidth selection. | |
int32_t | stk8ba58_acceleration_raw_get (const struct i2c_dt_spec *i2c, int16_t *buff) |
Linear acceleration output register. | |
int32_t | stk8ba58_device_id_get (const struct i2c_dt_spec *i2c, uint8_t *buff) |
DeviceChipID. | |
int32_t | stk8ba58_reset_set (const struct i2c_dt_spec *i2c, uint8_t val) |
Software reset. | |
int32_t | stk8ba58_pin_int1_mode_set (const struct i2c_dt_spec *i2c, stk8ba58_pp_od_t val) |
Push-pull/open-drain selection on interrupt pad. | |
int32_t | stk8ba58_pin_int1_mode_get (const struct i2c_dt_spec *i2c, stk8ba58_pp_od_t *val) |
Push-pull/open-drain selection on interrupt pad. | |
int32_t | stk8ba58_pin_int1_polarity_set (const struct i2c_dt_spec *i2c, stk8ba58_hl_active_t val) |
Polarity active-high/-low selection on interrupt pad. | |
int32_t | stk8ba58_pin_int1_polarity_get (const struct i2c_dt_spec *i2c, stk8ba58_hl_active_t *val) |
Polarity active-high/-low selection on interrupt pad. | |
int32_t | stk8ba58_int_notification_set (const struct i2c_dt_spec *i2c, stk8ba58_intlatch_t val) |
Latched/pulsed interrupt. | |
int32_t | stk8ba58_int_notification_get (const struct i2c_dt_spec *i2c, stk8ba58_intlatch_t *val) |
Latched/pulsed interrupt. | |
int32_t | stk8ba58_pin_int1_route_set (const struct i2c_dt_spec *i2c, stk8ba58_pin_int1_route_t val) |
Select the signal that need to route on int1 pad. | |
int32_t | stk8ba58_pin_int1_route_get (const struct i2c_dt_spec *i2c, stk8ba58_pin_int1_route_t *val) |
Select the signal that need to route on int1 pad. | |
int32_t | stk8ba58_int_enable_set (const struct i2c_dt_spec *i2c, stk8ba58_int_enable_t val) |
Enable the source that need to trigger interrupt. | |
int32_t | stk8ba58_int_enable_get (const struct i2c_dt_spec *i2c, stk8ba58_int_enable_t *val) |
Enable the source that need to trigger interrupt. | |
I2C-Bus Access for an STK8BA58.