@CHIP-RTOS C Library V2.00 - Fossil API
fossil_putbyte_wait
Put byte in output buffer, wait if needed. int fossil_putbyte_wait ( int port, int ch ); Parameters
port
- Port specifier: FOSSIL_EXT = 0 for EXT port,
FOSSIL_COM = 1 for COM port
ch
- Byte to output
Return Value
- Status code (bit field):
bit 6: FOSSIL_OUTPUT_BUFFER_EMPTY
bit 5: FOSSIL_OUTPUT_NOT_FULL
bit 4: FOSSIL_LINE_BREAK Line break detected
bit 3: FOSSIL_FRAMING_ERROR Framing error detected
bit 2: FOSSIL_PARITY_ERROR Parity error detected
bit 1: FOSSIL_OVERRUN_ERROR Set if overrun occurred on receiver.
bit 0: FOSSIL_DATA_AVAILABLE Set if data is available in receiver buffer.
The header file contains the indicated mask definitions.
Comments
- Character is queued for transmission. If there is space
in the transmitter buffer when this call is made, the character
will be stored and control returned to caller. If the buffer
is full, the driver will wait for space. (This can be dangerous
when used in combination with flow control.)
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|