Functions
Exported Functions
Collaboration diagram for Exported Functions:

Functions

const uint8_t * BSP_GetBoardID (void)
 This method returns the board ID. More...
 
const uint8_t * BSP_GetBoardName (void)
 This method returns the board name. More...
 
int32_t BSP_GetVersion (void)
 This method returns the STM32H747I DISCO BSP Driver revision. More...
 
__weak void BSP_JOY_Callback (JOY_TypeDef JOY, uint32_t JoyPin)
 BSP Joystick Callback. More...
 
int32_t BSP_JOY_DeInit (JOY_TypeDef JOY, JOYPin_TypeDef JoyPins)
 DeInit joystick GPIOs. More...
 
int32_t BSP_JOY_GetState (JOY_TypeDef JOY, uint32_t JoyPin)
 Returns the current joystick status. More...
 
int32_t BSP_JOY_Init (JOY_TypeDef JOY, JOYMode_TypeDef JoyMode, JOYPin_TypeDef JoyPins)
 Configures joystick GPIO and EXTI modes. More...
 
void BSP_JOY_IRQHandler (JOY_TypeDef JOY, JOYPin_TypeDef JoyPin)
 This function handles JOY keys interrupt request. More...
 
int32_t BSP_LED_DeInit (Led_TypeDef Led)
 DeInit LEDs. More...
 
int32_t BSP_LED_GetState (Led_TypeDef Led)
 Get the selected LED state. More...
 
int32_t BSP_LED_Init (Led_TypeDef Led)
 Configures LED on GPIO. More...
 
int32_t BSP_LED_Off (Led_TypeDef Led)
 Turns selected LED Off. More...
 
int32_t BSP_LED_On (Led_TypeDef Led)
 Turns selected LED On. More...
 
int32_t BSP_LED_Toggle (Led_TypeDef Led)
 Toggles the selected LED. More...
 
__weak void BSP_PB_Callback (Button_TypeDef Button)
 BSP Push Button callback. More...
 
int32_t BSP_PB_DeInit (Button_TypeDef Button)
 Push Button DeInit. More...
 
int32_t BSP_PB_GetState (Button_TypeDef Button)
 Returns the selected button state. More...
 
int32_t BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef ButtonMode)
 Configures button GPIO and EXTI Line. More...
 
void BSP_PB_IRQHandler (Button_TypeDef Button)
 This function handles Push-Button interrupt requests. More...
 
static void BUTTON_WAKEUP_EXTI_Callback (void)
 KEY EXTI line detection callbacks. More...
 

Detailed Description

Function Documentation

◆ BSP_GetBoardID()

const uint8_t * BSP_GetBoardID ( void  )

This method returns the board ID.

Return values
pointerto the board name string

Definition at line 155 of file stm32h747i_discovery.c.

◆ BSP_GetBoardName()

const uint8_t * BSP_GetBoardName ( void  )

This method returns the board name.

Return values
pointerto the board name string

Definition at line 146 of file stm32h747i_discovery.c.

◆ BSP_GetVersion()

int32_t BSP_GetVersion ( void  )

This method returns the STM32H747I DISCO BSP Driver revision.

This method returns the STM32F4 DISCO BSP Driver revision.

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

Definition at line 137 of file stm32h747i_discovery.c.

◆ BSP_JOY_Callback()

void BSP_JOY_Callback ( JOY_TypeDef  JOY,
uint32_t  JoyPin 
)

BSP Joystick Callback.

Parameters
JOYJoystick instance
JoyPinSpecifies the pin connected EXTI line
Return values
None.

Definition at line 798 of file stm32h747i_discovery.c.

◆ BSP_JOY_DeInit()

int32_t BSP_JOY_DeInit ( JOY_TypeDef  JOY,
JOYPin_TypeDef  JoyPins 
)

DeInit joystick GPIOs.

Parameters
JOYinstance
Note
JOY DeInit does not disable the MFX, just set the MFX pins in Off mode
Parameters
JoyPinsjoystick pins to be de-initialized
Return values
BSPstatus

Definition at line 696 of file stm32h747i_discovery.c.

◆ BSP_JOY_GetState()

int32_t BSP_JOY_GetState ( JOY_TypeDef  JOY,
uint32_t  JoyPin 
)

Returns the current joystick status.

