MyUSB/Drivers/Board/Joystick.h File Reference

#include "../../Common/Common.h"

Functions

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

Detailed Description

This file is the master dispatch header file for the board-specific Joystick driver, for boards containing a 5-way joystick.

User code should include this file, which will in turn include the correct joystick driver header file for the currently selected board.

If the BOARD value is set to BOARD_USER, this will include the /Board/Joystick.h file in the user project directory.


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 Oct 2 18:01:17 2008 for MyUSB Library by  doxygen 1.5.5