User`s manual
Events and Callbacks
8-49
Event Types and Callback Properties
The serial port event types and associated callback properties are described
below.
Break-Interrupt Event. A break-interrupt event is generated immediately after a
break interrupt is generated by the serial port. The serial port generates a
break interrupt when the received data has been in an inactive state longer
than the transmission time for one character.
This event executes the callback function specified for the
BreakInterruptFcn
property. It can be generated for both synchronous and asynchronous read and
write operations.
Bytes-Available Event. A bytes-available event is generated immediately after a
predetermined number of bytes are available in the input buffer or a
terminator is read, as determined by the
BytesAvailableFcnMode property.
If
BytesAvailableFcnMode is byte, the bytes-available event executes the
callback function specified for the
BytesAvailableFcn property every time the
number of bytes specified by
BytesAvailableFcnCount is stored in the input
Table 8-9: Event Types and Callback Properties
Event Type Associated Properties
Break interrupt BreakInterruptFcn
Bytes available BytesAvailableFcn
BytesAvailableFcnCount
BytesAvailableFcnMode
Error ErrorFcn
Output empty OutputEmptyFcn
Pin status PinStatusFcn
Timer TimerFcn
TimerPeriod