/** * <summary> * Returns the current baud rate used by this YoctoHub port, in kbps. * <para> * The default value is 1000 kbps, but a slower rate may be used if communication * problems are encountered. * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the current baud rate used by this YoctoHub port, in kbps * </returns> * <para> * On failure, throws an exception or returns <c>YHubPort.BAUDRATE_INVALID</c>. * </para> */ public int get_baudRate() { int res; if (_func == null) { throw new YoctoApiProxyException("No HubPort connected"); } res = _func.get_baudRate(); if (res == YAPI.INVALID_INT) { res = _BaudRate_INVALID; } return(res); }