Joystick Management
[STK525 Module]

Collaboration diagram for Joystick Management:


Defines

#define Joy_init()   (DDRB &= 0x1F, PORTB |= 0xE0, DDRE &= 0xE7, PORTE |= 0x30)
#define Is_joy_up()   ((PINB & 0x80) ? FALSE : TRUE)
#define Is_joy_not_up()   ((PINB & 0x80) ? TRUE : FALSE)
#define Is_joy_left()   ((PINB & 0x40) ? FALSE : TRUE)
#define Is_joy_not_left()   ((PINB & 0x40) ? TRUE : FALSE)
#define Is_joy_select()   ((PINB & 0x20) ? FALSE : TRUE)
#define Is_joy_not_select()   ((PINB & 0x20) ? TRUE : FALSE)
#define Is_joy_right()   ((PINE & 0x10) ? FALSE : TRUE)
#define Is_joy_not_right()   ((PINE & 0x10) ? TRUE : FALSE)
#define Is_joy_down()   ((PINE & 0x20) ? FALSE : TRUE)
#define Is_joy_not_down()   ((PINE & 0x20) ? TRUE : FALSE)

Detailed Description

Macros to manage Joystick on STK525

Define Documentation

 
#define Joy_init (  )     (DDRB &= 0x1F, PORTB |= 0xE0, DDRE &= 0xE7, PORTE |= 0x30)

Definition at line 55 of file stk_525.h.

Referenced by hid_task_init().

 
#define Is_joy_up (  )     ((PINB & 0x80) ? FALSE : TRUE)

Definition at line 56 of file stk_525.h.

Referenced by hid_task().

 
#define Is_joy_not_up (  )     ((PINB & 0x80) ? TRUE : FALSE)

Definition at line 57 of file stk_525.h.

 
#define Is_joy_left (  )     ((PINB & 0x40) ? FALSE : TRUE)

Definition at line 58 of file stk_525.h.

Referenced by hid_task().

 
#define Is_joy_not_left (  )     ((PINB & 0x40) ? TRUE : FALSE)

Definition at line 59 of file stk_525.h.

 
#define Is_joy_select (  )     ((PINB & 0x20) ? FALSE : TRUE)

Definition at line 60 of file stk_525.h.

 
#define Is_joy_not_select (  )     ((PINB & 0x20) ? TRUE : FALSE)

Definition at line 61 of file stk_525.h.

 
#define Is_joy_right (  )     ((PINE & 0x10) ? FALSE : TRUE)

Definition at line 62 of file stk_525.h.

Referenced by hid_task().

 
#define Is_joy_not_right (  )     ((PINE & 0x10) ? TRUE : FALSE)

Definition at line 63 of file stk_525.h.

 
#define Is_joy_down (  )     ((PINE & 0x20) ? FALSE : TRUE)

Definition at line 64 of file stk_525.h.

Referenced by hid_task().

 
#define Is_joy_not_down (  )     ((PINE & 0x20) ? TRUE : FALSE)

Definition at line 65 of file stk_525.h.


Generated on Fri Jan 26 17:33:08 2007 for Atmel by  doxygen 1.5.1-p1