IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_readblock()

unsigned int fossil_readblock ( int  port,
BYTE *  buffer,
unsigned int  count 
)

Read block of data from serial input buffer, do not wait for number of bytes to arrive.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
bufferOutput parameter: Pointer to buffer to put received bytes into.
countSize of buffer, maximum number of bytes to transfer
Returns
0 = Read failed or port is invalid, else
number of bytes transfered
Since
V0.80
See also
fossil_getbyte_wait() fossil_getbyte() fossil_readblock_wait()





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13