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
enum GPIO_Mode_TypeDef |
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)
Definition at line 54 of file stm8s_gpio.h.
enum GPIO_Pin_TypeDef |
Definition of the GPIO pins.
Used by the GPIO_Init function in order to select the pins to be initialized.
Definition at line 75 of file stm8s_gpio.h.