wiiuse
Functions
Internal: Wii Balance Board

Functions

int wii_board_handshake (struct wiimote_t *wm, struct wii_board_t *wb, byte *data, uint16_t len)
 Handle the handshake data from the wiiboard. More...
 
void wii_board_disconnected (struct wii_board_t *wb)
 The wii board disconnected. More...
 
void wii_board_event (struct wii_board_t *wb, byte *msg)
 Handle wii board event. More...
 

Detailed Description

Function Documentation

◆ wii_board_disconnected()

void wii_board_disconnected ( struct wii_board_t wb)

The wii board disconnected.

Parameters
ccA pointer to a wii_board_t structure.

◆ wii_board_event()

void wii_board_event ( struct wii_board_t wb,
byte *  msg 
)

Handle wii board event.

Parameters
wbA pointer to a wii_board_t structure.
msgThe message specified in the event packet.

◆ wii_board_handshake()

int wii_board_handshake ( struct wiimote_t wm,
struct wii_board_t wb,
byte *  data,
uint16_t  len 
)

Handle the handshake data from the wiiboard.

Parameters
wbA pointer to a wii_board_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.