TeensyNanoExoCode
Loading...
Searching...
No Matches
Functions
ble_queue Namespace Reference

Functions

BleMessage pop ()
 Pop a message off of the FIFO queue.
 
void push (BleMessage *msg)
 Put a message on the FIFO queue.
 
int size ()
 Check the size of the FIFO queue.
 
int check_for (BleMessage msg)
 Search the queue for a matching message.
 
void clear ()
 Forcibly empty the queue.
 

Function Documentation

◆ check_for()

int ble_queue::check_for ( BleMessage  msg)

Search the queue for a matching message.

Parameters
msgMessage to search for.
Returns
int Number of identical messages found
Here is the call graph for this function:

◆ clear()

void ble_queue::clear ( )

Forcibly empty the queue.

◆ pop()

BleMessage ble_queue::pop ( )

Pop a message off of the FIFO queue.

Returns
BleMessage Head of queue
Here is the call graph for this function:

◆ push()

void ble_queue::push ( BleMessage msg)

Put a message on the FIFO queue.

Parameters
msgPointer to message you would like to place on the queue. You do not need to maintain the lifetime of msg.
Here is the call graph for this function:

◆ size()

int ble_queue::size ( )

Check the size of the FIFO queue.

Returns
int The ammount of messages on the queue. One indexed.