1 of 1 people found this helpful
If you are using PSoC Creator, the Peripheral Driver Library (PDL) document can be accessed from the "Help" menu item as follows.
The the "Serial Communication Block (SCB)" at the "API Reference" chapter contains the description about the Cy_SCB_UART_GetArray() function.
The function returns the number of received bytes without waiting for a character received. This means that you must wait for the API function returns 1 instead of 0 to get a character in a loop like while() statement.
Please consider to use the API function Cy_SCB_UART_GetArrayBlocking() not to make a loop.
Thank you so much! I was stuck with Cy_SCB_UART_GetArray() since a few days and I wasn't receiving the exact output which I was sending. Your suggestion of while() loop helped me out and establish the connection. Am grateful for your help.