STM8S/A Standard Peripherals Drivers: GPIO_Exported_Types

STM8S/A

STM8S/A Standard Peripherals Drivers
GPIO_Exported_Types

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
}
 GPIO modes. More...
enum  GPIO_Pin_TypeDef {
  GPIO_PIN_0 = ((uint8_t)0x01), GPIO_PIN_1 = ((uint8_t)0x02), GPIO_PIN_2 = ((uint8_t)0x04), GPIO_PIN_3 = ((uint8_t)0x08),
  GPIO_PIN_4 = ((uint8_t)0x10), GPIO_PIN_5 = ((uint8_t)0x20), GPIO_PIN_6 = ((uint8_t)0x40), GPIO_PIN_7 = ((uint8_t)0x80),
  GPIO_PIN_LNIB = ((uint8_t)0x0F), GPIO_PIN_HNIB = ((uint8_t)0xF0), GPIO_PIN_ALL = ((uint8_t)0xFF)
}
 Definition of the GPIO pins. More...

Enumeration Type Documentation

GPIO modes.

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)
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 54 of file stm8s_gpio.h.

Definition of the GPIO pins.

Used by the GPIO_Init function in order to select the pins to be initialized.

Enumerator:
GPIO_PIN_0 

Pin 0 selected

GPIO_PIN_1 

Pin 1 selected

GPIO_PIN_2 

Pin 2 selected

GPIO_PIN_3 

Pin 3 selected

GPIO_PIN_4 

Pin 4 selected

GPIO_PIN_5 

Pin 5 selected

GPIO_PIN_6 

Pin 6 selected

GPIO_PIN_7 

Pin 7 selected

GPIO_PIN_LNIB 

Low nibble pins selected

GPIO_PIN_HNIB 

High nibble pins selected

GPIO_PIN_ALL 

All pins selected

Definition at line 75 of file stm8s_gpio.h.

STM8 Standard Peripherals Library: Footer

 

 

 

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