Modules | |
Initialization and Configuration | |
Initialization and Configuration. | |
GPIO Read and Write | |
GPIO Read and Write. | |
GPIO Alternate functions configuration function | |
GPIO Alternate functions configuration function. | |
Functions | |
void | GPIO_AFIODeInit (void) |
Deinitializes the Alternate Functions (remap, event control and EXTI configuration) registers to their default reset values. More... | |
void | GPIO_DeInit (GPIO_TypeDef *GPIOx) |
Deinitializes the GPIOx peripheral registers to their default reset values. More... | |
void | GPIO_ETH_MediaInterfaceConfig (uint32_t GPIO_ETH_MediaInterface) |
Selects the Ethernet media interface. More... | |
void | GPIO_EventOutputCmd (FunctionalState NewState) |
Enables or disables the Event Output. More... | |
void | GPIO_EventOutputConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource) |
Selects the GPIO pin used as Event output. More... | |
void | GPIO_EXTILineConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource) |
Selects the GPIO pin used as EXTI Line. More... | |
void | GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_InitStruct) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct. More... | |
void | GPIO_PinLockConfig (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Locks GPIO Pins configuration registers. More... | |
void | GPIO_PinRemapConfig (uint32_t GPIO_Remap, FunctionalState NewState) |
Changes the mapping of the specified pin. More... | |
uint16_t | GPIO_ReadInputData (GPIO_TypeDef *GPIOx) |
Reads the specified GPIO input data port. More... | |
uint8_t | GPIO_ReadInputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Reads the specified input port pin. More... | |
uint16_t | GPIO_ReadOutputData (GPIO_TypeDef *GPIOx) |
Reads the specified GPIO output data port. More... | |
uint8_t | GPIO_ReadOutputDataBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Reads the specified output data port bit. More... | |
void | GPIO_ResetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Clears the selected data port bits. More... | |
void | GPIO_SetBits (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) |
Sets the selected data port bits. More... | |
void | GPIO_StructInit (GPIO_InitTypeDef *GPIO_InitStruct) |
Fills each GPIO_InitStruct member with its default value. More... | |
void | GPIO_Write (GPIO_TypeDef *GPIOx, uint16_t PortVal) |
Writes data to the specified GPIO data port. More... | |
void | GPIO_WriteBit (GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, BitAction BitVal) |
Sets or clears the selected data port bit. More... | |
void GPIO_AFIODeInit | ( | void | ) |
Deinitializes the Alternate Functions (remap, event control and EXTI configuration) registers to their default reset values.
None |
None |
Definition at line 159 of file stm32f10x_gpio.c.
void GPIO_DeInit | ( | GPIO_TypeDef * | GPIOx | ) |
Deinitializes the GPIOx peripheral registers to their default reset values.
De-initializes the GPIOx peripheral registers to their default reset values.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
None |
Definition at line 108 of file stm32f10x_gpio.c.
void GPIO_ETH_MediaInterfaceConfig | ( | uint32_t | GPIO_ETH_MediaInterface | ) |
Selects the Ethernet media interface.
GPIO_ETH_MediaInterface | specifies the Media Interface mode. This parameter can be one of the following values:
|
None |
Definition at line 630 of file stm32f10x_gpio.c.
void GPIO_EventOutputCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Event Output.
NewState | new state of the Event output. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 483 of file stm32f10x_gpio.c.
void GPIO_EventOutputConfig | ( | uint8_t | GPIO_PortSource, |
uint8_t | GPIO_PinSource | ||
) |
Selects the GPIO pin used as Event output.
GPIO_PortSource | selects the GPIO port to be used as source for Event output. This parameter can be GPIO_PortSourceGPIOx where x can be (A..E). |
GPIO_PinSource | specifies the pin for the Event output. This parameter can be GPIO_PinSourcex where x can be (0..15). |
None |
Definition at line 462 of file stm32f10x_gpio.c.
void GPIO_EXTILineConfig | ( | uint8_t | GPIO_PortSource, |
uint8_t | GPIO_PinSource | ||
) |
Selects the GPIO pin used as EXTI Line.
GPIO_PortSource | selects the GPIO port to be used as source for EXTI lines. This parameter can be GPIO_PortSourceGPIOx where x can be (A..G). |
GPIO_PinSource | specifies the EXTI line to be configured. This parameter can be GPIO_PinSourcex where x can be (0..15). |
None |
Definition at line 609 of file stm32f10x_gpio.c.
void GPIO_Init | ( | GPIO_TypeDef * | GPIOx, |
GPIO_InitTypeDef * | GPIO_InitStruct | ||
) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_InitStruct.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_InitStruct | pointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral. |
None |
Definition at line 173 of file stm32f10x_gpio.c.
void GPIO_PinLockConfig | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin | ||
) |
Locks GPIO Pins configuration registers.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_Pin | specifies the port bit to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15). |
None |
Definition at line 432 of file stm32f10x_gpio.c.
void GPIO_PinRemapConfig | ( | uint32_t | GPIO_Remap, |
FunctionalState | NewState | ||
) |
Changes the mapping of the specified pin.
GPIO_Remap | selects the pin to remap. This parameter can be one of the following values:
|
NewState | new state of the port pin remapping. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 549 of file stm32f10x_gpio.c.
uint16_t GPIO_ReadInputData | ( | GPIO_TypeDef * | GPIOx | ) |
Reads the specified GPIO input data port.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO | input data port value. |
Definition at line 305 of file stm32f10x_gpio.c.
uint8_t GPIO_ReadInputDataBit | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin | ||
) |
Reads the specified input port pin.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_Pin | specifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..15). |
The | input port pin value. |
Definition at line 281 of file stm32f10x_gpio.c.
uint16_t GPIO_ReadOutputData | ( | GPIO_TypeDef * | GPIOx | ) |
Reads the specified GPIO output data port.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO | output data port value. |
Definition at line 343 of file stm32f10x_gpio.c.
uint8_t GPIO_ReadOutputDataBit | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin | ||
) |
Reads the specified output data port bit.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_Pin | specifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..15). |
The | output port pin value. |
Definition at line 320 of file stm32f10x_gpio.c.
void GPIO_ResetBits | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin | ||
) |
Clears the selected data port bits.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_Pin | specifies the port bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15). |
None |
Definition at line 374 of file stm32f10x_gpio.c.
void GPIO_SetBits | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin | ||
) |
Sets the selected data port bits.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_Pin | specifies the port bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..15). |
None |
Definition at line 358 of file stm32f10x_gpio.c.
void GPIO_StructInit | ( | GPIO_InitTypeDef * | GPIO_InitStruct | ) |
Fills each GPIO_InitStruct member with its default value.
GPIO_InitStruct | : pointer to a GPIO_InitTypeDef structure which will be initialized. |
None |
Definition at line 266 of file stm32f10x_gpio.c.
void GPIO_Write | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | PortVal | ||
) |
Writes data to the specified GPIO data port.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
PortVal | specifies the value to be written to the port output data register. |
None |
Definition at line 417 of file stm32f10x_gpio.c.
void GPIO_WriteBit | ( | GPIO_TypeDef * | GPIOx, |
uint16_t | GPIO_Pin, | ||
BitAction | BitVal | ||
) |
Sets or clears the selected data port bit.
GPIOx | where x can be (A..G) to select the GPIO peripheral. |
GPIO_Pin | specifies the port bit to be written. This parameter can be one of GPIO_Pin_x where x can be (0..15). |
BitVal | specifies the value to be written to the selected bit. This parameter can be one of the BitAction enum values:
|
None |
Definition at line 394 of file stm32f10x_gpio.c.