BSP_JOY_GetState() function
Returns the Joystick key pressed.
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.
Functions called by BSP_JOY_GetState()
BSP_JOY_GetState()
Data read by BSP_JOY_GetState()
Data written by BSP_JOY_GetState()
BSP_JOY_GetState()::state BSP_JOY_GetState()::keyconvertedvalue all items filtered out
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