| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
Exported Functions
BLUENRG1 Peripheral Driver » GPIO Peripheral

## Functions

void | GPIO_DeInit (void)
| Deinitializes the GPIO peripheral registers to their default reset values. More...
void | GPIO_Init (GPIO_InitType *GPIO_InitStruct)
| Initializes the GPIO peripheral according to the specified parameters in the GPIO_InitStruct. More...
void | GPIO_StructInit (GPIO_InitType *GPIO_InitStruct)
| Fills the GPIO_InitStruct member with its default value. More...
BitAction | GPIO_ReadBit (uint16_t GPIO_Pins)
| Reads the specified input pin value. More...
void | GPIO_WriteBit (uint16_t GPIO_Pins, BitAction BitVal)
| Sets or clears the selected IO pin bit. More...
void | GPIO_SetBits (uint16_t GPIO_Pins)
| Sets the selected IO pin bit. More...
void | GPIO_ResetBits (uint16_t GPIO_Pins)
| Clears the selected IO pin bits. More...
void | GPIO_ToggleBits (uint16_t GPIO_Pins)
| Toggles data to the specified IO pin. More...
void | GPIO_EXTIStructInit (GPIO_EXTIConfigType *GPIO_EXTIInitStruct)
| Fills each GPIO_EXTIStruct member with its default value. More...
void | GPIO_EXTIConfig (GPIO_EXTIConfigType *EXTIConfig)
| Selects the GPIO pins used as EXTI Line. More...
void | GPIO_EXTICmd (uint16_t GPIO_Pins, FunctionalState NewState)
| Enables or disables interrupts on specified pins. More...
void | GPIO_ClearITPendingBit (uint16_t GPIO_Pins)
| Clears the GPIO interrupt pending bits. More...
FlagStatus | GPIO_GetITPendingBit (uint16_t GPIO_Pin)
| Checks whether the specified enabled GPIO interrupt is active. More...

## Detailed Description

## Function Documentation

void GPIO_ClearITPendingBit | ( | uint16_t | GPIO_Pins | ) |

Clears the GPIO interrupt pending bits.

Clears the GPIOx interrupt pending bits.

Parameters

  GPIO_Pin | specifies the GPIO interrupt pending bit to clear. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition. More than one pin can be specified in OR logic, i.e. (GPIO_Pin_0 | GPIO_Pin_1).

Return values

  None |

Definition at line 353 of file BlueNRG1_gpio.c.

void GPIO_DeInit | ( | void |  | ) |

Deinitializes the GPIO peripheral registers to their default reset values.

GPIO deinitialization.

Parameters

  None |

Return values

  None |

Definition at line 92 of file BlueNRG1_gpio.c.

void GPIO_EXTICmd | ( | uint16_t | GPIO_Pins,
|  | FunctionalState | NewState
| ) |  |

Enables or disables interrupts on specified pins.

Enables or disables interrupts on specified pins.

Parameters

  GPIO_Pin | specifies the IO pins as an interrupt source. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition. More than one pin can be specified in OR logic, i.e. (GPIO_Pin_0 | GPIO_Pin_1).
  NewState | functional state FunctionalState This parameter can be: ENABLE or DISABLE.

Return values

  None |

Definition at line 333 of file BlueNRG1_gpio.c.

void GPIO_EXTIConfig | ( | GPIO_EXTIConfigType * | EXTIConfig | ) |

Selects the GPIO pins used as EXTI Line.

Selects the GPIO pin used as EXTI Line.

Parameters

  EXTIConfig | pointer to a GPIO_EXTIConfigType structure that contains the configuration information for the specified GPIO pins.

Return values

  None |

Definition at line 289 of file BlueNRG1_gpio.c.

void GPIO_EXTIStructInit | ( | GPIO_EXTIConfigType * | GPIO_EXTIInitStruct | ) |

Fills each GPIO_EXTIStruct member with its default value.

Initialization of the GPIO_EXTIInit Structure.

Parameters

  GPIO_EXTIInitStruct | : pointer to a GPIO_EXTIConfigType structure.

Return values

  None |

Definition at line 274 of file BlueNRG1_gpio.c.

FlagStatus GPIO_GetITPendingBit | ( | uint16_t | GPIO_Pin | ) |

Checks whether the specified enabled GPIO interrupt is active.

Checks whether the specified enabled GPIO interrupt is active.

Parameters

  GPIO_Pin | Specifies the GPIO interrupt to check. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition.
  FlagStatus | functional state FlagStatus This parameter can be: SET or RESET.

Definition at line 369 of file BlueNRG1_gpio.c.

void GPIO_Init | ( | GPIO_InitType * | GPIO_InitStruct | ) |

Initializes the GPIO peripheral according to the specified parameters in the GPIO_InitStruct.

GPIO initialization.

Parameters

  GPIO_InitStruct | pointer to a GPIO_InitType structure that contains the configuration information for the specified GPIO peripheral.

Return values

  None |

Definition at line 116 of file BlueNRG1_gpio.c.

BitAction GPIO_ReadBit | ( | uint16_t | GPIO_Pins | ) |

Reads the specified input pin value.

Read GPIO pin logic state.

Parameters

  GPIO_Pin | specifies the GPIO pin bits to read. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition.

Return values

  The | input pin value BitAction.

Definition at line 187 of file BlueNRG1_gpio.c.

void GPIO_ResetBits | ( | uint16_t | GPIO_Pins | ) |

Clears the selected IO pin bits.

Reset selected GPIO pin.

Parameters

  GPIO_Pin | specifies the pins to be written. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition. More than one pin can be specified in OR logic, i.e. (GPIO_Pin_0 | GPIO_Pin_1).

Return values

  None |

Definition at line 223 of file BlueNRG1_gpio.c.

void GPIO_SetBits | ( | uint16_t | GPIO_Pins | ) |

Sets the selected IO pin bit.

Set selected GPIO pin.

Parameters

  GPIO_Pin | specifies the pins to be written. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition. More than one pin can be specified in OR logic, i.e. (GPIO_Pin_0 | GPIO_Pin_1).

Return values

  None |

Definition at line 208 of file BlueNRG1_gpio.c.

void GPIO_StructInit | ( | GPIO_InitType * | GPIO_InitStruct | ) |

Fills the GPIO_InitStruct member with its default value.

Initialization of the GPIO_InitType Structure.

Parameters

  GPIO_InitStruct | : pointer to a GPIO_InitType structure which will be initialized.

Return values

  None |

Definition at line 172 of file BlueNRG1_gpio.c.

void GPIO_ToggleBits | ( | uint16_t | GPIO_Pins | ) |

Toggles data to the specified IO pin.

Toggle selected GPIO pin.

Parameters

  GPIO_Pin | specifies the IO bits to be toggled. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition. More than one pin can be specified in OR logic, i.e. (GPIO_Pin_0 | GPIO_Pin_1).

Return values

  None |

Definition at line 261 of file BlueNRG1_gpio.c.

void GPIO_WriteBit | ( | uint16_t | GPIO_Pins,
|  | BitAction | BitVal
| ) |  |

Sets or clears the selected IO pin bit.

Write new GPIO pin logic state.

Parameters

  GPIO_Pin | specifies the IO bits to be written. This parameter can be GPIO_Pin_x where x can be (0..14) GPIO Pins Definition. More than one pin can be specified in OR logic, i.e. (GPIO_Pin_0 | GPIO_Pin_1).
  BitVal | specifies the value to be written to the selected bit. This parameter can be any value of BitAction.

Return values

  None |

Definition at line 240 of file BlueNRG1_gpio.c.