STM32H735xx HAL User Manual
|
Header file of GPIO LL module. More...
#include "stm32h7xx.h"
Go to the source code of this file.
Data Structures | |
struct | LL_GPIO_InitTypeDef |
LL GPIO Init Structure definition. More... | |
Defines | |
#define | LL_GPIO_PIN_0 GPIO_BSRR_BS0 |
#define | LL_GPIO_PIN_1 GPIO_BSRR_BS1 |
#define | LL_GPIO_PIN_2 GPIO_BSRR_BS2 |
#define | LL_GPIO_PIN_3 GPIO_BSRR_BS3 |
#define | LL_GPIO_PIN_4 GPIO_BSRR_BS4 |
#define | LL_GPIO_PIN_5 GPIO_BSRR_BS5 |
#define | LL_GPIO_PIN_6 GPIO_BSRR_BS6 |
#define | LL_GPIO_PIN_7 GPIO_BSRR_BS7 |
#define | LL_GPIO_PIN_8 GPIO_BSRR_BS8 |
#define | LL_GPIO_PIN_9 GPIO_BSRR_BS9 |
#define | LL_GPIO_PIN_10 GPIO_BSRR_BS10 |
#define | LL_GPIO_PIN_11 GPIO_BSRR_BS11 |
#define | LL_GPIO_PIN_12 GPIO_BSRR_BS12 |
#define | LL_GPIO_PIN_13 GPIO_BSRR_BS13 |
#define | LL_GPIO_PIN_14 GPIO_BSRR_BS14 |
#define | LL_GPIO_PIN_15 GPIO_BSRR_BS15 |
#define | LL_GPIO_PIN_ALL |
#define | LL_GPIO_MODE_INPUT (0x00000000U) |
#define | LL_GPIO_MODE_OUTPUT GPIO_MODER_MODE0_0 |
#define | LL_GPIO_MODE_ALTERNATE GPIO_MODER_MODE0_1 |
#define | LL_GPIO_MODE_ANALOG GPIO_MODER_MODE0 |
#define | LL_GPIO_OUTPUT_PUSHPULL (0x00000000U) |
#define | LL_GPIO_OUTPUT_OPENDRAIN GPIO_OTYPER_OT0 |
#define | LL_GPIO_SPEED_FREQ_LOW (0x00000000U) |
#define | LL_GPIO_SPEED_FREQ_MEDIUM GPIO_OSPEEDR_OSPEED0_0 |
#define | LL_GPIO_SPEED_FREQ_HIGH GPIO_OSPEEDR_OSPEED0_1 |
#define | LL_GPIO_SPEED_FREQ_VERY_HIGH GPIO_OSPEEDR_OSPEED0 |
#define | LL_GPIO_SPEED_LOW LL_GPIO_SPEED_FREQ_LOW |
#define | LL_GPIO_SPEED_MEDIUM LL_GPIO_SPEED_FREQ_MEDIUM |
#define | LL_GPIO_SPEED_FAST LL_GPIO_SPEED_FREQ_HIGH |
#define | LL_GPIO_SPEED_HIGH LL_GPIO_SPEED_FREQ_VERY_HIGH |
#define | LL_GPIO_PULL_NO (0x00000000U) |
#define | LL_GPIO_PULL_UP GPIO_PUPDR_PUPD0_0 |
#define | LL_GPIO_PULL_DOWN GPIO_PUPDR_PUPD0_1 |
#define | LL_GPIO_AF_0 (0x0000000U) |
#define | LL_GPIO_AF_1 (0x0000001U) |
#define | LL_GPIO_AF_2 (0x0000002U) |
#define | LL_GPIO_AF_3 (0x0000003U) |
#define | LL_GPIO_AF_4 (0x0000004U) |
#define | LL_GPIO_AF_5 (0x0000005U) |
#define | LL_GPIO_AF_6 (0x0000006U) |
#define | LL_GPIO_AF_7 (0x0000007U) |
#define | LL_GPIO_AF_8 (0x0000008U) |
#define | LL_GPIO_AF_9 (0x0000009U) |
#define | LL_GPIO_AF_10 (0x000000AU) |
#define | LL_GPIO_AF_11 (0x000000BU) |
#define | LL_GPIO_AF_12 (0x000000CU) |
#define | LL_GPIO_AF_13 (0x000000DU) |
#define | LL_GPIO_AF_14 (0x000000EU) |
#define | LL_GPIO_AF_15 (0x000000FU) |
#define | LL_GPIO_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) |
Write a value in GPIO register. | |
#define | LL_GPIO_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) |
Read a value in GPIO register. | |
Functions | |
__STATIC_INLINE void | LL_GPIO_SetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Mode) |
Configure gpio mode for a dedicated pin on dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetPinMode (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio mode for a dedicated pin on dedicated port. | |
__STATIC_INLINE void | LL_GPIO_SetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t PinMask, uint32_t OutputType) |
Configure gpio output type for several pins on dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetPinOutputType (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio output type for several pins on dedicated port. | |
__STATIC_INLINE void | LL_GPIO_SetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Speed) |
Configure gpio speed for a dedicated pin on dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetPinSpeed (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio speed for a dedicated pin on dedicated port. | |
__STATIC_INLINE void | LL_GPIO_SetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Pull) |
Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetPinPull (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio pull-up or pull-down for a dedicated pin on a dedicated port. | |
__STATIC_INLINE void | LL_GPIO_SetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) |
Configure gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetAFPin_0_7 (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. | |
__STATIC_INLINE void | LL_GPIO_SetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin, uint32_t Alternate) |
Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_GetAFPin_8_15 (GPIO_TypeDef *GPIOx, uint32_t Pin) |
Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. | |
__STATIC_INLINE void | LL_GPIO_LockPin (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Lock configuration of several pins for a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_IsPinLocked (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Return 1 if all pins passed as parameter, of a dedicated port, are locked. | |
__STATIC_INLINE uint32_t | LL_GPIO_IsAnyPinLocked (GPIO_TypeDef *GPIOx) |
Return 1 if one of the pin of a dedicated port is locked. | |
__STATIC_INLINE uint32_t | LL_GPIO_ReadInputPort (GPIO_TypeDef *GPIOx) |
Return full input data register value for a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_IsInputPinSet (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Return if input data level for several pins of dedicated port is high or low. | |
__STATIC_INLINE void | LL_GPIO_WriteOutputPort (GPIO_TypeDef *GPIOx, uint32_t PortValue) |
Write output data register for the port. | |
__STATIC_INLINE uint32_t | LL_GPIO_ReadOutputPort (GPIO_TypeDef *GPIOx) |
Return full output data register value for a dedicated port. | |
__STATIC_INLINE uint32_t | LL_GPIO_IsOutputPinSet (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Return if input data level for several pins of dedicated port is high or low. | |
__STATIC_INLINE void | LL_GPIO_SetOutputPin (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Set several pins to high level on dedicated gpio port. | |
__STATIC_INLINE void | LL_GPIO_ResetOutputPin (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Set several pins to low level on dedicated gpio port. | |
__STATIC_INLINE void | LL_GPIO_TogglePin (GPIO_TypeDef *GPIOx, uint32_t PinMask) |
Toggle data value for several pin of dedicated port. | |
ErrorStatus | LL_GPIO_DeInit (GPIO_TypeDef *GPIOx) |
De-initialize GPIO registers (Registers restored to their default values). | |
ErrorStatus | LL_GPIO_Init (GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) |
Initialize GPIO registers according to the specified parameters in GPIO_InitStruct. | |
void | LL_GPIO_StructInit (LL_GPIO_InitTypeDef *GPIO_InitStruct) |
Set each LL_GPIO_InitTypeDef field to default value. |
Header file of GPIO LL module.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32h7xx_ll_gpio.h.