SAM RTC Driver (Tamper)
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | rtc_tamper_config |
RTC Tamper configuration structure. More... | |
struct | rtc_tamper_input_config |
RTC tamper input configuration structure. More... | |
Macros | |
#define | RTC_TAMPER_DETECT_EVT (1UL << 5) |
RTC tamper input event detection bitmask. More... | |
#define | RTC_TAMPER_DETECT_ID0 (1UL << 0) |
RTC tamper ID0 detection bitmask. More... | |
#define | RTC_TAMPER_DETECT_ID1 (1UL << 1) |
RTC tamper ID1 detection bitmask. More... | |
#define | RTC_TAMPER_DETECT_ID2 (1UL << 2) |
RTC tamper ID2 detection bitmask. More... | |
#define | RTC_TAMPER_DETECT_ID3 (1UL << 3) |
RTC tamper ID3 detection bitmask. More... | |
#define | RTC_TAMPER_DETECT_ID4 (1UL << 4) |
RTC tamper ID4 detection bitmask. More... | |
Functions | |
RTC Tamper Detection | |
static void | rtc_tamper_get_config_defaults (struct rtc_tamper_config *const config) |
Gets the RTC tamper default configurations. More... | |
enum status_code | rtc_tamper_set_config (struct rtc_module *const module, struct rtc_tamper_config *const tamper_cfg) |
static uint32_t | rtc_tamper_get_detect_flag (struct rtc_module *const module) |
Retrieves the RTC tamper detection status. More... | |
static void | rtc_tamper_clear_detect_flag (struct rtc_module *const module, const uint32_t detect_flags) |
Clears RTC tamper detection flag. More... | |