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 :
-
-
lpgpiox – LPGPIO Port
-
pin – This parameter can be one of the following values:
-
mode – This parameter can be one of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPGPIO_SetPinMode
(
GPIO_TypeDef
*
lpgpiox
,
uint32_t
pin
,
uint32_t
mode
)
¶
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin – This parameter can be one of the following values:
-
mode – This parameter can be one of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPGPIO_SetPinMode
(
GPIO_TypeDef
*
lpgpiox
,
uint32_t
pin
,
uint32_t
mode
)
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin – This parameter can be one of the following values:
-
mode – This parameter can be one of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin – This parameter can be one of the following values:
-
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_LPGPIO_SetPinMode
(
GPIO_TypeDef
*
lpgpiox
,
uint32_t
pin
,
uint32_t
mode
)
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
uint32_t
LL_LPGPIO_ReadInputPort
(
const
GPIO_TypeDef
*
lpgpiox
)
¶
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
uint32_t
LL_LPGPIO_ReadInputPort
(
const
GPIO_TypeDef
*
lpgpiox
)
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
- 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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
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 :
-
-
lpgpiox – LPGPIO Port
-
pin_mask – This parameter can be a combination of the following values:
-
-
uint32_t
LL_LPGPIO_ReadInputPort
(
const
GPIO_TypeDef
*
lpgpiox
)