Eddystone test using modified DAL

Dependencies:   BLE_API mbed-dev-bin nRF51822

Dependents:   microbit-eddystone

Fork of microbit-dal by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

MicroBitSystemTimerCallback Class Reference

MicroBitSystemTimerCallback Class Reference

A simple C/C++ wrapper to allow periodic callbacks to standard C functions transparently. More...

#include <MicroBitSystemTimer.h>

Inherits MicroBitComponent.

Public Member Functions

 MicroBitSystemTimerCallback (void(*function)(void))
 Creates an object that receives periodic callbacks from the system timer, and, in turn, calls a plain C function as provided as a parameter.
void systemTick ()
 The system timer will call this member function once the component has been added to the array of system components using system_timer_add_component.

Private Member Functions

virtual void idleTick ()
 The idle thread will call this member function once the component has been added to the array of idle components using fiber_add_idle_component.

Detailed Description

A simple C/C++ wrapper to allow periodic callbacks to standard C functions transparently.

Definition at line 141 of file MicroBitSystemTimer.h.


Constructor & Destructor Documentation

MicroBitSystemTimerCallback ( void(*)(void)  function )

Creates an object that receives periodic callbacks from the system timer, and, in turn, calls a plain C function as provided as a parameter.

Parameters:
functionthe function to invoke upon a systemTick.

Definition at line 152 of file MicroBitSystemTimer.h.


Member Function Documentation

void systemTick (  ) [virtual]

The system timer will call this member function once the component has been added to the array of system components using system_timer_add_component.

This callback will be in interrupt context.

Reimplemented from MicroBitComponent.

Definition at line 158 of file MicroBitSystemTimer.h.