STM8L15x Standard Peripherals Drivers: RTC_Private_Functions_Prototype

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

RTC_Private_Functions_Prototype

Functions

static uint8_t Bcd2ToByte (uint8_t Value)
 Converts from 2 digit BCD to Binary format.
static uint8_t ByteToBcd2 (uint8_t Value)
 Converts a 2 digit decimal to BCD format.

Function Documentation

static uint8_t Bcd2ToByte ( uint8_t  Value) [static]

Converts from 2 digit BCD to Binary format.

Parameters:
Value,:BCD value to be converted.
Return values:
Convertedword

Definition at line 2214 of file stm8l15x_rtc.c.

Referenced by RTC_GetAlarm(), RTC_GetDate(), RTC_GetTime(), RTC_SetAlarm(), RTC_SetDate(), and RTC_SetTime().

static uint8_t ByteToBcd2 ( uint8_t  Value) [static]

Converts a 2 digit decimal to BCD format.

Parameters:
Value,:Byte to be converted.
Return values:
Convertedbyte

Definition at line 2196 of file stm8l15x_rtc.c.

Referenced by RTC_SetAlarm(), RTC_SetDate(), and RTC_SetTime().

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com