@CHIP-RTOS C Library V2.06 - Fossil API
fossil_putbyte_wait
Put byte in output buffer, wait if needed. int fossil_putbyte_wait ( int port, int ch ); Parameters
ch
- Byte to output
SC1x Parameters
- port
- Port specifier:
FOSSIL_EXT = 0 for EXT port
FOSSIL_COM = 1 for COM port
SC1x3 Parameters
- port
- Port specifier:
FOSSIL_EXT = 0 for EXT port
FOSSIL_COM = 1 for COM port
FOSSIL_SER2 = 2 for SER2 port
FOSSIL_SER3 = 3 for SER3 port
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.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|