wiiuse
Macros | Functions
tatacon.c File Reference

tatacon expansion device. More...

#include "tatacon.h"
#include "events.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for tatacon.c:

Macros

#define HANDSHAKE_BYTES_USED   14
 Handle the handshake data from the tatacon. More...
 

Functions

int tatacon_handshake (struct wiimote_t *wm, struct tatacon_t *tatacon, byte *data, unsigned short len)
 
void tatacon_disconnected (struct tatacon_t *tatacon)
 The tatacon disconnected. More...
 
void tatacon_event (struct tatacon_t *tatacon, byte *msg)
 Handle tatacon event. More...
 
void tatacon_pressed_buttons (struct tatacon_t *tatacon, byte now)
 Find what buttons are pressed. More...
 

Detailed Description

tatacon expansion device.

Macro Definition Documentation

◆ HANDSHAKE_BYTES_USED

#define HANDSHAKE_BYTES_USED   14

Handle the handshake data from the tatacon.

Parameters
tataconA pointer to a tatacon_t structure.
dataThe data read in from the device.
lenThe length of the data block, in bytes.
Returns
Returns 1 if handshake was successful, 0 if not.