/* This api used to reads the interrupt status of data, auto_offset, fast_offset and fifo_int in the register 0x0A.  */
BMG160_RETURN_FUNCTION_TYPE bmg160_get_intr_stat_reg_one(u8 *v_stat1_data_u8)
/* This api used to reads the interrupt status of data, auto_offset, fast_offset and fifo_int in the register 0x0A.  */
BMG160_RETURN_FUNCTION_TYPE bmg160_get_intr_stat_reg_one(u8 *v_stat1_data_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_STAT_ONE__REG,
                  &v_data_u8, BMG160_GEN_READ_WRITE_DATA_LENGTH);
        *v_stat1_data_u8 =
            BMG160_GET_BITSLICE(v_data_u8, BMG160_INTR_STAT_ONE);
    }
    return comres;
}