Difference between revisions of "Serialport"

From Lianjapedia
Jump to: navigation, search
(Created page with "Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. ====Properties==== This class supports the following propert...")
 
(Properties)
Line 15: Line 15:
 
|valign="top"|Numeric
 
|valign="top"|Numeric
 
|valign="top"|The baudrate
 
|valign="top"|The baudrate
 +
 +
|-
 +
|valign="top"|breakenabled
 +
|valign="top"|RW
 +
|valign="top"|Logical
 +
|valign="top"|The breakenabled state.
 +
 +
|-
 +
|valign="top"|databits
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|The number of databits
 +
|-
 +
|valign="top"|stopbits
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|The number of stopbits
 +
 +
|-
 +
|valign="top"|parity
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|The parity bits
 +
 +
|-
 +
|valign="top"|flowcontrol
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|The flowcontrol.
 +
 +
|-
 +
|valign="top"|portname
 +
|valign="top"|RW
 +
|valign="top"|character
 +
|valign="top"|The portname e.g com3
 +
 +
|-
 +
|valign="top"|dataterminalready
 +
|valign="top"|RW
 +
|valign="top"|Logical
 +
|valign="top"|The DTR state.
 +
 +
|-
 +
|valign="top"|requesttosend
 +
|valign="top"|RW
 +
|valign="top"|Logical
 +
|valign="top"|The RTS state
 +
 
|-
 
|-
 
|}
 
|}

Revision as of 07:17, 13 May 2024

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the following properties:

Property Access (R/RW) Value Description
baudrate RW Numeric The baudrate
breakenabled RW Logical The breakenabled state.
databits RW Numeric The number of databits
stopbits RW Numeric The number of stopbits
parity RW Numeric The parity bits
flowcontrol RW Numeric The flowcontrol.
portname RW character The portname e.g com3
dataterminalready RW Logical The DTR state.
requesttosend RW Logical The RTS state

Methods

This class supports the following methods:

Method Args Description
Open None Open the serial port specified in portname

Events

This class supports the the following events:

Event Args Description
dataavailable None Occurs when data is available