TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Typedefs. More...

Data Structures

struct  TM_RTC_t
 RTC Struct for date/time. More...
 
struct  TM_RTC_AlarmTime_t
 RTC structure for alarm time. More...
 

Enumerations

enum  TM_RTC_Result_t { TM_RTC_Result_Ok, TM_RTC_Result_Error }
 RTC Result enumeration. More...
 
enum  TM_RTC_Format_t { TM_RTC_Format_BIN = 0x00, TM_RTC_Format_BCD }
 RTC date and time format. More...
 
enum  TM_RTC_Int_t {
  TM_RTC_Int_Disable = 0x00, TM_RTC_Int_60s, TM_RTC_Int_30s, TM_RTC_Int_15s,
  TM_RTC_Int_10s, TM_RTC_Int_5s, TM_RTC_Int_2s, TM_RTC_Int_1s,
  TM_RTC_Int_500ms, TM_RTC_Int_250ms, TM_RTC_Int_125ms
}
 RTC Interrupt enumeration. More...
 
enum  TM_RTC_ClockSource_t { TM_RTC_ClockSource_Internal = 0x00, TM_RTC_ClockSource_External }
 Select RTC clock source. More...
 
enum  TM_RTC_AlarmType_t { TM_RTC_AlarmType_DayInWeek, TM_RTC_AlarmType_DayInMonth }
 RTC Alarm type. More...
 
enum  TM_RTC_Alarm_t { TM_RTC_Alarm_A = 0x00, TM_RTC_Alarm_B }
 Alarm identifier you will use for Alarm functions. More...
 

Detailed Description

Library Typedefs.

Enumeration Type Documentation

Alarm identifier you will use for Alarm functions.

Enumerator
TM_RTC_Alarm_A 

Work with alarm A

TM_RTC_Alarm_B 

Work with alarm B

RTC Alarm type.

Enumerator
TM_RTC_AlarmType_DayInWeek 

Trigger alarm every day in a week, days from 1 to 7 (Monday to Sunday)

TM_RTC_AlarmType_DayInMonth 

Trigger alarm every month

Select RTC clock source.

Note
Internal clock is not accurate and should not be used in production
Enumerator
TM_RTC_ClockSource_Internal 

Use internal clock source for RTC (LSI oscillator)

TM_RTC_ClockSource_External 

Use external clock source for RTC (LSE oscillator)

RTC date and time format.

Enumerator
TM_RTC_Format_BIN 

RTC data in binary format

TM_RTC_Format_BCD 

RTC data in binary-coded decimal format

RTC Interrupt enumeration.

Enumerator
TM_RTC_Int_Disable 

Disable RTC wakeup interrupts

TM_RTC_Int_60s 

RTC Wakeup interrupt every 60 seconds

TM_RTC_Int_30s 

RTC Wakeup interrupt every 30 seconds

TM_RTC_Int_15s 

RTC Wakeup interrupt every 15 seconds

TM_RTC_Int_10s 

RTC Wakeup interrupt every 10 seconds

TM_RTC_Int_5s 

RTC Wakeup interrupt every 5 seconds

TM_RTC_Int_2s 

RTC Wakeup interrupt every 2 seconds

TM_RTC_Int_1s 

RTC Wakeup interrupt every 1 seconds

TM_RTC_Int_500ms 

RTC Wakeup interrupt every 500 milliseconds

TM_RTC_Int_250ms 

RTC Wakeup interrupt every 250 milliseconds

TM_RTC_Int_125ms 

RTC Wakeup interrupt every 125 milliseconds

RTC Result enumeration.

Enumerator
TM_RTC_Result_Ok 

Everything OK

TM_RTC_Result_Error 

An error occurred