mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
Added fifoBuf_size function
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2030 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
42a02e5662
commit
91e6fb1485
@ -30,6 +30,11 @@
|
||||
// *****************************************************************************
|
||||
// circular buffer functions
|
||||
|
||||
uint16_t fifoBuf_size(t_fifo_buffer *buf)
|
||||
{ // return the size of the buffer
|
||||
return buf->buf_size;
|
||||
}
|
||||
|
||||
uint16_t fifoBuf_getUsed(t_fifo_buffer *buf)
|
||||
{ // return the number of bytes available in the rx buffer
|
||||
|
||||
|
@ -43,6 +43,8 @@ typedef struct
|
||||
|
||||
// *********************
|
||||
|
||||
uint16_t fifoBuf_size(t_fifo_buffer *buf);
|
||||
|
||||
uint16_t fifoBuf_getUsed(t_fifo_buffer *buf);
|
||||
uint16_t fifoBuf_getFree(t_fifo_buffer *buf);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user