LL LPGPIO Functions

Port Configuration

group LPGPIO_LL_EF_Port_Configuration

Functions

void LL_LPGPIO_SetPinMode ( GPIO_TypeDef * lpgpiox , uint32_t pin , uint32_t mode )

Configure LPGPIO mode for a dedicated pin on dedicated port.

Reference Manual to LL API cross reference (Register Field Functions)

MODER MODEy LL_LPGPIO_SetPinMode

Note

I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.

Note

Warning: only one pin can be passed as parameter.

Parameters :
uint32_t LL_LPGPIO_GetPinMode ( const GPIO_TypeDef * lpgpiox , uint32_t pin )

Return LPGPIO mode for a dedicated pin on dedicated port.

Reference Manual to LL API cross reference (Register Field Functions)

MODER MODEy LL_LPGPIO_GetPinMode

Note

I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.

Note

Warning: only one pin can be passed as parameter.

Parameters :
Return values :

Returned – value can be one of the following values:

Data Access

group LPGPIO_LL_EF_Data_Access

Functions

uint32_t LL_LPGPIO_ReadInputPort ( const GPIO_TypeDef * lpgpiox )

Return full input data register value for a dedicated port.

Reference Manual to LL API cross reference (Register Field Functions)

IDR IDy LL_LPGPIO_ReadInputPort

Parameters :

lpgpiox – LPGPIO Port

Return values :

Input – data register value of port

uint32_t LL_LPGPIO_IsInputPinSet ( const GPIO_TypeDef * lpgpiox , uint32_t pin_mask )

Return if input data level for several pins of dedicated port is high or low.

Reference Manual to LL API cross reference (Register Field Functions)

IDR IDy LL_LPGPIO_IsInputPinSet

Parameters :
Return values :

State – of bit (1 or 0).

void LL_LPGPIO_WriteOutputPort ( GPIO_TypeDef * lpgpiox , uint32_t port_value )

Write output data register for the port.

Reference Manual to LL API cross reference (Register Field Functions)

ODR ODy LL_LPGPIO_WriteOutputPort

Parameters :
  • lpgpiox – LPGPIO Port

  • port_value – Level value for each pin of the port

uint32_t LL_LPGPIO_ReadOutputPort ( const GPIO_TypeDef * lpgpiox )

Return full output data register value for a dedicated port.

Reference Manual to LL API cross reference (Register Field Functions)

ODR ODy LL_LPGPIO_ReadOutputPort

Parameters :

lpgpiox – LPGPIO Port

Return values :

Output – data register value of port

uint32_t LL_LPGPIO_IsOutputPinSet ( const GPIO_TypeDef * lpgpiox , uint32_t pin_mask )

Return if input data level for several pins of dedicated port is high or low.

Reference Manual to LL API cross reference (Register Field Functions)

ODR ODy LL_LPGPIO_IsOutputPinSet

Parameters :
Return values :

State – of bit (1 or 0).

void LL_LPGPIO_SetOutputPin ( GPIO_TypeDef * lpgpiox , uint32_t pin_mask )

Set several pins to high level on dedicated gpio port.

Reference Manual to LL API cross reference (Register Field Functions)

BSRR BSy LL_LPGPIO_SetOutputPin

Parameters :
void LL_LPGPIO_ResetOutputPin ( GPIO_TypeDef * lpgpiox , uint32_t pin_mask )

Set several pins to low level on dedicated gpio port.

Reference Manual to LL API cross reference (Register Field Functions)

BRR BRy LL_LPGPIO_ResetOutputPin

Parameters :
void LL_LPGPIO_TogglePin ( GPIO_TypeDef * lpgpiox , uint32_t pin_mask )

Toggle data value for several pin of dedicated port.

Reference Manual to LL API cross reference (Register Field Functions)

ODR ODy LL_LPGPIO_TogglePin

Parameters :