Defines | Functions
sixpair.c File Reference
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <usb.h>
Include dependency graph for sixpair.c:

Go to the source code of this file.

Defines

#define PRODUCT_NAVIGATION   0x042f
#define PRODUCT_SIXAXIS   0x0268
#define USB_DIR_IN   0x80
#define USB_DIR_OUT   0
#define VENDOR   0x054c

Functions

void fatal (char *msg)
int main (int argc, char *argv[])
void process_device (int argc, char **argv, struct usb_device *dev, struct usb_config_descriptor *cfg, int itfnum)
void set_master (usb_dev_handle *devh, int itfnum, int mac[6])
void show_master (usb_dev_handle *devh, int itfnum)

Define Documentation

#define PRODUCT_NAVIGATION   0x042f

Definition at line 37 of file sixpair.c.

#define PRODUCT_SIXAXIS   0x0268

Definition at line 36 of file sixpair.c.

#define USB_DIR_IN   0x80

Definition at line 39 of file sixpair.c.

#define USB_DIR_OUT   0

Definition at line 40 of file sixpair.c.

#define VENDOR   0x054c

Definition at line 35 of file sixpair.c.


Function Documentation

void fatal ( char *  msg)

Definition at line 42 of file sixpair.c.

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

Definition at line 106 of file sixpair.c.

void process_device ( int  argc,
char **  argv,
struct usb_device *  dev,
struct usb_config_descriptor *  cfg,
int  itfnum 
)

Definition at line 68 of file sixpair.c.

void set_master ( usb_dev_handle *  devh,
int  itfnum,
int  mac[6] 
)

Definition at line 55 of file sixpair.c.

void show_master ( usb_dev_handle *  devh,
int  itfnum 
)

Definition at line 44 of file sixpair.c.



grizzly_teleop
Author(s): Ryan Gariepy
autogenerated on Thu Jun 6 2019 21:44:09