drivers/rtt/rtt.h
Go to the documentation of this file.
1 
33 /*
34  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35  */
36 
37 #ifndef RTT_H_INCLUDED
38 #define RTT_H_INCLUDED
39 
40 #include "compiler.h"
41 
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 
50 uint32_t rtt_init(Rtt *p_rtt, uint16_t us_prescaler);
51 #if (SAM4N || SAM4S || SAM4E || SAM4C || SAMG || SAM4CP || SAM4CM || SAMV71 || SAMV70 || SAME70 || SAMS70)
52 void rtt_sel_source(Rtt *p_rtt, bool is_rtc_sel);
53 void rtt_enable(Rtt *p_rtt);
54 void rtt_disable(Rtt *p_rtt);
55 #endif
56 void rtt_enable_interrupt(Rtt *p_rtt, uint32_t ul_sources);
57 void rtt_disable_interrupt(Rtt *p_rtt, uint32_t ul_sources);
58 uint32_t rtt_read_timer_value(Rtt *p_rtt);
59 uint32_t rtt_get_status(Rtt *p_rtt);
60 uint32_t rtt_write_alarm_time(Rtt *p_rtt, uint32_t ul_alarm_time);
61 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 
70 #endif /* RTT_H_INCLUDED */
uint32_t rtt_init(Rtt *p_rtt, uint16_t us_prescaler)
Initialize the given RTT.
Definition: rtt.c:78
void rtt_enable_interrupt(Rtt *p_rtt, uint32_t ul_sources)
Enable RTT interrupts.
Definition: rtt.c:157
Commonly used includes, types and macros.
uint32_t rtt_read_timer_value(Rtt *p_rtt)
Read the current value of the RTT timer value.
Definition: rtt.c:194
uint32_t rtt_write_alarm_time(Rtt *p_rtt, uint32_t ul_alarm_time)
Configure the RTT to generate an alarm at the given time. alarm happens when CRTV value equals ALMV+1...
Definition: rtt.c:227
Rtt hardware registers.
uint32_t rtt_get_status(Rtt *p_rtt)
Get the status register value of the given RTT.
Definition: rtt.c:212
void rtt_disable_interrupt(Rtt *p_rtt, uint32_t ul_sources)
Disable RTT interrupts.
Definition: rtt.c:175


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58