Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
hid-wiimote-ext.c File Reference
#include <linux/atomic.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include "hid-wiimote.h"

Go to the source code of this file.

Data Structures

struct  wiimote_ext
 

Enumerations

enum  wiiext_type { WIIEXT_NONE, WIIEXT_CLASSIC, WIIEXT_NUNCHUCK, WIIEXT_BALANCE_BOARD }
 
enum  wiiext_keys {
  WIIEXT_KEY_C, WIIEXT_KEY_Z, WIIEXT_KEY_A, WIIEXT_KEY_B,
  WIIEXT_KEY_X, WIIEXT_KEY_Y, WIIEXT_KEY_ZL, WIIEXT_KEY_ZR,
  WIIEXT_KEY_PLUS, WIIEXT_KEY_MINUS, WIIEXT_KEY_HOME, WIIEXT_KEY_LEFT,
  WIIEXT_KEY_RIGHT, WIIEXT_KEY_UP, WIIEXT_KEY_DOWN, WIIEXT_KEY_LT,
  WIIEXT_KEY_RT, WIIEXT_KEY_COUNT
}
 

Functions

void wiiext_event (struct wiimote_data *wdata, bool plugged)
 
bool wiiext_active (struct wiimote_data *wdata)
 
void wiiext_handle (struct wiimote_data *wdata, const __u8 *payload)
 
int wiiext_init (struct wiimote_data *wdata)
 
void wiiext_deinit (struct wiimote_data *wdata)
 

Enumeration Type Documentation

Enumerator:
WIIEXT_KEY_C 
WIIEXT_KEY_Z 
WIIEXT_KEY_A 
WIIEXT_KEY_B 
WIIEXT_KEY_X 
WIIEXT_KEY_Y 
WIIEXT_KEY_ZL 
WIIEXT_KEY_ZR 
WIIEXT_KEY_PLUS 
WIIEXT_KEY_MINUS 
WIIEXT_KEY_HOME 
WIIEXT_KEY_LEFT 
WIIEXT_KEY_RIGHT 
WIIEXT_KEY_UP 
WIIEXT_KEY_DOWN 
WIIEXT_KEY_LT 
WIIEXT_KEY_RT 
WIIEXT_KEY_COUNT 

Definition at line 41 of file hid-wiimote-ext.c.

Enumerator:
WIIEXT_NONE 
WIIEXT_CLASSIC 
WIIEXT_NUNCHUCK 
WIIEXT_BALANCE_BOARD 

Definition at line 34 of file hid-wiimote-ext.c.

Function Documentation

bool wiiext_active ( struct wiimote_data wdata)

Definition at line 270 of file hid-wiimote-ext.c.

void wiiext_deinit ( struct wiimote_data wdata)

Definition at line 823 of file hid-wiimote-ext.c.

void wiiext_event ( struct wiimote_data wdata,
bool  plugged 
)

Definition at line 243 of file hid-wiimote-ext.c.

void wiiext_handle ( struct wiimote_data wdata,
const __u8 payload 
)

Definition at line 603 of file hid-wiimote-ext.c.

int wiiext_init ( struct wiimote_data wdata)

Definition at line 710 of file hid-wiimote-ext.c.