/* This API reads the data from the given register.  */
BMG160_RETURN_FUNCTION_TYPE bmg160_read_register(u8 v_addr_u8, u8 *v_data_u8, u8 v_len_u8)
/* This API reads the data from the given register.  */
BMG160_RETURN_FUNCTION_TYPE bmg160_read_register(u8 v_addr_u8, u8 *v_data_u8, u8 v_len_u8)
{
    BMG160_RETURN_FUNCTION_TYPE comres = ERROR;
    if (p_bmg160 == BMG160_NULL)
    {
        return  E_BMG160_NULL_PTR;
    }
    else
    {
        comres = p_bmg160->BMG160_BUS_READ_FUNC
                 (p_bmg160->dev_addr, v_addr_u8, v_data_u8, v_len_u8);
    }
    return comres;
}