src/io.h File Reference

Handles device I/O. More...

#include "wiiuse_internal.h"

Include dependency graph for io.h:

This graph shows which files directly or indirectly include this file:


void  wiiuse_handshake (struct wiimote_t *wm, byte *data, unsigned short len)
  Get initialization data from the wiimote.
int  wiiuse_io_read (struct wiimote_t *wm)
int  wiiuse_io_write (struct wiimote_t *wm, byte *buf, int len)

Detailed Description

Handles device I/O.

Function Documentation

void wiiuse_handshake ( struct wiimote_t wm,
byte *  data,
unsigned short  len  

Get initialization data from the wiimote.

wm  Pointer to a wiimote_t structure.
data  unused
len  unused
When first called for a wiimote_t structure, a request is sent to the wiimote for initialization information. This includes factory set accelerometer data. The handshake will be concluded when the wiimote responds with this data.

Generated on Wed Apr 2 19:30:09 2008 for wiiuse by  doxygen 1.5.4