Functions
STM32F4 DISCOVERY LOW LEVEL BUTTON Functions
Collaboration diagram for STM32F4 DISCOVERY LOW LEVEL BUTTON Functions:

Functions

uint32_t BSP_PB_GetState (Button_TypeDef Button)
 Returns the selected Button state. More...
 
void BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef Mode)
 Configures Button GPIO and EXTI Line. More...
 

Detailed Description

Function Documentation

◆ BSP_PB_GetState()

int32_t BSP_PB_GetState ( Button_TypeDef  Button)

Returns the selected Button state.

Parameters
ButtonSpecifies the Button to be checked. This parameter should be: BUTTON_KEY
Return values
TheButton GPIO pin value.

Definition at line 287 of file stm32f4_discovery.c.

◆ BSP_PB_Init()

int32_t BSP_PB_Init ( Button_TypeDef  Button,
ButtonMode_TypeDef  Mode 
)

Configures Button GPIO and EXTI Line.

Parameters
ButtonSpecifies the Button to be configured. This parameter should be: BUTTON_KEY
ModeSpecifies Button mode. This parameter can be one of following parameters:
  • BUTTON_MODE_GPIO: Button will be used as simple IO
  • BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability

Definition at line 248 of file stm32f4_discovery.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:05