Hi, This was already in the code i attached. accel_settin[0].type = BMA400_ACTIVITY_CHANGE_INT;
accel_settin[1].type = BMA400_ACCEL;
rslt = bma400_get_sensor_conf(accel_settin, 2, &bma);
bma400_check_rslt("bma400_get_sensor_conf", rslt);
accel_settin[0].param.act_ch.int_chan = BMA400_INT_CHANNEL_1;
accel_settin[0].param.act_ch.axes_sel = BMA400_AXIS_XYZ_EN;
accel_settin[0].param.act_ch.act_ch_ntps = BMA400_ACT_CH_SAMPLE_CNT_64;
accel_settin[0].param.act_ch.data_source = BMA400_DATA_SRC_ACC_FILT1;
accel_settin[0].param.act_ch.act_ch_thres = 10;
accel_settin[1].param.accel.odr = BMA400_ODR_100HZ;
accel_settin[1].param.accel.range = BMA400_RANGE_2G;
accel_settin[1].param.accel.data_src=BMA400_DATA_SRC_ACCEL_FILT_1;
/* Set the desired configurations to the sensor */
rslt = bma400_set_sensor_conf(accel_settin, 2, &bma);
bma400_check_rslt("bma400_set_sensor_conf", rslt);
... View more