tools/applications/WiiDeviceServer/WiiDeviceServerOld.cpp File Reference

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cwiid.h>
#include "DeviceStateSender.h"

Include dependency graph for WiiDeviceServerOld.cpp:


Classes

struct  Point

Defines

#define toggle_bit(bf, b)
#define NUM_BUTTONS   0
#define NUM_AXIS   0
#define NUM_SENSORS   1
#define MAX_BUFFER_SIZE   (4+1+1+(NUM_BUTTONS+7)/8+1+(4*NUM_AXIS)+1+(7*4*NUM_SENSORS))
#define CLIENTPORT   8082
#define CLIENTCHANNEL   255

Functions

void set_led_state (cwiid_wiimote_t *wiimote, unsigned char led_state)
void set_rpt_mode (cwiid_wiimote_t *wiimote, unsigned char rpt_mode)
void print_state (struct cwiid_state *state)
void calc (struct Point *firstPoint, struct Point *secondPoint)
void set_num_leds (cwiid_wiimote_t *wiimote, int cnt)
int initNetwork (char *hostname, int port)
void err (cwiid_wiimote_t *wiimote, const char *s, va_list ap)
int main (int argc, char *argv[])
void cwiid_callback (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp)

Variables

cwiid_mesg_callback_t cwiid_callback
DeviceState deviceState
DeviceStateSender sender
cwiid_err_t err

Define Documentation

#define CLIENTCHANNEL   255

#define CLIENTPORT   8082

#define MAX_BUFFER_SIZE   (4+1+1+(NUM_BUTTONS+7)/8+1+(4*NUM_AXIS)+1+(7*4*NUM_SENSORS))

#define NUM_AXIS   0

#define NUM_BUTTONS   0

#define NUM_SENSORS   1

#define toggle_bit ( bf,
 ) 

Value:

(bf) = ((bf) & b)               \
               ? ((bf) & ~(b))  \
               : ((bf) | (b))


Function Documentation

void calc ( struct Point firstPoint,
struct Point secondPoint 
)

void cwiid_callback ( cwiid_wiimote_t *  wiimote,
int  mesg_count,
union cwiid_mesg  mesg[],
struct timespec *  timestamp 
)

void err ( cwiid_wiimote_t *  wiimote,
const char *  s,
va_list  ap 
)

int initNetwork ( char *  hostname,
int  port 
)

int main ( int  argc,
char *  argv[] 
)

void print_state ( struct cwiid_state *  state  ) 

void set_led_state ( cwiid_wiimote_t *  wiimote,
unsigned char  led_state 
)

void set_num_leds ( cwiid_wiimote_t *  wiimote,
int  cnt 
)

void set_rpt_mode ( cwiid_wiimote_t *  wiimote,
unsigned char  rpt_mode 
)


Variable Documentation

cwiid_mesg_callback_t cwiid_callback

cwiid_err_t err


Generated on Wed Oct 20 16:11:49 2010 for inVRs by doxygen 1.5.8