Using MCC EUSART function to work with hexadecimal commands
I am working with MCC and a PIC18F26K22.
I want to use the EUSART1 interface to send a command, which is a string in hexadecimal format.
How could I use the EUSART1_Write(uint8_t txData) function for this?
Would it work if I just directly invoke this function a couple of times, for each byte of the command, without using delays?
Could I use printf() for this?
Similarly, I get a string of hexadecimal bytes back as a response. Do I need to call EUSART1_Read() for each byte in the response I get?