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

Functions

uint32_t BSP_GetVersion (void)
 This method returns the STM32F4 DISCO BSP Driver revision. More...
 
void BSP_LED_Init (Led_TypeDef Led)
 Configures LED GPIO. More...
 
void BSP_LED_Off (Led_TypeDef Led)
 Turns selected LED Off. More...
 
void BSP_LED_On (Led_TypeDef Led)
 Turns selected LED On. More...
 
void BSP_LED_Toggle (Led_TypeDef Led)
 Toggles the selected LED. More...
 
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_GetVersion()

uint32_t BSP_GetVersion ( void  )

This method returns the STM32F4 DISCO BSP Driver revision.

Return values
version: 0xXYZR (8bits for each decimal, R for RC)

This method returns the STM32F4 DISCO BSP Driver revision.

Return values
version0xXYZR (8bits for each decimal, R for RC)

Definition at line 156 of file stm32f4_discovery.c.

◆ BSP_LED_Init()

void BSP_LED_Init ( Led_TypeDef  Led)

Configures LED GPIO.

Parameters
LedSpecifies the Led to be configured. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6
LedLED to be configured. This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
LedLED to be configured. This parameter can be one of the following values:
  • LED1
  • LED2
Return values
NoneConfigures LED GPIO.
Parameters
LedLED to be configured. This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
BSPstatus

Definition at line 170 of file stm32f4_discovery.c.

◆ BSP_LED_Off()

void BSP_LED_Off ( Led_TypeDef  Led)

Turns selected LED Off.

Parameters
LedSpecifies the Led to be set off. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6
LedLED to be set off This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
LedLED to be set off This parameter can be one of the following values:
  • LED1
  • LED2
Return values
None
Parameters
LedLED to be set off This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
BSPstatus

Definition at line 211 of file stm32f4_discovery.c.

◆ BSP_LED_On()

void BSP_LED_On ( Led_TypeDef  Led)

Turns selected LED On.

Parameters
LedSpecifies the Led to be set on. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6
LedLED to be set on This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
LedLED to be set on This parameter can be one of the following values:
  • LED1
  • LED2
Return values
None
Parameters
LedLED to be set on This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
BSPstatus

Definition at line 197 of file stm32f4_discovery.c.

◆ BSP_LED_Toggle()

void BSP_LED_Toggle ( Led_TypeDef  Led)

Toggles the selected LED.

Parameters
LedSpecifies the Led to be toggled. This parameter can be one of following parameters:
  • LED4
  • LED3
  • LED5
  • LED6
LedLED to be toggled This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
LedLED to be toggled This parameter can be one of the following values:
  • LED1
  • LED2
Return values
None
Parameters
LedLED to be toggled This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
BSPstatus

Definition at line 225 of file stm32f4_discovery.c.

◆ BSP_PB_GetState()

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

Returns the selected Button state.

Parameters
ButtonButton to be checked This parameter can be one of the following values:
  • BUTTON_WAKEUP: Wakeup Push Button
  • BUTTON_USER: User Push Button
Return values
TheButton GPIO pin value

Returns the selected Button state.

Parameters
ButtonButton to be checked This parameter can be one of the following values:
  • BUTTON_WAKEUP: Wakeup Push Button
Return values
TheButton GPIO pin value

Definition at line 287 of file stm32f4_discovery.c.

◆ BSP_PB_Init()

void 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
ButtonSpecifies the Button to be configured. This parameter should be: BUTTON_KEY
ButtonModeSpecifies 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
Configures Button GPIO and EXTI Line.
ButtonButton to be configured This parameter can be one of the following values:
  • BUTTON_WAKEUP: Wakeup Push Button
  • BUTTON_USER: User Push Button
Button_ModeButton mode This parameter can be one of the following values:
  • BUTTON_MODE_GPIO: Button will be used as simple IO
  • BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
Configures Button GPIO and EXTI Line.
ButtonButton to be configured This parameter can be one of the following values:
  • BUTTON_WAKEUP: Wakeup Push Button
  • BUTTON_USER: User Push Button
Button_ModeButton mode This parameter can be one of the following values:
  • BUTTON_MODE_GPIO: Button will be used as simple IO
  • BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
Return values
NoneConfigures Button GPIO and EXTI Line.
Parameters
ButtonButton to be configured This parameter can be one of the following values:
  • BUTTON_WAKEUP: Wakeup Push Button
ButtonModeButton mode This parameter can be one of the following values:
  • BUTTON_MODE_GPIO: Button will be used as simple IO
  • BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
Return values
BSPstatus

Definition at line 248 of file stm32f4_discovery.c.



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