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

NRF_UARTE0: Can I check received bytes befor generating event EVENTS_ENDRX

Hi all, About the NRF_UARTE0 of nRF52, I want to check the number of received data(example:I set RXD.MAXCNT=16, but I just receive 10 bytes now.Then I want to handler these 10 bytes,how to to?). According to doc,I can't find any way to get the length of received data,just generate event EVENTS_ENDRX when the length received bytes is equal to RXD.MAXCNT.I don't want to trigger STOPRX task to generate event EVENTS_ENDRX,then read RXD.AMOUNT to check this, Maybe lost bytes. So how can I do this?

Parents Reply Children
No Data
Related