STM32F4xx_Nucleo_144 + 0/10 examples
CodeScope will show references to BSP_JOY_GetState() from the following samples and libraries:
Examples
STM32F413ZH-Nucleo
Examples
Applications
USB_Host
STM32F429ZI-Nucleo
Examples
Applications
USB_Host
STM32F412ZG-Nucleo
Examples
Applications
USB_Host
STM32F446ZE-Nucleo
Examples
Applications
USB_Host
 
Symbols
loading...
Files
loading...

BSP_JOY_GetState() function

Returns the Joystick key pressed.

Syntax

JOYState_TypeDef BSP_JOY_GetState(void);
Implemented in stm32f4xx_nucleo_144.c:793

Return value

JOYState_TypeDef: Code of the Joystick key pressed.

Notes

To know which Joystick key is pressed we need to detect the voltage level on each key output - None : 3.3 V / 4095 - SEL : 1.055 V / 1308 - DOWN : 0.71 V / 88 - LEFT : 3.0 V / 3720 - RIGHT : 0.595 V / 737 - UP : 1.65 V / 2046

Examples

BSP_JOY_GetState() is referenced by 10 libraries and example projects.

References

LocationText
stm32f4xx_nucleo_144.c:793
JOYState_TypeDef BSP_JOY_GetState(void)
stm32f4xx_nucleo_144.h:310
JOYState_TypeDef BSP_JOY_GetState(void);

Call Tree

Functions called by BSP_JOY_GetState()
BSP_JOY_GetState()
Data read by BSP_JOY_GetState()
Data written by BSP_JOY_GetState()
BSP_JOY_GetState()
BSP_JOY_GetState()::state
BSP_JOY_GetState()::keyconvertedvalue
all items filtered out
Type of BSP_JOY_GetState()
BSP_JOY_GetState()
uint16_t
all items filtered out