STM8S/A Standard Peripherals Drivers: CLK_Exported_Types

STM8S/A

STM8S/A Standard Peripherals Drivers
CLK_Exported_Types

Enumerations

enum  CLK_CSSConfig_TypeDef { CLK_CSSCONFIG_ENABLEWITHIT = (uint8_t)0x05, CLK_CSSCONFIG_ENABLE = (uint8_t)0x01, CLK_CSSCONFIG_DISABLE = (uint8_t)0x00 }
 Clock security system configuration. More...
enum  CLK_CurrentClockState_TypeDef { CLK_CURRENTCLOCKSTATE_DISABLE = (uint8_t)0x00, CLK_CURRENTCLOCKSTATE_ENABLE = (uint8_t)0x01 }
 Current Clock State. More...
enum  CLK_Flag_TypeDef {
  CLK_FLAG_LSIRDY = (uint16_t)0x0110, CLK_FLAG_HSIRDY = (uint16_t)0x0102, CLK_FLAG_HSERDY = (uint16_t)0x0202, CLK_FLAG_SWIF = (uint16_t)0x0308,
  CLK_FLAG_SWBSY = (uint16_t)0x0301, CLK_FLAG_CSSD = (uint16_t)0x0408, CLK_FLAG_AUX = (uint16_t)0x0402, CLK_FLAG_CCOBSY = (uint16_t)0x0504,
  CLK_FLAG_CCORDY = (uint16_t)0x0502
}
 CLK Flags. More...
enum  CLK_HSITrimValue_TypeDef {
  CLK_HSITRIMVALUE_0 = (uint8_t)0x00, CLK_HSITRIMVALUE_1 = (uint8_t)0x01, CLK_HSITRIMVALUE_2 = (uint8_t)0x02, CLK_HSITRIMVALUE_3 = (uint8_t)0x03,
  CLK_HSITRIMVALUE_4 = (uint8_t)0x04, CLK_HSITRIMVALUE_5 = (uint8_t)0x05, CLK_HSITRIMVALUE_6 = (uint8_t)0x06, CLK_HSITRIMVALUE_7 = (uint8_t)0x07
}
 CLK HSI Calibration Value. More...
enum  CLK_IT_TypeDef { CLK_IT_CSSD = (uint8_t)0x0C, CLK_IT_SWIF = (uint8_t)0x1C }
 CLK interrupt configuration and Flags cleared by software. More...
enum  CLK_Output_TypeDef {
  CLK_OUTPUT_HSI = (uint8_t)0x00, CLK_OUTPUT_LSI = (uint8_t)0x02, CLK_OUTPUT_HSE = (uint8_t)0x04, CLK_OUTPUT_CPU = (uint8_t)0x08,
  CLK_OUTPUT_CPUDIV2 = (uint8_t)0x0A, CLK_OUTPUT_CPUDIV4 = (uint8_t)0x0C, CLK_OUTPUT_CPUDIV8 = (uint8_t)0x0E, CLK_OUTPUT_CPUDIV16 = (uint8_t)0x10,
  CLK_OUTPUT_CPUDIV32 = (uint8_t)0x12, CLK_OUTPUT_CPUDIV64 = (uint8_t)0x14, CLK_OUTPUT_HSIRC = (uint8_t)0x16, CLK_OUTPUT_MASTER = (uint8_t)0x18,
  CLK_OUTPUT_OTHERS = (uint8_t)0x1A
}
 CLK Clock Output. More...
enum  CLK_Peripheral_TypeDef {
  CLK_PERIPHERAL_I2C = (uint8_t)0x00, CLK_PERIPHERAL_SPI = (uint8_t)0x01, CLK_PERIPHERAL_UART1 = (uint8_t)0x03, CLK_PERIPHERAL_UART2 = (uint8_t)0x03,
  CLK_PERIPHERAL_UART3 = (uint8_t)0x03, CLK_PERIPHERAL_TIMER6 = (uint8_t)0x04, CLK_PERIPHERAL_TIMER4 = (uint8_t)0x04, CLK_PERIPHERAL_TIMER5 = (uint8_t)0x05,
  CLK_PERIPHERAL_TIMER2 = (uint8_t)0x05, CLK_PERIPHERAL_TIMER3 = (uint8_t)0x06, CLK_PERIPHERAL_TIMER1 = (uint8_t)0x07, CLK_PERIPHERAL_AWU = (uint8_t)0x12,
  CLK_PERIPHERAL_ADC = (uint8_t)0x13, CLK_PERIPHERAL_CAN = (uint8_t)0x17
}
 CLK Enable peripheral. More...
