1.2.19.53 RTC_TamperSourceGet Function

C

TAMPER_CHANNEL RTC_TamperSourceGet( void );

Summary

Get the Tamper source.

Description

This function returns the channel number that resulted in Tamper Detection interrupt.

Precondition

Tamper channels must be configured properly using MHC.

Parameters

Param Description
reg Backup register to be used

Returns

The Tamper channel over which Tamper was detected.

Example

//Get Tamper channel
uint32_t value = RTC_TamperSourceGet();

Remarks

This Feature may not be available on all devices. Refer to device Datasheet for more information..