Return values
Codeof the joystick key pressed This code can be one of the following values:
  • JOY_NONE
  • JOY_SEL
  • JOY_DOWN
  • JOY_LEFT
  • JOY_RIGHT
  • JOY_UP

Definition at line 753 of file stm32h747i_discovery.c.

◆ BSP_JOY_Init()

int32_t BSP_JOY_Init ( JOY_TypeDef  JOY,
JOYMode_TypeDef  JoyMode,
JOYPin_TypeDef  JoyPins 
)

Configures joystick GPIO and EXTI modes.

Parameters
JOYJoystick to be initialized
JoyModeButton mode. This parameter can be one of the following values:
  • JOY_MODE_GPIO: Joystick pins will be used as simple IOs
  • JOY_MODE_EXTI: Joystick pins will be connected to EXTI line with interrupt generation capability
JoyPinsjoystick pins to be initialized
Return values
BSPstatus

Definition at line 599 of file stm32h747i_discovery.c.

◆ BSP_JOY_IRQHandler()

void BSP_JOY_IRQHandler ( JOY_TypeDef  JOY,
JOYPin_TypeDef  JoyPin 
)

This function handles JOY keys interrupt request.

Parameters
JOYJoystick instance
JoyPinSpecifies the pin connected EXTI handler
Return values
None

Definition at line 784 of file stm32h747i_discovery.c.

◆ BSP_LED_DeInit()

int32_t BSP_LED_DeInit ( Led_TypeDef  Led)

DeInit LEDs.

Parameters
LedLED to be configured. This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
BSPstatus

Definition at line 201 of file stm32h747i_discovery.c.

◆ BSP_LED_GetState()

int32_t BSP_LED_GetState ( Led_TypeDef  Led)

Get the selected LED state.

Parameters
LedLED to be get its state This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
LEDstatus

Definition at line 275 of file stm32h747i_discovery.c.

◆ BSP_LED_Init()

int32_t BSP_LED_Init ( Led_TypeDef  Led)

Configures LED on GPIO.

Configures 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 stm32h747i_discovery.c.

◆ BSP_LED_Off()

int32_t BSP_LED_Off ( Led_TypeDef  Led)

Turns selected LED Off.

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 242 of file stm32h747i_discovery.c.

◆ BSP_LED_On()

int32_t BSP_LED_On ( Led_TypeDef  Led)

Turns selected LED On.

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 224 of file stm32h747i_discovery.c.

◆ BSP_LED_Toggle()

int32_t BSP_LED_Toggle ( Led_TypeDef  Led)

Toggles the selected LED.

Parameters
LedLED to be toggled This parameter can be one of the following values:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
BSPstatus

Definition at line 259 of file stm32h747i_discovery.c.

◆ BSP_PB_Callback()

void BSP_PB_Callback ( Button_TypeDef  Button)

BSP Push Button callback.

Parameters
ButtonSpecifies the pin connected EXTI line
Return values
None.

Definition at line 382 of file stm32h747i_discovery.c.

◆ BSP_PB_DeInit()

int32_t BSP_PB_DeInit ( Button_TypeDef  Button)

Push Button DeInit.

Parameters
ButtonButton to be configured This parameter can be one of the following values:
  • BUTTON_WAKEUP: Wakeup Push Button
Note
PB DeInit does not disable the GPIO clock
Return values
BSPstatus

Definition at line 336 of file stm32h747i_discovery.c.

◆ BSP_PB_GetState()

int32_t BSP_PB_GetState ( Button_TypeDef  Button)

Returns the selected button state.

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 354 of file stm32h747i_discovery.c.

◆ BSP_PB_Init()

int32_t BSP_PB_Init ( Button_TypeDef  Button,
ButtonMode_TypeDef  ButtonMode 
)

Configures button GPIO and EXTI Line.

Configures 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 293 of file stm32h747i_discovery.c.

◆ BSP_PB_IRQHandler()

void BSP_PB_IRQHandler ( Button_TypeDef  Button)

This function handles Push-Button interrupt requests.

Parameters
ButtonSpecifies the pin connected EXTI line
Return values
None

Definition at line 364 of file stm32h747i_discovery.c.

◆ BUTTON_WAKEUP_EXTI_Callback()

static void BUTTON_WAKEUP_EXTI_Callback ( void  )
static

KEY EXTI line detection callbacks.

Return values
None

Definition at line 373 of file stm32h747i_discovery.c.



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