/* This function is used for the soft reset The soft reset register will be written with 0xB6 in the register 0x14. */
BMG160_RETURN_FUNCTION_TYPE bmg160_set_soft_rst(void)
/* This function is used for the soft reset The soft reset register will be written with 0xB6 in the register 0x14. */
BMG160_RETURN_FUNCTION_TYPE bmg160_set_soft_rst(void)
{
    BMG160_RETURN_FUNCTION_TYPE comres = ERROR;
    u8 v_soft_rst_u8  = BMG160_INIT_VALUE;
    v_soft_rst_u8 = BMG160_SOFT_RESET;
    if (p_bmg160 == BMG160_NULL)
    {
        return  E_BMG160_NULL_PTR;
    }
    else
    {
        comres = p_bmg160->BMG160_BUS_WRITE_FUNC(p_bmg160->dev_addr,
                 BMG160_BGW_SOFT_RST_ADDR, &v_soft_rst_u8,
                 BMG160_GEN_READ_WRITE_DATA_LENGTH);
    }
    return comres;
}