USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Enumerations
Wii.h File Reference
#include "BTD.h"
#include "controllerEnums.h"
Include dependency graph for Wii.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WII
 

Macros

#define WII_FLAG_MOTION_PLUS_CONNECTED   (1 << 0)
 
#define WII_FLAG_NUNCHUCK_CONNECTED   (1 << 1)
 
#define WII_FLAG_CALIBRATE_BALANCE_BOARD   (1 << 2)
 
#define wii_check_flag(flag)   (wii_event_flag & (flag))
 
#define wii_set_flag(flag)   (wii_event_flag |= (flag))
 
#define wii_clear_flag(flag)   (wii_event_flag &= ~(flag))
 

Enumerations

enum  HatEnum { HatX = 0, HatY = 1 }
 
enum  BalanceBoardEnum { TopRight = 0, BotRight = 1, TopLeft = 2, BotLeft = 3 }
 

Macro Definition Documentation

#define WII_FLAG_MOTION_PLUS_CONNECTED   (1 << 0)

Definition at line 27 of file Wii.h.

#define WII_FLAG_NUNCHUCK_CONNECTED   (1 << 1)

Definition at line 28 of file Wii.h.

#define WII_FLAG_CALIBRATE_BALANCE_BOARD   (1 << 2)

Definition at line 29 of file Wii.h.

#define wii_check_flag (   flag)    (wii_event_flag & (flag))

Definition at line 31 of file Wii.h.

#define wii_set_flag (   flag)    (wii_event_flag |= (flag))

Definition at line 32 of file Wii.h.

#define wii_clear_flag (   flag)    (wii_event_flag &= ~(flag))

Definition at line 33 of file Wii.h.

Enumeration Type Documentation

enum HatEnum

Enum used to read the joystick on the Nunchuck.

Enumerator
HatX 

Read the x-axis on the Nunchuck joystick.

HatY 

Read the y-axis on the Nunchuck joystick.

Definition at line 36 of file Wii.h.

Enum used to read the weight on Wii Balance Board.

Enumerator
TopRight 
BotRight 
TopLeft 
BotLeft 

Definition at line 44 of file Wii.h.