UART Wildcard User Guide
<< Previous | Next>>
C: void Emit_UART ( uchar character, int channel_num, int module_num )
4th: Emit_UART ( char\channel_num\module_num -- )
Queues the specified character in the output FIFO for transmission on the specified serial channel. If the output FIFO is full, this routine waits and PAUSEs until there is room in the FIF0, then puts the specified character in the FIFO so that it will be transmitted. See also Ch1_Emit and Ch2_Emit.
C: void End_Break ( int channel_num, int module_num )
4th: End_Break( channel_num\module_num -- )
Ends the break sequence that was initiated by Send_Break on the specified channel, thereby returning the specified output to the idle high (mark) state at the UART.
C: EVEN_PARITY
4th: EVEN_PARITY ( -- n )
A constant (= 0x18) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for even parity, meaning that the sum of the bits is constrained to be even.
C: HIGH_PARITY
4th: HIGH_PARITY ( -- n )
A constant (= 0x28) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for high parity, meaning that the parity bit is high at the UART. This is also known as "mark parity".
C: void Is_DTR ( int desired_state, int module_num )
4th: Is_DTR ( desired_state\module_num -- )
Writes the specified state to the DTR (Data Terminal Ready) output on channel1. If the specified state is true (nonzero), the signal is made active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). If the specified state is false (zero), the signal is made inactive (i.e., low in the UART register, high at the UART output pin, and low on the RS232 cable). This signal is typically used for modem handshaking.
C: void Is_RTS ( int desired_state, int module_num )
4th: Is_RTS ( desired_state\module_num -- )
Writes the specified state to the RTS (Request To Send) output on channel1. If the specified state is true (nonzero), the signal is made active (i.e., high in UART register, low at the UART output pin, and high on the RS232 cable). If the specified state is false (zero), the signal is made inactive (i.e., low in the UART register, high at the UART output pin, and low on the RS232 cable). This signal is typically used for modem handshaking.
C: uchar Key_UART ( int channel_num, int module_num )
4th: Key_UART ( channel_num\module_num -- char )
Waits (if necessary) for receipt of a character from the specified channel and module, and returns the received character. PAUSEs while waiting. The returned byte is the next pending character in the FIFO (that is, the oldest unretrieved character in the receive FIFO). See also Ch1_Key and Ch2_Key.
C: LOW_PARITY
4th: LOW_PARITY ( -- n )
A constant (= 0x38) that, when passed as a parameter to the Set_Data_Format function, configures the channel’s data format for low parity, meaning that the parity bit is low at the UART. This is also known as "space parity".
<< Previous | Next>>
|