nRF51 SDK: SDM data update timer

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Typedefs | Functions
SDM data update timer
main.c

SDM TX timer interface. More...

## Typedefs

typedef void(* | timer_callback_t )()

## Functions

void | timer_initialize (void)
| Power up and configure the time reference peripheral. More...
void | timer_register (timer_callback_t timer_expiration_callback)
| Register a timer callback client. More...
void | timer_start (void)
| Start the scheduling of a previously registered callback handler.

## Detailed Description

SDM TX timer interface.

## Typedef Documentation

typedef void(* timer_callback_t)()

The timer client callback prototype.

## Function Documentation

void timer_initialize | ( | void |  | ) |

Power up and configure the time reference peripheral.

< Desired RTC COUNTER frequency is 50Hz (20ms per counter period).

< Value for the COMPARE register.

void timer_register | ( | timer_callback_t | timer_expiration_callback | ) |

Register a timer callback client.

Parameters

  [in] | timer_expiration_callback | The timer client callback handler, which is called upon timer expiration time.