| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
Exported Functions
BLUENRG1 Peripheral Driver » RTC Peripheral

## Functions

void | RTC_Init (RTC_InitType *RTC_InitStruct)
| Initializes the RTC peripheral according to the specified parameters in the RTC_InitStruct. More...
void | RTC_Cmd (FunctionalState NewState)
| Enables or disables selected RTC peripheral. More...
void | RTC_IT_Config (uint8_t RTC_IT, FunctionalState NewState)
| Enables or disables selected RTC interrupt. More...
ITStatus | RTC_IT_Status (uint8_t RTC_IT)
| Return the RTC interrupt status for the specified IT. More...
void | RTC_IT_Clear (uint8_t RTC_IT)
| Clear selected RTC interrupt. More...
void | RTC_ClockwatchCmd (FunctionalState NewState)
| Enables or disables selected RTC clockwatch. More...
void | RTC_SetTimeDate (RTC_DateTimeType *RTC_DateTime)
| Initialize the RTC clockwatch with present time and date. More...
void | RTC_SetMatchTimeDate (RTC_DateTimeType *RTC_MatchDataTime)
| Set the RTC clockwatch match date and time registers. More...
void | RTC_GetTimeDate (RTC_DateTimeType *RTC_DataTime)
| Set the RTC clockwatch match date and time registers. More...
uint32_t | RTC_GetTimerValue (void)
| Return the actual timer counter. More...
void | RTC_AutoStart (FunctionalState NewState)
| Enables or disables the auto start on load register or pattern register write operation. More...
void | RTC_SelectTrimmedClock (FunctionalState NewState)
| Enables or disables the use of the trimmed 32 kHz clock. More...
uint32_t | RTC_GetNumberIrqGenerated (void)
| Return the actual number of interrupt generated by RTC. More...

## Detailed Description

## Function Documentation

void RTC_AutoStart | ( | FunctionalState | NewState | ) |

Enables or disables the auto start on load register or pattern register write operation.

Parameters

  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 344 of file BlueNRG1_rtc.c.

void RTC_ClockwatchCmd | ( | FunctionalState | NewState | ) |

Enables or disables selected RTC clockwatch.

Parameters

  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 194 of file BlueNRG1_rtc.c.

void RTC_Cmd | ( | FunctionalState | NewState | ) |

Enables or disables selected RTC peripheral.

Parameters

  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 109 of file BlueNRG1_rtc.c.

uint32_t RTC_GetNumberIrqGenerated | ( | void |  | ) |

Return the actual number of interrupt generated by RTC.

Parameters

  None |

Return values

  uint32_t | the actual number of interrupt generated by RTC.

Definition at line 331 of file BlueNRG1_rtc.c.

void RTC_GetTimeDate | ( | RTC_DateTimeType * | RTC_DataTime | ) |

Set the RTC clockwatch match date and time registers.

Parameters

  RTC_DataTime | pointer to a RTC_DateTimeType structure that is filled with the configured values of time and date.

Return values

  None |

Definition at line 291 of file BlueNRG1_rtc.c.

uint32_t RTC_GetTimerValue | ( | void |  | ) |

Return the actual timer counter.

Parameters

  None |

Return values

  uint32_t | the current counter value.

Definition at line 320 of file BlueNRG1_rtc.c.

void RTC_Init | ( | RTC_InitType * | RTC_InitStruct | ) |

Initializes the RTC peripheral according to the specified parameters in the RTC_InitStruct.

Parameters

  RTC_InitStruct | pointer to a RTC_InitType structure that contains the configuration information for the specified RTC peripheral.

Return values

  None |

Definition at line 85 of file BlueNRG1_rtc.c.

void RTC_IT_Clear | ( | uint8_t | RTC_IT | ) |

Clear selected RTC interrupt.

Parameters

  RTC_IT | specifies the RTC interrupts sources, the value can be
  - RTC_IT_CLOCKWATCH RTC clock watch interrupt flag
  - RTC_IT_TIMER RTC timer interrupt flag

Return values

  None |

Definition at line 179 of file BlueNRG1_rtc.c.

void RTC_IT_Config | ( | uint8_t | RTC_IT,
|  | FunctionalState | NewState
| ) |  |

Enables or disables selected RTC interrupt.

Parameters

  RTC_IT | specifies the RTC interrupts sources, the value can be
  - RTC_IT_CLOCKWATCH RTC clock watch interrupt flag
  - RTC_IT_TIMER RTC timer interrupt flag
  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 132 of file BlueNRG1_rtc.c.

ITStatus RTC_IT_Status | ( | uint8_t | RTC_IT | ) |

Return the RTC interrupt status for the specified IT.

Parameters

  RTC_IT | specifies the RTC interrupts sources, the value can be
  - RTC_IT_CLOCKWATCH RTC clock watch interrupt flag
  - RTC_IT_TIMER RTC timer interrupt flag

Return values

  ITStatus | functional state ITStatus This parameter can be: SET or RESET.

Definition at line 156 of file BlueNRG1_rtc.c.

void RTC_SelectTrimmedClock | ( | FunctionalState | NewState | ) |

Enables or disables the use of the trimmed 32 kHz clock.

Parameters

  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 364 of file BlueNRG1_rtc.c.

void RTC_SetMatchTimeDate | ( | RTC_DateTimeType * | RTC_MatchDataTime | ) |

Set the RTC clockwatch match date and time registers.

Parameters

  RTC_MatchDataTime | pointer to a RTC_DateTimeType structure that contains the matching time and date setting.

Return values

  None |

Definition at line 252 of file BlueNRG1_rtc.c.

void RTC_SetTimeDate | ( | RTC_DateTimeType * | RTC_DateTime | ) |

Initialize the RTC clockwatch with present time and date.

Parameters

  RTC_DateTime | pointer to a RTC_DateTimeType structure that contains the specified time and date setting.

Return values

  None |

Select seconds from the data structure

Select minutes from the data structure

Select hours from the data structure

Select week day from the data structure

Select month day from the data structure

Select month from the data structure

Definition at line 213 of file BlueNRG1_rtc.c.