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.

AM3358: UART handle usage

Part Number: AM3358


UART_Params params;

UART_Params_init(&params);

// Open an instance of the UART drivers

UART_Handle handle = UART_open(UART_INSTANCE, &params);

Can I use handle for both read and write at same time? If yes, is there any limit on read and write? Thanks

  • Anping,

    Yes, the handle can be used for both Read and write. The handle is just a pointer to a structure that maintains the HW attributes (UART instance, interrupt setup, base address,etc) and Function table mapping of the driver and data object. 

    The easiest way to understand the usage is to look at Read write tests that we provide as part of UART example and test code.

    Regards,

    Rahul