Joystick Management
[USBKEY Module]

Collaboration diagram for Joystick Management:

Macros to manage Joystick on USB KEY. More...

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 USB KEY.


Define Documentation

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

Definition at line 57 of file usb_key.h.

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

Definition at line 58 of file usb_key.h.

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

Definition at line 59 of file usb_key.h.

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

Definition at line 60 of file usb_key.h.

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

Definition at line 61 of file usb_key.h.

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

Definition at line 62 of file usb_key.h.

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

Definition at line 63 of file usb_key.h.

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

Definition at line 64 of file usb_key.h.

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

Definition at line 65 of file usb_key.h.

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

Definition at line 66 of file usb_key.h.

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

Definition at line 67 of file usb_key.h.


Generated on Fri Mar 17 16:02:12 2006 for Atmel by  doxygen 1.4.6-NO