1.8.17.5 RTC_FirstTimeStampGet Function

C

void RTC_FirstTimeStampGet(struct tm * sysTime, RTC_TAMP_INPUT tamperInput);

Summary

Reads the timestamp for first occurrence of given tamper input

Description

This function is used to read the timestamp for first occurrence of given tamper input.

Precondition

None.

Parameters

Param Description
sysTime This is an output parameter that will be filled with the timestamp
tamperInput RTC tamper input number

Returns

None

Example

struct tm dateTime;
//get the timestamp for first occurrence of given tamper input
RTC_FirstTimeStampGet(&dateTime, RTC_TAMP_INPUT_0);