Serial I/O Blocks

From NewEagleWiki
Revision as of 17:30, 17 June 2010 by Anonymous (talk | contribs) (Created page with '===MotoHawk:Blocks:Serial I/O Definition=== This MotoHawk® block defines and initializes the serial port. Only one of these blocks is allowed. Each direction, Transmit and Rece…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MotoHawk:Blocks:Serial I/O Definition

This MotoHawk® block defines and initializes the serial port. Only one of these blocks is allowed. Each direction, Transmit and Receive, may have a queue attached. Specify a queue size or 0 if no queue is desired. Note that the existence of this block disables the MotoTune protocol via RS-485.

MotoHawk:Blocks:Serial Receive

When this MotoHawk® block executes, the Trigger output port fires once for each character in the receive queue (if attached). The Character output port is set to the corresponding read character.

If no characters are available to be read, the Trigger will not fire.

MotoHawk:Blocks:Serial Transmit

When triggered, this MotoHawk® block places a single character into the serial port transmit queue (if attached), and schedules immediate transmission. Input a uint8 character.