Digital joystick board hardware driver. More...
Modules | |
BUMBLEB | |
Board specific joystick driver header for the Fletchtronics BUMBLEB. | |
EVK1100 | |
Board specific joystick driver header for the Atmel EVK1100. | |
EVK1101 | |
Board specific joystick driver header for the Atmel EVK1101. | |
EVK527 | |
Board specific joystick driver header for the Atmel EVK527. | |
STK525 | |
Board specific joystick driver header for the Atmel STK525. | |
STK526 | |
Board specific joystick driver header for the Atmel STK526. | |
USBKEY | |
Board specific joystick driver header for the Atmel USBKEY. | |
Functions | |
static void | Joystick_Disable (void) |
static uint_reg_t | Joystick_GetStatus (void) ATTR_WARN_UNUSED_RESULT |
static void | Joystick_Init (void) |
The following files must be built with any user project that uses this module:
Hardware Joystick driver. This module provides an easy to use interface to control the hardware digital Joystick located on many boards.
If the BOARD
value is set to BOARD_USER
, this will include the /Board/Joystick
.h file in the user project directory. Otherwise, it will include the appropriate built-in board driver header file.
For possible BOARD
makefile values, see Board Types.
The following snippet is an example of how this module may be used within a typical application.
|
inlinestatic |
Disables the joystick driver, releasing the I/O pins back to their default high-impedance input mode.
|
inlinestatic |
Returns the current status of the joystick, as a mask indicating the direction the joystick is currently facing in (multiple bits can be set).
JOYSTICK_*
constants indicating the current joystick direction(s).
|
inlinestatic |
Initializes the joystick driver so that the joystick position can be read. This sets the appropriate I/O pins to inputs with their pull-ups enabled.
This must be called before any Joystick driver functions are used.