14.7.3.7.3 Function rtc_tamper_get_detect_flag()

Retrieves the RTC tamper detection status.

uint32_t rtc_tamper_get_detect_flag( struct rtc_module *const module)

Retrieves the detection status of each input pin and the input event.

Table 14-47. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to the RTC software instance struct

Returns

Bitmask of detection flags.

Table 14-48. Return Values
Return valueDescription

RTC_TAMPER_DETECT_ID0

Tamper condition on IN0 has been detected

RTC_TAMPER_DETECT_ID1

Tamper condition on IN1 has been detected

RTC_TAMPER_DETECT_ID2

Tamper condition on IN2 has been detected

RTC_TAMPER_DETECT_ID3

Tamper condition on IN3 has been detected

RTC_TAMPER_DETECT_ID4

Tamper condition on IN4 has been detected

RTC_TAMPER_DETECT_EVT

Tamper input event has been detected