MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Uživatelský manuál Strana 369

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 408
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 368
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
Zobrazit stránku 368
1 2 ... 364 365 366 367 368 369 370 371 372 373 374 ... 407 408

Komentáře k této Příručce

Žádné komentáře