Low-level RTT (Real Time Timer) peripheral driver interface definitions.  
More...
#include <stdint.h>
#include "periph_conf.h"
Go to the source code of this file.
|  | 
| typedef void(* | rtt_cb_t) (void *arg) | 
|  | Signature for the alarm callback. 
 | 
|  | 
|  | 
| void | rtt_init (void) | 
|  | Initialize RTT module. 
 | 
|  | 
| void | rtt_set_overflow_cb (rtt_cb_t cb, void *arg) | 
|  | Set a callback for the counter overflow event. 
 | 
|  | 
| void | rtt_clear_overflow_cb (void) | 
|  | Clear the overflow callback. 
 | 
|  | 
| uint32_t | rtt_get_counter (void) | 
|  | Get the current RTT counter. 
 | 
|  | 
| void | rtt_set_counter (uint32_t counter) | 
|  | Set the RTT counter to a specified value. 
 | 
|  | 
| void | rtt_set_alarm (uint32_t alarm, rtt_cb_t cb, void *arg) | 
|  | Set an alarm for RTT to the specified absolute target time. 
 | 
|  | 
| uint32_t | rtt_get_alarm (void) | 
|  | Get the value of a set alarm. 
 | 
|  | 
| void | rtt_clear_alarm (void) | 
|  | Clear any set alarm, do nothing if nothing set. 
 | 
|  | 
| void | rtt_poweron (void) | 
|  | Turn the RTT hardware module on. 
 | 
|  | 
| void | rtt_poweroff (void) | 
|  | Turn the RTT hardware module off. 
 | 
|  |