/* This API is used to get the any motion(int2_any_motion) interrupt2 enable bits of the sensor in the registers 0x19 bit 1.  */
BMG160_RETURN_FUNCTION_TYPE bmg160_get_intr2_any_motion(u8 *v_intr2_any_motion_u8)
/* This API is used to get the any motion(int2_any_motion) interrupt2 enable bits of the sensor in the registers 0x19 bit 1.  */
BMG160_RETURN_FUNCTION_TYPE bmg160_get_intr2_any_motion(u8 *v_intr2_any_motion_u8)
{
    BMG160_RETURN_FUNCTION_TYPE comres = ERROR;
    u8 v_data_u8  = BMG160_INIT_VALUE;
    if (p_bmg160 == BMG160_NULL)
    {
        return  E_BMG160_NULL_PTR;
    }
    else
    {
        comres = p_bmg160->BMG160_BUS_READ_FUNC(p_bmg160->dev_addr,
                                                BMG160_INTR_MAP_TWO_INTR2_ANY_MOTION__REG,
                                                &v_data_u8, BMG160_GEN_READ_WRITE_DATA_LENGTH);
        *v_intr2_any_motion_u8 = BMG160_GET_BITSLICE(v_data_u8,
                                 BMG160_INTR_MAP_TWO_INTR2_ANY_MOTION);
    }
    return comres;
}