enum  CLK_Prescaler_TypeDef {
  CLK_PRESCALER_HSIDIV1 = (uint8_t)0x00, CLK_PRESCALER_HSIDIV2 = (uint8_t)0x08, CLK_PRESCALER_HSIDIV4 = (uint8_t)0x10, CLK_PRESCALER_HSIDIV8 = (uint8_t)0x18,
  CLK_PRESCALER_CPUDIV1 = (uint8_t)0x80, CLK_PRESCALER_CPUDIV2 = (uint8_t)0x81, CLK_PRESCALER_CPUDIV4 = (uint8_t)0x82, CLK_PRESCALER_CPUDIV8 = (uint8_t)0x83,
  CLK_PRESCALER_CPUDIV16 = (uint8_t)0x84, CLK_PRESCALER_CPUDIV32 = (uint8_t)0x85, CLK_PRESCALER_CPUDIV64 = (uint8_t)0x86, CLK_PRESCALER_CPUDIV128 = (uint8_t)0x87
}
 CLK Clock Divisor. More...
enum  CLK_Source_TypeDef { CLK_SOURCE_HSI = (uint8_t)0xE1, CLK_SOURCE_LSI = (uint8_t)0xD2, CLK_SOURCE_HSE = (uint8_t)0xB4 }
 CLK Clock Source. More...
enum  CLK_SWIMDivider_TypeDef { CLK_SWIMDIVIDER_2 = (uint8_t)0x00, CLK_SWIMDIVIDER_OTHER = (uint8_t)0x01 }
 SWIM Clock divider. More...
enum  CLK_SwitchMode_TypeDef { CLK_SWITCHMODE_MANUAL = (uint8_t)0x00, CLK_SWITCHMODE_AUTO = (uint8_t)0x01 }
 Switch Mode Auto, Manual. More...

Enumeration Type Documentation

Clock security system configuration.

Enumerator:
CLK_CSSCONFIG_ENABLEWITHIT 

Enable CSS with detection interrupt

CLK_CSSCONFIG_ENABLE 

Enable CSS without detection interrupt

CLK_CSSCONFIG_DISABLE 

Leave CSS desactivated (to be used in CLK_Init() function)

Definition at line 61 of file stm8s_clk.h.

Current Clock State.

Enumerator:
CLK_CURRENTCLOCKSTATE_DISABLE 

Current clock disable

CLK_CURRENTCLOCKSTATE_ENABLE 

Current clock enable

Definition at line 53 of file stm8s_clk.h.

CLK Flags.

Enumerator:
CLK_FLAG_LSIRDY 

Low speed internal oscillator ready Flag

CLK_FLAG_HSIRDY 

High speed internal oscillator ready Flag

CLK_FLAG_HSERDY 

High speed external oscillator ready Flag

CLK_FLAG_SWIF 

Clock switch interrupt Flag

CLK_FLAG_SWBSY 

Switch busy Flag

CLK_FLAG_CSSD 

Clock security system detection Flag

CLK_FLAG_AUX 

Auxiliary oscillator connected to master clock

CLK_FLAG_CCOBSY 

Configurable clock output busy

CLK_FLAG_CCORDY 

Configurable clock output ready

Definition at line 151 of file stm8s_clk.h.

CLK HSI Calibration Value.

Enumerator:
CLK_HSITRIMVALUE_0 

HSI Calibration Value 0

CLK_HSITRIMVALUE_1 

HSI Calibration Value 1

CLK_HSITRIMVALUE_2 

HSI Calibration Value 2

CLK_HSITRIMVALUE_3 

HSI Calibration Value 3

CLK_HSITRIMVALUE_4 

HSI Calibration Value 4

CLK_HSITRIMVALUE_5 

HSI Calibration Value 5

CLK_HSITRIMVALUE_6 

HSI Calibration Value 6

CLK_HSITRIMVALUE_7 

HSI Calibration Value 7

Definition at line 79 of file stm8s_clk.h.

CLK interrupt configuration and Flags cleared by software.

Enumerator:
CLK_IT_CSSD 

Clock security system detection Flag

CLK_IT_SWIF 

Clock switch interrupt Flag

