TUKS MCU Introductory course / TUKS-COURSE-2-LED
Embed: (wiki syntax)

« Back to documentation index

Data Access

Functions

__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.

Function Documentation

__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.

IDR IDy LL_GPIO_IsInputPinSet

Parameters:
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:

  • LL_GPIO_PIN_0
  • LL_GPIO_PIN_1
  • LL_GPIO_PIN_2
  • LL_GPIO_PIN_3
  • LL_GPIO_PIN_4
  • LL_GPIO_PIN_5
  • LL_GPIO_PIN_6
  • LL_GPIO_PIN_7
  • LL_GPIO_PIN_8
  • LL_GPIO_PIN_9
  • LL_GPIO_PIN_10
  • LL_GPIO_PIN_11
  • LL_GPIO_PIN_12
  • LL_GPIO_PIN_13
  • LL_GPIO_PIN_14
  • LL_GPIO_PIN_15
  • LL_GPIO_PIN_ALL
Return values:
Stateof bit (1 or 0).

Definition at line 886 of file stm32l4xx_ll_gpio.h.

__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.

ODR ODy LL_GPIO_IsOutputPinSet

Parameters:
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:

  • LL_GPIO_PIN_0
  • LL_GPIO_PIN_1
  • LL_GPIO_PIN_2
  • LL_GPIO_PIN_3
  • LL_GPIO_PIN_4
  • LL_GPIO_PIN_5
  • LL_GPIO_PIN_6
  • LL_GPIO_PIN_7
  • LL_GPIO_PIN_8
  • LL_GPIO_PIN_9
  • LL_GPIO_PIN_10
  • LL_GPIO_PIN_11
  • LL_GPIO_PIN_12
  • LL_GPIO_PIN_13
  • LL_GPIO_PIN_14
  • LL_GPIO_PIN_15
  • LL_GPIO_PIN_ALL
Return values:
Stateof bit (1 or 0).

Definition at line 938 of file stm32l4xx_ll_gpio.h.

__STATIC_INLINE uint32_t LL_GPIO_ReadInputPort ( GPIO_TypeDef *  GPIOx )

Return full input data register value for a dedicated port.

IDR IDy LL_GPIO_ReadInputPort

Parameters:
GPIOxGPIO Port
Return values:
Inputdata register value of port

Definition at line 857 of file stm32l4xx_ll_gpio.h.

__STATIC_INLINE uint32_t LL_GPIO_ReadOutputPort ( GPIO_TypeDef *  GPIOx )

Return full output data register value for a dedicated port.

ODR ODy LL_GPIO_ReadOutputPort

Parameters:
GPIOxGPIO Port
Return values:
Outputdata register value of port

Definition at line 909 of file stm32l4xx_ll_gpio.h.

__STATIC_INLINE void LL_GPIO_ResetOutputPin ( GPIO_TypeDef *  GPIOx,
uint32_t  PinMask 
)

Set several pins to low level on dedicated gpio port.

BRR BRy LL_GPIO_ResetOutputPin

Parameters:
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:

  • LL_GPIO_PIN_0
  • LL_GPIO_PIN_1
  • LL_GPIO_PIN_2
  • LL_GPIO_PIN_3
  • LL_GPIO_PIN_4
  • LL_GPIO_PIN_5
  • LL_GPIO_PIN_6
  • LL_GPIO_PIN_7
  • LL_GPIO_PIN_8
  • LL_GPIO_PIN_9
  • LL_GPIO_PIN_10
  • LL_GPIO_PIN_11
  • LL_GPIO_PIN_12
  • LL_GPIO_PIN_13
  • LL_GPIO_PIN_14
  • LL_GPIO_PIN_15
  • LL_GPIO_PIN_ALL
Return values:
None

Definition at line 996 of file stm32l4xx_ll_gpio.h.

__STATIC_INLINE void LL_GPIO_SetOutputPin ( GPIO_TypeDef *  GPIOx,
uint32_t  PinMask 
)

Set several pins to high level on dedicated gpio port.

BSRR BSy LL_GPIO_SetOutputPin

Parameters:
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:

  • LL_GPIO_PIN_0
  • LL_GPIO_PIN_1
  • LL_GPIO_PIN_2
  • LL_GPIO_PIN_3
  • LL_GPIO_PIN_4
  • LL_GPIO_PIN_5
  • LL_GPIO_PIN_6
  • LL_GPIO_PIN_7
  • LL_GPIO_PIN_8
  • LL_GPIO_PIN_9
  • LL_GPIO_PIN_10
  • LL_GPIO_PIN_11
  • LL_GPIO_PIN_12
  • LL_GPIO_PIN_13
  • LL_GPIO_PIN_14
  • LL_GPIO_PIN_15
  • LL_GPIO_PIN_ALL
Return values:
None

Definition at line 967 of file stm32l4xx_ll_gpio.h.

__STATIC_INLINE void LL_GPIO_TogglePin ( GPIO_TypeDef *  GPIOx,
uint32_t  PinMask 
)

Toggle data value for several pin of dedicated port.

ODR ODy LL_GPIO_TogglePin

Parameters:
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:

  • LL_GPIO_PIN_0
  • LL_GPIO_PIN_1
  • LL_GPIO_PIN_2
  • LL_GPIO_PIN_3
  • LL_GPIO_PIN_4
  • LL_GPIO_PIN_5
  • LL_GPIO_PIN_6
  • LL_GPIO_PIN_7
  • LL_GPIO_PIN_8
  • LL_GPIO_PIN_9
  • LL_GPIO_PIN_10
  • LL_GPIO_PIN_11
  • LL_GPIO_PIN_12
  • LL_GPIO_PIN_13
  • LL_GPIO_PIN_14
  • LL_GPIO_PIN_15
  • LL_GPIO_PIN_ALL
Return values:
None

Definition at line 1025 of file stm32l4xx_ll_gpio.h.

__STATIC_INLINE void LL_GPIO_WriteOutputPort ( GPIO_TypeDef *  GPIOx,
uint32_t  PortValue 
)

Write output data register for the port.

ODR ODy LL_GPIO_WriteOutputPort

Parameters:
GPIOxGPIO Port
PortValueLevel value for each pin of the port
Return values:
None

Definition at line 898 of file stm32l4xx_ll_gpio.h.