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 @arg BUTTON_USER: User Push Button
Return value
The Button GPIO pin value
Examples
BSP_PB_GetState() is referenced by 20 libraries and example projects: