bma456.c
/*!
 *  @brief This API copy the settings of step counter into the
 *  structure of bma456_stepcounter_settings, which is read from sensor.
 */
@brief This API copy the settings of step counter into the
structure of bma456_stepcounter_settings, which is read from sensor.
@brief This API copy the settings of step counter into the structure of bma456_stepcounter_settings which is read from sensor .
static void extract_stepcounter_parameter(struct bma456_stepcounter_settings *setting, const uint16_t *data_p)
{
	setting->param1 = *(data_p++);
	setting->param2 = *(data_p++);
	setting->param3 = *(data_p++);
	setting->param4 = *(data_p++);
	setting->param5 = *(data_p++);
	setting->param6 = *(data_p++);
	setting->param7 = *(data_p++);
	setting->param8 = *(data_p++);
	setting->param9 = *(data_p++);
	setting->param10 = *(data_p++);
	setting->param11 = *(data_p++);
	setting->param12 = *(data_p++);
	setting->param13 = *(data_p++);
	setting->param14 = *(data_p++);
	setting->param15 = *(data_p++);
	setting->param16 = *(data_p++);
	setting->param17 = *(data_p++);
	setting->param18 = *(data_p++);
	setting->param19 = *(data_p++);
	setting->param20 = *(data_p++);
	setting->param21 = *(data_p++);
	setting->param22 = *(data_p++);
	setting->param23 = *(data_p++);
	setting->param24 = *(data_p++);
	setting->param25 = *data_p;
}
static void extract_stepcounter_parameter ( struct bma456_stepcounter_settings * setting , const uint16_t * data_p ) { setting -> param1 = * ( data_p ++ ) ; setting -> param2 = * ( data_p ++ ) ; setting -> param3 = * ( data_p ++ ) ; setting -> param4 = * ( data_p ++ ) ; setting -> param5 = * ( data_p ++ ) ; setting -> param6 = * ( data_p ++ ) ; setting -> param7 = * ( data_p ++ ) ; setting -> param8 = * ( data_p ++ ) ; setting -> param9 = * ( data_p ++ ) ; setting -> param10 = * ( data_p ++ ) ; setting -> param11 = * ( data_p ++ ) ; setting -> param12 = * ( data_p ++ ) ; setting -> param13 = * ( data_p ++ ) ; setting -> param14 = * ( data_p ++ ) ; setting -> param15 = * ( data_p ++ ) ; setting -> param16 = * ( data_p ++ ) ; setting -> param17 = * ( data_p ++ ) ; setting -> param18 = * ( data_p ++ ) ; setting -> param19 = * ( data_p ++ ) ; setting -> param20 = * ( data_p ++ ) ; setting -> param21 = * ( data_p ++ ) ; setting -> param22 = * ( data_p ++ ) ; setting -> param23 = * ( data_p ++ ) ; setting -> param24 = * ( data_p ++ ) ; setting -> param25 = * data_p ; }
@brief This API copy the settings of step counter into the
  structure of bma456_stepcounter_settings, which is read from sensor.
@brief This API copy the settings of step counter into the structure of bma456_stepcounter_settings which is read from sensor .