RTT hardware abstraction layer driver. More...
RTT hardware abstraction layer driver.
Definition at line 53 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. More... | |
| void(* | set_alarm )(uint32_t alarm, rtt_cb_t cb, void *arg) |
| Set the hardware alarm. More... | |
| 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. More... | |
| void(* | poweron )(void) |
| Enable the RTT hardware counter. | |
| void(* | poweroff )(void) |
| Disable the RTT hardware counter. | |
| uint64_t(* rtt_hw_driver_t::get_counter) (void) |
Get the current hardware counter value.
Definition at line 63 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 88 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 71 of file rtt_arch.h.