Joystick Driver - LUFA/Drivers/Board/Joystick.h
[Board Drivers]

Modules

 BUMBLEB
 STK525
 STK526
 USBKEY

Functions

static void Joystick_Init (void)
static uint8_t Joystick_GetStatus (void) ATTR_WARN_UNUSED_RESULT

Detailed Description

Module Source Dependencies

The following files must be built with any user project that uses this module:

Description

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/Dataflash.h file in the user project directory. Otherwise, it will include the appropriate built in board driver header file.


Function Documentation

static uint8_t Joystick_GetStatus ( void   )  [inline, static]

Returns the current status of the joystick, as a mask indicating the direction the joystick is currently facing in (multiple bits can be set).

Returns:
Mask indicating the joystick direction - see corresponding board specific Joystick.h file for direction masks
static void Joystick_Init ( void   )  [inline, static]

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.


Generated on Thu Sep 24 22:58:13 2009 for LUFA (Formerly MyUSB) Library by  doxygen 1.6.1