Other Parts Discussed in Thread: CC1310
Tool/software: Code Composer Studio
Hey guys,
I have a cc1310 Launchpad as collector (collector/sensor example). I've been through UART Echo example and UART.h file reference so far. I can set a HWI at the collector, which sets an event in the collector. When this event is processed in collector.c I want to read the UART line to see if there is some new information.
Here some info regarding the UART line content:
- There could be no message
- At the moment, the message is a value between 1-9 however, the length could increase, so I'd like to read until a new line is detected
So far I dont know which settings to use:
- Callback or blocking?
- Are readDataMode = Binary and readReurnMode = UART_RETURN_NEWLINE correct?
- Should I use UART_read? If yes, which arguments should i set?!
- What further settings should I make?
Kind regards
Slev1n