Nicolas Borla / Mbed OS BBR_1Ebene
Embed: (wiki syntax)

« Back to documentation index

SimpleEventQueue Struct Reference

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

Construct an empty event queue.

Attention:
a call to initialize is mandatory before any other call.
Parameters:
ble_instance_idThe id of the ble instance associated with that event queue.

Definition at line 43 of file SimpleEventQueue.h.

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_basethe instance which will be used to signal the presence of new events.
ble_idId 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]
See also:
ble::pal::post

Implements EventQueue.

Definition at line 71 of file SimpleEventQueue.h.

void process (  )

Process the event queue.

Definition at line 113 of file SimpleEventQueue.h.