Tool/software: Code Composer Studio
UART_read vs UART_read2 and UART_write vs UART_write2 pros and cons. how to use them? Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
UART_read vs UART_read2 and UART_write vs UART_write2 pros and cons. how to use them? Thanks
What are these functions? Where did you get them from? Please provide complete details of your use case.
Hi Biser
It come from your document.
Read/Write APIs
Interrupt:
UART_read(handle,scanPrompt, sizeof(scanPrompt));/* Read API */
...
UART_write(handle, bufferPrompt, sizeof(bufferPrompt));/* Write API */
Or
UART_transactionInit(&transaction);
transaction.buf = (void *)scanPrompt;
transaction.count = sizeof(scanPrompt);
UART_read2(uart, &transaction);
...
UART_transactionInit(&transaction);
transaction.buf = (void *)bufferPrompt;
transaction.count = sizeof(bufferPrompt);
UART_write2(uart, &transaction);
I am surprised your reply! If you don't know, just say it. I can ask other person. Thanks
Please take some time and read this: processors.wiki.ti.com/.../Guidelines_for_Posting_on_the_E2E_Forums
If you provide all the necessary information in your initial post there will be no wasted time, and your questions will be immediately directed to the correct person who can answer them. Otherwise you should not "be surprised" that there are additional questions asked.
Hi Biser
These functions come from software-dl.ti.com/.../index_device_drv.html
UART_read vs UART_read2 and UART_write vs UART_write2 pros and cons. how to use them? Thanks
Anping,
The API documentation for the UART driver provides explanation for all the available APIs provided in the LLD including usage and arguments. Please use the API documentation collateral included in Processor SDK RTOS:
pdk_am335x_1_0_xx/packages/API_Documentation.html (click on the header file under files tab and select UART.h)
For this time, I am posting a screenshot for your reference :
If you still have questions, please post further questions here.