Difference between revisions of "SHIP:Port:uart"

From Serious Documentation
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
If you attempt to set an invalid value for any of these [[SHIP:Portvar|portvars]], the value of the portvar will not be changed. (see {{Const|UART_FLAGS}})
 
If you attempt to set an invalid value for any of these [[SHIP:Portvar|portvars]], the value of the portvar will not be changed. (see {{Const|UART_FLAGS}})
 
{{PortvarTableStart|}}
 
{{PortvarTableStart|}}
|{{Portvar|uart|rate}}{{†}}||{{DataType|Integer}}||Read/Write||The baud rate.
+
|{{:SHIP:Port:uart:rate}}
 
|-
 
|-
||{{Portvar|uart|bits}}{{†}}||{{DataType|Byte}}||Read/Write||The number of bits per character set.
+
|{{:SHIP:Port:uart:bits}}
 
|-
 
|-
||{{Portvar|uart|stop}}{{†}}||{{DataType|Byte}}||Read/Write||The number of stop bits sent after each character set.
+
|{{:SHIP:Port:uart:stop}}
 
|-
 
|-
||{{Portvar|uart|parity}}{{†}}||{{DataType|Byte}}||Read/Write||The parity bit sent after each character set.
+
|{{:SHIP:Port:uart:parity}}
 +
|-
 +
|{{:SHIP:Port:uart:txControl}}
 
|}</onlyinclude>
 
|}</onlyinclude>
  
 
{{†}}see [[SHIP:GRMs|GRM]]
 
{{†}}see [[SHIP:GRMs|GRM]]

Latest revision as of 07:21, 1 April 2014

UART ports are used to configure the way a SIM communicates with some other device and are usually referred to in the format "platform.UART0", "platform.UART1", etc.

If you attempt to set an invalid value for any of these portvars, the value of the portvar will not be changed. (see UART_FLAGS)

Portvar Data Type Permissions Description
rate Integer Read/Write The baud rate.
bits UART_FLAG Read/Write The number of bits per character set.
stop UART_FLAG Read/Write The number of stop bits sent after each character set.
parity UART_FLAG Read/Write The parity bit sent after each character set.
txControl UART_FLAG Read/Write Sets how the hardware tx control line functions for full/half duplex transceiver control (default UART_FLAGS.TXC_UNUSED).

see GRM