Loading...
Searching...
No Matches
rtt_hw_driver_t Struct Reference

RTT hardware abstraction layer driver. More...

Detailed Description

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.
 

Field Documentation

◆ clear_alarm

void(* rtt_hw_driver_t::clear_alarm) (void)

Clear the hardware alarm.

Definition at line 80 of file rtt_arch.h.

◆ get_counter

uint64_t(* rtt_hw_driver_t::get_counter) (void)

Get the current hardware counter value.

Returns
48-bit counter value with a frequency of 32.768 kHz

Definition at line 67 of file rtt_arch.h.

◆ init

void(* rtt_hw_driver_t::init) (void)

Init the current hardware counter.

Definition at line 61 of file rtt_arch.h.

◆ poweroff

void(* rtt_hw_driver_t::poweroff) (void)

Disable the RTT hardware counter.

Definition at line 102 of file rtt_arch.h.

◆ poweron

void(* rtt_hw_driver_t::poweron) (void)

Enable the RTT hardware counter.

Definition at line 97 of file rtt_arch.h.

◆ restore_counter

void(* rtt_hw_driver_t::restore_counter) (bool in_init)

Restore the counter value before sleep or reboot.

Parameters
[in]in_inittrue if function is called after deep sleep or reboot, false otherwise

Definition at line 92 of file rtt_arch.h.

◆ save_counter

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.

◆ set_alarm

void(* rtt_hw_driver_t::set_alarm) (uint32_t alarm, rtt_cb_t cb, void *arg)

Set the hardware alarm.

Parameters
[in]alarmalarm time as 32.768 kHz ticks
[in]cbfunction called on alarm interrupt
[in]argargument used as parameter for the cb function

Definition at line 75 of file rtt_arch.h.


The documentation for this struct was generated from the following file: