async_call: ashet.io.serial.configure
Documentation
Changes the configuration of a serial port and returns the new configuration.
This function can also be used to query the current configuration by requesting no changes.
Inputs
port: io.serial.SerialPortacceptable_baud_error: f32
Outputs
current_baud_rate: u32current_data_bits: u8current_stop_bits: io.serial.StopBitscurrent_parity: io.serial.Paritycurrent_control_flow: io.serial.ControlFlowcurrent_sw_control_flow_rx: io.serial.SoftwareControlFlowcurrent_sw_control_flow_tx: io.serial.SoftwareControlFlow
Errors
InvalidHandleImpreciseBaudRateThe actual baud rate diverges more than
acceptable_baud_errorfrom the requested baud rate.UnsupportedDataBitsThe requested word size is not supported by this serial port.
UnsupportedStopBitsThe requested number of stop bits is not supported by this serial port.
UnsupportedParityThe requested parity is not supported by this serial port.
UnsupportedControlFlowThe requested control flow (or its configuration) is not supported by this serial port.