commandline/usb-servo.c File Reference

Commandline-tool for the USB-Servo. More...

#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.


Detailed Description

Commandline-tool for the USB-Servo.

Author:
Ronald Schaten
Version:
Id
usb-servo.c,v 1.1 2006/10/28 12:40:42 rschaten Exp
License: See documentation.

Definition in file usb-servo.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Main function.

Initializes the USB-device, parses commandline-parameters and calls the functions that communicate with the device.

Parameters:
argc Number of arguments.
argv Arguments.
Returns:
Error code.

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.

Parameters:
name The name of this application.

Definition at line 23 of file usb-servo.c.

Referenced by main().


Generated on Sat Oct 28 14:48:23 2006 for USB-Servo by  doxygen 1.4.7