This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART data continuous reading method

OS in development environment :Windows7
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
Soft Ver:nRF5_SDK_15.3.0_59ac345

Is it possible to store all data reception in the reception buffer in the Uart reception interrupt (uart_event_handle ())?
How can I read data from the receive buffer?
Can it be read using the following method?
-------------------------------------------------------------------------------
    for (index = 0; index < 0x0ff ; index ++)
    {
        err_code = app_uart_get(&data_array[index]);
        if(err_code != NRF_SUCCESS){
            break;
        }
    }
-------------------------------------------------------------------------------

Thanking you in advance.

Related