STM8L15x Standard Peripherals Drivers
|
GPIO Read and Write. More...
Functions | |
uint8_t | GPIO_ReadInputData (GPIO_TypeDef *GPIOx) |
Reads the specified GPIO input data port. | |
BitStatus | GPIO_ReadInputDataBit (GPIO_TypeDef *GPIOx, GPIO_Pin_TypeDef GPIO_Pin) |
Reads the specified GPIO input data pin. | |
uint8_t | GPIO_ReadOutputData (GPIO_TypeDef *GPIOx) |
Reads the specified GPIO output data port. | |
BitStatus | GPIO_ReadOutputDataBit (GPIO_TypeDef *GPIOx, GPIO_Pin_TypeDef GPIO_Pin) |
Reads the specified GPIO Output data pin. | |
void | GPIO_ResetBits (GPIO_TypeDef *GPIOx, uint8_t GPIO_Pin) |
Writes low level to the specified GPIO pins. | |
void | GPIO_SetBits (GPIO_TypeDef *GPIOx, uint8_t GPIO_Pin) |
Writes high level to the specified GPIO pins. | |
void | GPIO_ToggleBits (GPIO_TypeDef *GPIOx, uint8_t GPIO_Pin) |
Toggles the specified GPIO pins. | |
void | GPIO_Write (GPIO_TypeDef *GPIOx, uint8_t GPIO_PortVal) |
Writes data to the specified GPIO data port. | |
void | GPIO_WriteBit (GPIO_TypeDef *GPIOx, GPIO_Pin_TypeDef GPIO_Pin, BitAction GPIO_BitVal) |
Sets or clears the selected data port bit. |
Detailed Description
GPIO Read and Write.
=============================================================================== GPIO Read and Write ===============================================================================
Function Documentation
uint8_t GPIO_ReadInputData | ( | GPIO_TypeDef * | GPIOx | ) |
Reads the specified GPIO input data port.
- Note:
- The port must be configured in input mode.
Definition at line 341 of file stm8l15x_gpio.c.
References GPIO_struct::IDR.
BitStatus GPIO_ReadInputDataBit | ( | GPIO_TypeDef * | GPIOx, |
GPIO_Pin_TypeDef | GPIO_Pin | ||
) |
Reads the specified GPIO input data pin.
Definition at line 372 of file stm8l15x_gpio.c.
References GPIO_struct::IDR.
uint8_t GPIO_ReadOutputData | ( | GPIO_TypeDef * | GPIOx | ) |
Reads the specified GPIO output data port.
- Note:
- The port must be configured in input mode.
Definition at line 352 of file stm8l15x_gpio.c.
References GPIO_struct::ODR.
BitStatus GPIO_ReadOutputDataBit | ( | GPIO_TypeDef * | GPIOx, |
GPIO_Pin_TypeDef | GPIO_Pin | ||
) |
Reads the specified GPIO Output data pin.
Definition at line 383 of file stm8l15x_gpio.c.
References GPIO_struct::ODR.
void GPIO_ResetBits | ( | GPIO_TypeDef * | GPIOx, |
uint8_t | GPIO_Pin | ||
) |
Writes low level to the specified GPIO pins.
- Note:
- The port must be configured in output mode.
Definition at line 318 of file stm8l15x_gpio.c.
References GPIO_struct::ODR.
void GPIO_SetBits | ( | GPIO_TypeDef * | GPIOx, |
uint8_t | GPIO_Pin | ||
) |
Writes high level to the specified GPIO pins.
- Note:
- The port must be configured in output mode.
Definition at line 297 of file stm8l15x_gpio.c.
References GPIO_struct::ODR.
void GPIO_ToggleBits | ( | GPIO_TypeDef * | GPIOx, |
uint8_t | GPIO_Pin | ||
) |
Toggles the specified GPIO pins.
- Note:
- The port must be configured in output mode.
Definition at line 330 of file stm8l15x_gpio.c.
References GPIO_struct::ODR.
void GPIO_Write | ( | GPIO_TypeDef * | GPIOx, |
uint8_t | GPIO_PortVal | ||
) |
Writes data to the specified GPIO data port.
- Note:
- The port must be configured in output mode.
Definition at line 242 of file stm8l15x_gpio.c.
References GPIO_struct::ODR.
void GPIO_WriteBit | ( | GPIO_TypeDef * | GPIOx, |
GPIO_Pin_TypeDef | GPIO_Pin, | ||
BitAction | GPIO_BitVal | ||
) |
Sets or clears the selected data port bit.
Definition at line 264 of file stm8l15x_gpio.c.
References IS_GPIO_PIN, IS_STATE_VALUE, GPIO_struct::ODR, and RESET.