/* This API write the data to the given register.  */
BMM050_RETURN_FUNCTION_TYPE bmm050_write_register(u8 v_addr_u8, u8 *v_data_u8, u8 v_len_u8)
/* This API write the data to the given register.  */
BMM050_RETURN_FUNCTION_TYPE bmm050_write_register(u8 v_addr_u8, u8 *v_data_u8, u8 v_len_u8)
{
    BMM050_RETURN_FUNCTION_TYPE com_rslt = ERROR;
    if (p_bmm050 == BMM050_NULL)
    {
        return  E_BMM050_NULL_PTR;
    }
    else
    {
        com_rslt = p_bmm050->BMM050_BUS_WRITE_FUNC(p_bmm050->dev_addr,
                   v_addr_u8, v_data_u8, v_len_u8);
    }
    return com_rslt;
}