Definition at line 166 of file stm8s_clk.h.

CLK Clock Output.

Enumerator:
CLK_OUTPUT_HSI 

Clock Output HSI

CLK_OUTPUT_LSI 

Clock Output LSI

CLK_OUTPUT_HSE 

Clock Output HSE

CLK_OUTPUT_CPU 

Clock Output CPU

CLK_OUTPUT_CPUDIV2 

Clock Output CPU/2

CLK_OUTPUT_CPUDIV4 

Clock Output CPU/4

CLK_OUTPUT_CPUDIV8 

Clock Output CPU/8

CLK_OUTPUT_CPUDIV16 

Clock Output CPU/16

CLK_OUTPUT_CPUDIV32 

Clock Output CPU/32

CLK_OUTPUT_CPUDIV64 

Clock Output CPU/64

CLK_OUTPUT_HSIRC 

Clock Output HSI RC

CLK_OUTPUT_MASTER 

Clock Output Master

CLK_OUTPUT_OTHERS 

Clock Output OTHER

Definition at line 93 of file stm8s_clk.h.

CLK Enable peripheral.

Enumerator:
CLK_PERIPHERAL_I2C 

Peripheral Clock Enable 1, I2C

CLK_PERIPHERAL_SPI 

Peripheral Clock Enable 1, SPI

CLK_PERIPHERAL_UART1 

Peripheral Clock Enable 1, UART1

CLK_PERIPHERAL_UART2 

Peripheral Clock Enable 1, UART2

CLK_PERIPHERAL_UART3 

Peripheral Clock Enable 1, UART3

CLK_PERIPHERAL_TIMER6 

Peripheral Clock Enable 1, Timer6

CLK_PERIPHERAL_TIMER4 

Peripheral Clock Enable 1, Timer4

CLK_PERIPHERAL_TIMER5 

Peripheral Clock Enable 1, Timer5

CLK_PERIPHERAL_TIMER2 

Peripheral Clock Enable 1, Timer2

CLK_PERIPHERAL_TIMER3 

Peripheral Clock Enable 1, Timer3

CLK_PERIPHERAL_TIMER1 

Peripheral Clock Enable 1, Timer1

CLK_PERIPHERAL_AWU 

Peripheral Clock Enable 2, AWU

CLK_PERIPHERAL_ADC 

Peripheral Clock Enable 2, ADC

CLK_PERIPHERAL_CAN 

Peripheral Clock Enable 2, CAN

Definition at line 118 of file stm8s_clk.h.

CLK Clock Divisor.

Enumerator:
CLK_PRESCALER_HSIDIV1 

High speed internal clock prescaler: 1

CLK_PRESCALER_HSIDIV2 

High speed internal clock prescaler: 2

CLK_PRESCALER_HSIDIV4 

High speed internal clock prescaler: 4

CLK_PRESCALER_HSIDIV8 

High speed internal clock prescaler: 8

CLK_PRESCALER_CPUDIV1 

CPU clock division factors 1

CLK_PRESCALER_CPUDIV2 

CPU clock division factors 2

CLK_PRESCALER_CPUDIV4 

CPU clock division factors 4

CLK_PRESCALER_CPUDIV8 

CPU clock division factors 8

CLK_PRESCALER_CPUDIV16 

CPU clock division factors 16

CLK_PRESCALER_CPUDIV32 

CPU clock division factors 32

CLK_PRESCALER_CPUDIV64 

CPU clock division factors 64

CLK_PRESCALER_CPUDIV128 

CPU clock division factors 128

Definition at line 180 of file stm8s_clk.h.

CLK Clock Source.

Enumerator:
CLK_SOURCE_HSI 

Clock Source HSI.

CLK_SOURCE_LSI 

Clock Source LSI.

CLK_SOURCE_HSE 

Clock Source HSE.

Definition at line 70 of file stm8s_clk.h.

SWIM Clock divider.

Enumerator:
CLK_SWIMDIVIDER_2 

SWIM clock is divided by 2

CLK_SWIMDIVIDER_OTHER 

SWIM clock is not divided by 2

Definition at line 198 of file stm8s_clk.h.

Switch Mode Auto, Manual.

Enumerator:
CLK_SWITCHMODE_MANUAL 

Enable the manual clock switching mode

CLK_SWITCHMODE_AUTO 

Enable the automatic clock switching mode

Definition at line 45 of file stm8s_clk.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com