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.
Hope this helps !
first I want to thank you for an answer.
Since I still don't know how to do this, I wanted to ask if you had a sample program in such a form where I could take a closer look at it?
That would certainly help me with my problem.
Thank you very much for helping me!
Could you take a look at some of my sample programs,
if they can be any help?