BSP_PB_GetState() function
Returns the selected button state.
Arguments
Button
Button to be checked This parameter can be one of the following values: @arg BUTTON_WAKEUP: Wakeup Push Button
Return value
The Button GPIO pin value (GPIO_PIN_RESET = button pressed)
Examples
BSP_PB_GetState() is referenced by 6 libraries and example projects: