Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
There is no direct API to read the string in PSoC 5.
To read the character array you can use a While loop with UART_GetChar(); API inside and continuously read it until you find a valid character.
You can use a separate character array in the firmware to store the characters those have been read.
You can termiate the polling of UART_GetChar(); process until you read an "enter" from the terminal.
In case if you dont want to waste time with polling, you can use an interrupt which triggers on receiving a byte in the RX buffer. In the ISR you can read the characters entered and decide them if they are valid/not/string terminated(enter) and take necessary action.