wiiuse
Functions
io.c File Reference

Handles device I/O (non-OS specific). More...

#include "io.h"
#include "events.h"
#include "ir.h"
#include "wiiuse_internal.h"
#include "os.h"
#include <stdlib.h>
Include dependency graph for io.c:

Functions

int wiiuse_find (struct wiimote_t **wm, int max_wiimotes, int timeout)
 Find a wiimote or wiimotes. More...
 
int wiiuse_connect (struct wiimote_t **wm, int wiimotes)
 Connect to a wiimote or wiimotes once an address is known. More...
 
void wiiuse_disconnect (struct wiimote_t *wm)
 Disconnect a wiimote. More...
 
int wiiuse_wait_report (struct wiimote_t *wm, int report, byte *buffer, int bufferLength, unsigned long timeout_ms)
 Wait until specified report arrives and return it. More...
 
void wiiuse_read_data_sync (struct wiimote_t *wm, byte memory, unsigned addr, unsigned short size, byte *data)
 Read memory/register data synchronously. More...
 
void wiiuse_handshake (struct wiimote_t *wm, byte *data, uint16_t len)
 Get initialization data from the wiimote. More...
 

Detailed Description

Handles device I/O (non-OS specific).