Uart queue flag indicating the empty or not

stock86c
Posts: 18
Joined: Mon Aug 19, 2019 10:15 am

Uart queue flag indicating the empty or not

Postby stock86c » Mon Aug 17, 2020 2:04 am

Hi everyone,

regarding to these posts
https://www.esp32.com/viewtopic.php?t=6096
viewtopic.php?t=5578

it inidcates that any amount of bytes above 120 will be split into intervals. My question is whether there exists a flag showing that there is still bytes in the queue that needs to be sent out, which after the last packet should show 0 that indicates all are sent. Any hints would be appreciated, thx.

ESP_Sprite
Posts: 9715
Joined: Thu Nov 26, 2015 4:08 am

Re: Uart queue flag indicating the empty or not

Postby ESP_Sprite » Mon Aug 17, 2020 7:49 am

There's a register that indicates how many bytes are in the FIFO, iirc. Check out the TRM for more information.

Who is online

Users browsing this forum: Baidu [Spider] and 298 guests