bma456.c
/*!
 *  @brief This API update the settings of step counter.
 */
@brief This API update the settings of step counter.
@brief This API update the settings of step counter .
static void update_stepcounter_parameter(const struct bma456_stepcounter_settings *setting, uint8_t index,
					uint8_t *feature_config)
{
	feature_config[index++] = BMA4_GET_LSB(setting->param1);
	feature_config[index++] = BMA4_GET_MSB(setting->param1);
	feature_config[index++] = BMA4_GET_LSB(setting->param2);
	feature_config[index++] = BMA4_GET_MSB(setting->param2);
	feature_config[index++] = BMA4_GET_LSB(setting->param3);
	feature_config[index++] = BMA4_GET_MSB(setting->param3);
	feature_config[index++] = BMA4_GET_LSB(setting->param4);
	feature_config[index++] = BMA4_GET_MSB(setting->param4);
	feature_config[index++] = BMA4_GET_LSB(setting->param5);
	feature_config[index++] = BMA4_GET_MSB(setting->param5);
	feature_config[index++] = BMA4_GET_LSB(setting->param6);
	feature_config[index++] = BMA4_GET_MSB(setting->param6);
	feature_config[index++] = BMA4_GET_LSB(setting->param7);
	feature_config[index++] = BMA4_GET_MSB(setting->param7);
	feature_config[index++] = BMA4_GET_LSB(setting->param8);
	feature_config[index++] = BMA4_GET_MSB(setting->param8);
	feature_config[index++] = BMA4_GET_LSB(setting->param9);
	feature_config[index++] = BMA4_GET_MSB(setting->param9);
	feature_config[index++] = BMA4_GET_LSB(setting->param10);
	feature_config[index++] = BMA4_GET_MSB(setting->param10);
	feature_config[index++] = BMA4_GET_LSB(setting->param11);
	feature_config[index++] = BMA4_GET_MSB(setting->param11);
	feature_config[index++] = BMA4_GET_LSB(setting->param12);
	feature_config[index++] = BMA4_GET_MSB(setting->param12);
	feature_config[index++] = BMA4_GET_LSB(setting->param13);
	feature_config[index++] = BMA4_GET_MSB(setting->param13);
	feature_config[index++] = BMA4_GET_LSB(setting->param14);
	feature_config[index++] = BMA4_GET_MSB(setting->param14);
	feature_config[index++] = BMA4_GET_LSB(setting->param15);
	feature_config[index++] = BMA4_GET_MSB(setting->param15);
	feature_config[index++] = BMA4_GET_LSB(setting->param16);
	feature_config[index++] = BMA4_GET_MSB(setting->param16);
	feature_config[index++] = BMA4_GET_LSB(setting->param17);
	feature_config[index++] = BMA4_GET_MSB(setting->param17);
	feature_config[index++] = BMA4_GET_LSB(setting->param18);
	feature_config[index++] = BMA4_GET_MSB(setting->param18);
	feature_config[index++] = BMA4_GET_LSB(setting->param19);
	feature_config[index++] = BMA4_GET_MSB(setting->param19);
	feature_config[index++] = BMA4_GET_LSB(setting->param20);
	feature_config[index++] = BMA4_GET_MSB(setting->param20);
	feature_config[index++] = BMA4_GET_LSB(setting->param21);
	feature_config[index++] = BMA4_GET_MSB(setting->param21);
	feature_config[index++] = BMA4_GET_LSB(setting->param22);
	feature_config[index++] = BMA4_GET_MSB(setting->param22);
	feature_config[index++] = BMA4_GET_LSB(setting->param23);
	feature_config[index++] = BMA4_GET_MSB(setting->param23);
	feature_config[index++] = BMA4_GET_LSB(setting->param24);
	feature_config[index++] = BMA4_GET_MSB(setting->param24);
	feature_config[index++] = BMA4_GET_LSB(setting->param25);
	feature_config[index] = BMA4_GET_MSB(setting->param25);
}
static void update_stepcounter_parameter ( const struct bma456_stepcounter_settings * setting , uint8_t index , uint8_t * feature_config ) { feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param1 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param1 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param2 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param2 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param3 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param3 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param4 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param4 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param5 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param5 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param6 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param6 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param7 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param7 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param8 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param8 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param9 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param9 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param10 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param10 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param11 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param11 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param12 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param12 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param13 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param13 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param14 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param14 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param15 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param15 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param16 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param16 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param17 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param17 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param18 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param18 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param19 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param19 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param20 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param20 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param21 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param21 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param22 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param22 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param23 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param23 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param24 ) ; feature_config [ index ++ ] = BMA4_GET_MSB ( setting -> param24 ) ; feature_config [ index ++ ] = BMA4_GET_LSB ( setting -> param25 ) ; feature_config [ index ] = BMA4_GET_MSB ( setting -> param25 ) ; }
@brief This API update the settings of step counter.
@brief This API update the settings of step counter .