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 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)
 
#define PAIR   1
 

Enumerations

enum  Hat { HatX = 0, HatY = 1 }
 

Macro Definition Documentation

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

Enumeration Type Documentation

enum Hat
Enumerator
HatX 
HatY