@CHIP-RTOS C Library V2.00 - Fossil API
fossil_readblock
Read block of data (no wait). unsigned int fossil_readblock ( int port,
unsigned char far *buffer,
unsigned int count ); Parameters
port
- Port specifier: FOSSIL_EXT = 0 for EXT port,
FOSSIL_COM = 1 for COM port
buffer
- Output parameter: Pointer to
buffer to put received bytes into.
count
- Size of buffer
, maximum
number of bytes to transfer.
Return Value
- Number of bytes transfered
Comments
- Read up to a specified number of bytes from a serial port
input queue
and return immediately.
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
|