30#include "../../../SensorBuildOpt.h"
31#if !SENSORLIB_EXCLUDE_BHI360
37 return BHI360_CHIP_ID;
42 int8_t rslt = bhi360_phy_sensor_ctrl_param_get_step_counter_config(&config, getDev());
43 if (rslt != BHY2_OK) {
44 SENSORLIB_LOG_E(
"Failed to get Step Counter configuration, error code: %d", rslt);
52 int8_t rslt = bhi360_phy_sensor_ctrl_param_set_step_counter_config(&config, getDev());
53 if (rslt != BHY2_OK) {
54 SENSORLIB_LOG_E(
"Failed to set Step Counter configuration, error code: %d", rslt);
62 int8_t rslt = bhi360_multi_tap_param_detector_get_config(&config, getDev());
63 if (rslt != BHY2_OK) {
64 SENSORLIB_LOG_E(
"Failed to get Multi Tap Detector configuration, error code: %d", rslt);
72 int8_t rslt = bhi360_multi_tap_param_detector_set_config(&config, getDev());
73 if (rslt != BHY2_OK) {
74 SENSORLIB_LOG_E(
"Failed to set Multi Tap Detector configuration, error code: %d", rslt);
82 int8_t rslt = bhi360_multi_tap_param_get_config(config, getDev());
83 if (rslt != BHY2_OK) {
84 SENSORLIB_LOG_E(
"Failed to get Multi Tap Param configuration, error code: %d", rslt);
92 int8_t rslt = bhi360_multi_tap_param_set_config(&config, getDev());
93 if (rslt != BHY2_OK) {
94 SENSORLIB_LOG_E(
"Failed to set Multi Tap Param configuration, error code: %d", rslt);
#define SENSORLIB_LOG_E(...)
bool getMultiTapDetectorConfig(MultiTapDetectorConfig &config)
Get the current configuration of the Multi Tap Detector algorithm.
bool setMultiTapDetectorConfig(const MultiTapDetectorConfig &config)
Set the configuration for the Multi Tap Detector algorithm.
uint16_t getConfirmationIDImpl() override
Get the confirmation ID for the sensor.
bool setStepCounterConfig(const StepCounterConfig &config)
Set the configuration for the Step Counter algorithm.
bool setMultiTapParamConfig(const MultiTapDataType &config)
Set the configuration for the Multi Tap parameters.
bool getStepCounterConfig(StepCounterConfig &config)
Get the current configuration of the Step Counter algorithm.
bool getMultiTapParamConfig(MultiTapDataType(&config)[8])
Get the current configuration of the Multi Tap parameters.
bhi360_multi_tap_param_detector MultiTapDetectorConfig
bhi360_event_data_multi_tap MultiTapDataType
bhi360_phy_sensor_ctrl_param_step_counter StepCounterConfig