#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <usb.h>
#include "usbdrv.h"
Go to the source code of this file.
Functions | |
void | usage (char *name) |
Displays usage-information. | |
int | main (int argc, char **argv) |
Main function. |
Definition in file usb-servo.c.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Main function.
Initializes the USB-device, parses commandline-parameters and calls the functions that communicate with the device.
argc | Number of arguments. | |
argv | Arguments. |
Definition at line 39 of file usb-servo.c.
References dev_set(), dev_status(), dev_test(), handle, usage(), USBDEV_SHARED_PRODUCT, USBDEV_SHARED_VENDOR, and usbOpenDevice().
void usage | ( | char * | name | ) |
Displays usage-information.
This function is called if the parameters cannot be parsed.
name | The name of this application. |
Definition at line 23 of file usb-servo.c.
Referenced by main().