qt1081_controller.c File Reference


Detailed Description

QTouch 1081 Controller.

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

Definition in file qt1081_controller.c.

#include "board.h"
#include "qt1081.h"
#include "controller.h"

Go to the source code of this file.

Functions

void controller_init (U32 fcpu_hz, U32 fhsb_hz, U32 fpbb_hz, U32 fpba_hz)
 Initialization function of the controller interface.
Bool is_joystick_down (void)
 check if down is pressed.
Bool is_joystick_left (void)
 check if left is pressed.
Bool is_joystick_pressed (void)
 check if pressed is pressed.
Bool is_joystick_right (void)
 check if right is pressed.
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.

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.

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.

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.

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.

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.

00049                           {
00050   return is_touch_sensor_0(); 
00051 }


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