Hello,
first, sorry if i ask this question in the wrong place or maybe someone just asked this before.
how to know the size of the data that available in the serial buffer (using serial driver) ? or at least to know there are available data in the serial buffer.
thank you,
Taufiq.
data availability in serial buffer
- taufiqwidi
- Posts: 7
- Joined: Fri Jul 05, 2019 11:19 pm
- Has thanked: 1 time
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: data availability in serial buffer
Hi,
You need to use the queues functions for that kind of approach, see the HAL queues macros/functions, you can check the empty/full status or get the number of used/free slots in the queue.
Giovanni
You need to use the queues functions for that kind of approach, see the HAL queues macros/functions, you can check the empty/full status or get the number of used/free slots in the queue.
Giovanni
- taufiqwidi
- Posts: 7
- Joined: Fri Jul 05, 2019 11:19 pm
- Has thanked: 1 time
Who is online
Users browsing this forum: No registered users and 8 guests