BGA
Second Officer
Brazil
Offline
|
WHen I say all in, I mean it!
9. UART
serial_ctrl.serial_config( baud_rate , data_bit , odd_even , stop_bit )
description:
Set baud rate, data bit, parity bit and stop bit properties of the serial port
parameter:
baud_rate -set baud rate, selectable baud rate is 9600, 19200, 38400, 57600, 115200
data_bit -set data bit, optional data bits are cs7, cs8
odd_even_crc -set odd parity, see table for detailsodd_even_crc
stop_bit -set the stop bit, optional stop bits are 1, 2
return:
no
Example:
serial_ctrl.serial_config(9600, 'cs8', 'none', '1')
Example description:
Set the baud rate of the serial port to 9600, data bits to 8 bits, no parity check, and stop bit to 1 bit
|
|