controller.h File Reference


Detailed Description

Controller interface.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file controller.h.

#include "compiler.h"

Go to the source code of this file.

Functions

Initialization
void controller_init (U32 fcpu_hz, U32 fhsb_hz, U32 fpbb_hz, U32 fpba_hz)
 Initialization function of the controller interface.
is_joystick_down
Bool is_joystick_down (void)
 check if down is pressed.
is_joystick_left
Bool is_joystick_left (void)
 check if left is pressed.
is_joystick_pressed
Bool is_joystick_pressed (void)
 check if pressed is pressed.
is_joystick_right
Bool is_joystick_right (void)
 check if right is pressed.
is_joystick_up
Bool is_joystick_up (void)
 check if up is pressed.


Function Documentation

void controller_init ( U32  fcpu_hz,
U32  fhsb_hz,
U32  fpbb_hz,
U32  fpba_hz 
)

Initialization function of the controller interface.

Parameters:
fcpu_hz CPU frequency.
fhsb_hz HSB frequency.
fpbb_hz PBB frequency.
fpba_hz PBA frequency.

Definition at line 69 of file qt1081_controller.c.

References QT60168_SPI_BITS, QT60168_SPI_MASTER_SPEED, and rtc_init_qt().

Referenced by main().

00070 {
00071   // Don't have to do init
00072 }

Bool is_joystick_down ( void   ) 

check if down is pressed.

Definition at line 53 of file qt1081_controller.c.

References JOYSTICK_STATUS_DOWN, and qwheel_status.

Referenced by is_usb_hid_event().

00053                            {
00054   return is_touch_sensor_1(); 
00055 }

Bool is_joystick_left ( void   ) 

check if left is pressed.

Definition at line 61 of file qt1081_controller.c.

References JOYSTICK_STATUS_LEFT, and qwheel_status.

Referenced by is_usb_hid_event().

00061                            {
00062   return is_touch_sensor_3(); 
00063 }

Bool is_joystick_pressed ( void   ) 

check if pressed is pressed.

Definition at line 65 of file qt1081_controller.c.

References JOYSTICK_STATUS_PRESSED, and qwheel_status.

Referenced by device_audio_task(), and is_usb_hid_event().

00065                               {
00066   return is_touch_sensor_4(); 
00067 }

Bool is_joystick_right ( void   ) 

check if right is pressed.

Definition at line 57 of file qt1081_controller.c.

References JOYSTICK_STATUS_RIGHT, and qwheel_status.

Referenced by is_usb_hid_event().

00057                             {
00058   return is_touch_sensor_2(); 
00059 }

Bool is_joystick_up ( void   ) 

check if up is pressed.

Definition at line 49 of file qt1081_controller.c.

References JOYSTICK_STATUS_UP, and qwheel_status.

Referenced by is_usb_hid_event().

00049                           {
00050   return is_touch_sensor_0(); 
00051 }


Generated on Fri Feb 19 02:32:15 2010 for AVR32 - USB AUDIO Example by  doxygen 1.5.5