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 WIICAMERA
 
#define L2CAP_WAIT   0
 
#define L2CAP_CONTROL_SUCCESS   1
 
#define L2CAP_INTERRUPT_SETUP   2
 
#define L2CAP_CONTROL_CONNECT_REQUEST   3
 
#define L2CAP_CONTROL_CONFIG_REQUEST   4
 
#define L2CAP_INTERRUPT_CONNECT_REQUEST   5
 
#define L2CAP_INTERRUPT_CONFIG_REQUEST   6
 
#define L2CAP_CHECK_MOTION_PLUS_STATE   7
 
#define L2CAP_CHECK_EXTENSION_STATE   8
 
#define L2CAP_INIT_MOTION_PLUS_STATE   9
 
#define L2CAP_LED_STATE   10
 
#define L2CAP_DONE   11
 
#define L2CAP_INTERRUPT_DISCONNECT   12
 
#define L2CAP_CONTROL_DISCONNECT   13
 
#define L2CAP_FLAG_CONTROL_CONNECTED   0x001
 
#define L2CAP_FLAG_INTERRUPT_CONNECTED   0x002
 
#define L2CAP_FLAG_CONFIG_CONTROL_SUCCESS   0x004
 
#define L2CAP_FLAG_CONFIG_INTERRUPT_SUCCESS   0x008
 
#define L2CAP_FLAG_DISCONNECT_CONTROL_RESPONSE   0x040
 
#define L2CAP_FLAG_DISCONNECT_INTERRUPT_RESPONSE   0x080
 
#define L2CAP_FLAG_CONNECTION_CONTROL_REQUEST   0x100
 
#define L2CAP_FLAG_CONNECTION_INTERRUPT_REQUEST   0x200
 
#define l2cap_connected_control_flag   (l2cap_event_flag & L2CAP_FLAG_CONTROL_CONNECTED)
 
#define l2cap_connected_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_INTERRUPT_CONNECTED)
 
#define l2cap_config_success_control_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_CONTROL_SUCCESS)
 
#define l2cap_config_success_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_INTERRUPT_SUCCESS)
 
#define l2cap_disconnect_response_control_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_CONTROL_RESPONSE)
 
#define l2cap_disconnect_response_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_INTERRUPT_RESPONSE)
 
#define l2cap_connection_request_control_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_CONTROL_REQUEST)
 
#define l2cap_connection_request_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_INTERRUPT_REQUEST)
 
#define WII_FLAG_MOTION_PLUS_CONNECTED   0x400
 
#define WII_FLAG_NUNCHUCK_CONNECTED   0x800
 
#define motion_plus_connected_flag   (l2cap_event_flag & WII_FLAG_MOTION_PLUS_CONNECTED)
 
#define nunchuck_connected_flag   (l2cap_event_flag & WII_FLAG_NUNCHUCK_CONNECTED)
 

Enumerations

enum  Hat { HatX = 0, HatY = 1 }
 

Macro Definition Documentation

#define WIICAMERA

You will have to uncomment this to use the IR camera

Definition at line 27 of file Wii.h.

#define L2CAP_WAIT   0

Definition at line 30 of file Wii.h.

#define L2CAP_CONTROL_SUCCESS   1

Definition at line 33 of file Wii.h.

#define L2CAP_INTERRUPT_SETUP   2

Definition at line 34 of file Wii.h.

#define L2CAP_CONTROL_CONNECT_REQUEST   3

Definition at line 37 of file Wii.h.

#define L2CAP_CONTROL_CONFIG_REQUEST   4

Definition at line 38 of file Wii.h.

#define L2CAP_INTERRUPT_CONNECT_REQUEST   5

Definition at line 39 of file Wii.h.

#define L2CAP_INTERRUPT_CONFIG_REQUEST   6

Definition at line 41 of file Wii.h.

#define L2CAP_CHECK_MOTION_PLUS_STATE   7

Definition at line 43 of file Wii.h.

#define L2CAP_CHECK_EXTENSION_STATE   8

Definition at line 44 of file Wii.h.

#define L2CAP_INIT_MOTION_PLUS_STATE   9

Definition at line 45 of file Wii.h.

#define L2CAP_LED_STATE   10

Definition at line 46 of file Wii.h.

#define L2CAP_DONE   11

Definition at line 47 of file Wii.h.

#define L2CAP_INTERRUPT_DISCONNECT   12

Definition at line 49 of file Wii.h.

#define L2CAP_CONTROL_DISCONNECT   13

Definition at line 50 of file Wii.h.

#define L2CAP_FLAG_CONTROL_CONNECTED   0x001

Definition at line 53 of file Wii.h.

#define L2CAP_FLAG_INTERRUPT_CONNECTED   0x002

Definition at line 54 of file Wii.h.

#define L2CAP_FLAG_CONFIG_CONTROL_SUCCESS   0x004

Definition at line 55 of file Wii.h.

#define L2CAP_FLAG_CONFIG_INTERRUPT_SUCCESS   0x008

Definition at line 56 of file Wii.h.

#define L2CAP_FLAG_DISCONNECT_CONTROL_RESPONSE   0x040

Definition at line 57 of file Wii.h.

#define L2CAP_FLAG_DISCONNECT_INTERRUPT_RESPONSE   0x080

Definition at line 58 of file Wii.h.

#define L2CAP_FLAG_CONNECTION_CONTROL_REQUEST   0x100

Definition at line 59 of file Wii.h.

#define L2CAP_FLAG_CONNECTION_INTERRUPT_REQUEST   0x200

Definition at line 60 of file Wii.h.

#define l2cap_connected_control_flag   (l2cap_event_flag & L2CAP_FLAG_CONTROL_CONNECTED)

Definition at line 63 of file Wii.h.

#define l2cap_connected_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_INTERRUPT_CONNECTED)

Definition at line 64 of file Wii.h.

#define l2cap_config_success_control_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_CONTROL_SUCCESS)

Definition at line 65 of file Wii.h.

#define l2cap_config_success_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_CONFIG_INTERRUPT_SUCCESS)

Definition at line 66 of file Wii.h.

#define l2cap_disconnect_response_control_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_CONTROL_RESPONSE)

Definition at line 67 of file Wii.h.

#define l2cap_disconnect_response_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_DISCONNECT_INTERRUPT_RESPONSE)

Definition at line 68 of file Wii.h.

#define l2cap_connection_request_control_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_CONTROL_REQUEST)

Definition at line 69 of file Wii.h.

#define l2cap_connection_request_interrupt_flag   (l2cap_event_flag & L2CAP_FLAG_CONNECTION_INTERRUPT_REQUEST)

Definition at line 70 of file Wii.h.

#define WII_FLAG_MOTION_PLUS_CONNECTED   0x400

Definition at line 73 of file Wii.h.

#define WII_FLAG_NUNCHUCK_CONNECTED   0x800

Definition at line 74 of file Wii.h.

#define motion_plus_connected_flag   (l2cap_event_flag & WII_FLAG_MOTION_PLUS_CONNECTED)

Definition at line 76 of file Wii.h.

#define nunchuck_connected_flag   (l2cap_event_flag & WII_FLAG_NUNCHUCK_CONNECTED)

Definition at line 77 of file Wii.h.

Enumeration Type Documentation

enum Hat

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 80 of file Wii.h.