STM8L15x Standard Peripherals Drivers: GPIO_Modes

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Bits definitions:

  • Bit 7: 0 = INPUT mode 1 = OUTPUT mode 1 = PULL-UP (input) or PUSH-PULL (output)
  • Bit 5: 0 = No external interrupt (input) or No slope control (output) 1 = External interrupt (input) or Slow control enabled (output)
  • Bit 4: 0 = Low level (output) 1 = High level (output push-pull) or HI-Z (output open-drain)
More...

Enumerations

enum  GPIO_Mode_TypeDef {
  GPIO_Mode_In_FL_No_IT = (uint8_t)0x00, GPIO_Mode_In_PU_No_IT = (uint8_t)0x40, GPIO_Mode_In_FL_IT = (uint8_t)0x20, GPIO_Mode_In_PU_IT = (uint8_t)0x60,
  GPIO_Mode_Out_OD_Low_Fast = (uint8_t)0xA0, GPIO_Mode_Out_PP_Low_Fast = (uint8_t)0xE0, GPIO_Mode_Out_OD_Low_Slow = (uint8_t)0x80, GPIO_Mode_Out_PP_Low_Slow = (uint8_t)0xC0,
  GPIO_Mode_Out_OD_HiZ_Fast = (uint8_t)0xB0, GPIO_Mode_Out_PP_High_Fast = (uint8_t)0xF0, GPIO_Mode_Out_OD_HiZ_Slow = (uint8_t)0x90, GPIO_Mode_Out_PP_High_Slow = (uint8_t)0xD0
}

Detailed Description

Bits definitions:

  • Bit 7: 0 = INPUT mode 1 = OUTPUT mode 1 = PULL-UP (input) or PUSH-PULL (output)
  • Bit 5: 0 = No external interrupt (input) or No slope control (output) 1 = External interrupt (input) or Slow control enabled (output)
  • Bit 4: 0 = Low level (output) 1 = High level (output push-pull) or HI-Z (output open-drain)

Enumeration Type Documentation

Enumerator:
GPIO_Mode_In_FL_No_IT 

Input floating, no external interrupt

GPIO_Mode_In_PU_No_IT 

Input pull-up, no external interrupt

GPIO_Mode_In_FL_IT 

Input floating, external interrupt

GPIO_Mode_In_PU_IT 

Input pull-up, external interrupt

GPIO_Mode_Out_OD_Low_Fast 

Output open-drain, low level, 10MHz

GPIO_Mode_Out_PP_Low_Fast 

Output push-pull, low level, 10MHz

GPIO_Mode_Out_OD_Low_Slow 

Output open-drain, low level, 2MHz

GPIO_Mode_Out_PP_Low_Slow 

Output push-pull, low level, 2MHz

GPIO_Mode_Out_OD_HiZ_Fast 

Output open-drain, high-impedance level, 10MHz

GPIO_Mode_Out_PP_High_Fast 

Output push-pull, high level, 10MHz

GPIO_Mode_Out_OD_HiZ_Slow 

Output open-drain, high-impedance level, 2MHz

GPIO_Mode_Out_PP_High_Slow 

Output push-pull, high level, 2MHz

Definition at line 59 of file stm8l15x_gpio.h.

STM8S Firmware Library: Overview

 

 

 

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