1
0
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:
pip 2010-10-28 15:14:44 +00:00 committed by pip
parent 42a02e5662
commit 91e6fb1485
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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);