Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more
SimpleEventQueue Struct Reference
Simple implementation of the pal::EventQueue. More...
#include <SimpleEventQueue.h>
Inherits ble::pal::EventQueue.
Public Member Functions | |
SimpleEventQueue () | |
Construct an empty event queue. | |
void | initialize (BLEInstanceBase *ble_base, BLE::InstanceID_t ble_id) |
Initialize the event queue with a BLEInstanceBase and a ble id. | |
~SimpleEventQueue () | |
virtual bool | post (const mbed::Callback< void()> &event) |
void | clear () |
Clear the event queue from all its events. | |
void | process () |
Process the event queue. |
Detailed Description
Simple implementation of the pal::EventQueue.
Definition at line 31 of file SimpleEventQueue.h.
Constructor & Destructor Documentation
SimpleEventQueue | ( | ) |
Construct an empty event queue.
a call to initialize is mandatory before any other call.
- Parameters:
-
ble_instance_id The id of the ble instance associated with that event queue.
Definition at line 43 of file SimpleEventQueue.h.
~SimpleEventQueue | ( | ) |
- See also:
- ble::pal::EventQueue
Definition at line 63 of file SimpleEventQueue.h.
Member Function Documentation
void clear | ( | void | ) |
Clear the event queue from all its events.
Definition at line 101 of file SimpleEventQueue.h.
void initialize | ( | BLEInstanceBase * | ble_base, |
BLE::InstanceID_t | ble_id | ||
) |
Initialize the event queue with a BLEInstanceBase and a ble id.
- Parameters:
-
ble_base the instance which will be used to signal the presence of new events. ble_id Id of the BLE instance using that event queue.
Definition at line 54 of file SimpleEventQueue.h.
virtual bool post | ( | const mbed::Callback< void()> & | event ) | [virtual] |
void process | ( | ) |
Process the event queue.
Definition at line 113 of file SimpleEventQueue.h.
Generated on Tue Jul 12 2022 13:03:38 by
