RTC Count configuration structure.
Configuration structure for the RTC instance. This structure should be initialized using the rtc_count_get_config_defaults() before any user configurations are set.
#include <rtc_count.h>
Data Fields | |
bool | clear_on_match |
If true, clears the counter value on compare match. More... | |
uint32_t | compare_values [RTC_NUM_OF_COMP16] |
Array of Compare values. More... | |
bool | continuously_update |
Continuously update the counter value so no synchronization is needed for reading. More... | |
bool | enable_read_sync |
Enable count read synchronization. More... | |
enum rtc_count_mode | mode |
Select the operation mode of the RTC. More... | |
enum rtc_count_prescaler | prescaler |
Input clock prescaler for the RTC module. More... | |
bool rtc_count_config::clear_on_match |
If true, clears the counter value on compare match.
Only available whilst running in 32-bit mode
Referenced by _rtc_count_set_config(), and rtc_count_get_config_defaults().
uint32_t rtc_count_config::compare_values[RTC_NUM_OF_COMP16] |
Array of Compare values.
Not all Compare values are available in 32-bit mode
Referenced by _rtc_count_set_config(), rtc_count_get_config_defaults(), and run_rtc_count_test().
bool rtc_count_config::continuously_update |
Continuously update the counter value so no synchronization is needed for reading.
Referenced by _rtc_count_set_config(), rtc_count_get_config_defaults(), and rtc_count_init().
bool rtc_count_config::enable_read_sync |
Enable count read synchronization.
The COUNT value requires synchronization when reading. Disabling the synchronization will prevent the COUNT value from displaying the current value.
Referenced by rtc_count_get_config_defaults().
enum rtc_count_mode rtc_count_config::mode |
Select the operation mode of the RTC.
Referenced by _rtc_count_set_config(), _usart_set_config(), rtc_count_get_config_defaults(), rtc_count_init(), and run_rtc_count_test().
enum rtc_count_prescaler rtc_count_config::prescaler |
Input clock prescaler for the RTC module.
Referenced by _rtc_count_set_config(), rtc_count_get_config_defaults(), and run_rtc_count_test().