RTT hardware abstraction layer driver. More...
RTT hardware abstraction layer driver.
Definition at line 57 of file rtt_arch.h.
#include <rtt_arch.h>
Data Fields | |
void(* | init )(void) |
Init the current hardware counter. | |
uint64_t(* | get_counter )(void) |
Get the current hardware counter value. | |
void(* | set_alarm )(uint32_t alarm, rtt_cb_t cb, void *arg) |
Set the hardware alarm. | |
void(* | clear_alarm )(void) |
Clear the hardware alarm. | |
void(* | save_counter )(void) |
Save the counter value before sleep or reboot if necessary. | |
void(* | restore_counter )(bool in_init) |
Restore the counter value before sleep or reboot. | |
void(* | poweron )(void) |
Enable the RTT hardware counter. | |
void(* | poweroff )(void) |
Disable the RTT hardware counter. | |
void(* rtt_hw_driver_t::clear_alarm) (void) |
Clear the hardware alarm.
Definition at line 80 of file rtt_arch.h.
uint64_t(* rtt_hw_driver_t::get_counter) (void) |
Get the current hardware counter value.
Definition at line 67 of file rtt_arch.h.
void(* rtt_hw_driver_t::init) (void) |
Init the current hardware counter.
Definition at line 61 of file rtt_arch.h.
void(* rtt_hw_driver_t::poweroff) (void) |
Disable the RTT hardware counter.
Definition at line 102 of file rtt_arch.h.
void(* rtt_hw_driver_t::poweron) (void) |
Enable the RTT hardware counter.
Definition at line 97 of file rtt_arch.h.
void(* rtt_hw_driver_t::restore_counter) (bool in_init) |
Restore the counter value before sleep or reboot.
[in] | in_init | true if function is called after deep sleep or reboot, false otherwise |
Definition at line 92 of file rtt_arch.h.
void(* rtt_hw_driver_t::save_counter) (void) |
Save the counter value before sleep or reboot if necessary.
Definition at line 85 of file rtt_arch.h.
void(* rtt_hw_driver_t::set_alarm) (uint32_t alarm, rtt_cb_t cb, void *arg) |
Set the hardware alarm.
[in] | alarm | alarm time as 32.768 kHz ticks |
[in] | cb | function called on alarm interrupt |
[in] | arg | argument used as parameter for the cb function |
Definition at line 75 of file rtt_arch.h.