User`s manual

8 Serial Port I/O
8-20
Configuring and Returning Properties
You establish the desired serial port object behavior by configuring property
values. You can display or configure property values using the
set function, the
get function, or dot notation.
Displaying Property Names and Property Values
Once the serial port object is created, you can use the set function to display
all the configurable properties to the command line. Additionally, if a property
has a finite set of string values, then
set also displays these values.
s = serial('COM1');
set(s)
ByteOrder: [ {littleEndian} | bigEndian ]
BytesAvailableFcn
BytesAvailableFcnCount
BytesAvailableFcnMode: [ {terminator} | byte ]
ErrorFcn
InputBufferSize
Name
OutputBufferSize
OutputEmptyFcn
RecordDetail: [ {compact} | verbose ]
RecordMode: [ {overwrite} | append | index ]
RecordName
Tag
Timeout
TimerFcn
TimerPeriod
UserData
SERIAL specific properties:
BaudRate
BreakInterruptFcn
DataBits
DataTerminalReady: [ {on} | off ]
FlowControl: [ {none} | hardware | software ]
Parity: [ {none} | odd | even | mark | space ]
PinStatusFcn
Port
ReadAsyncMode: [ {continuous} | manual ]