DeskLib 2.90a:USB.h


Contents


Introduction and Overview

Warning: This API has not yet been implemented. Do not use.

Low level DeviceFS functions

See: http://www.iyonix.com/32bit/USBDevFS.shtml


Functions


devicefs_request

void devicefs_request(const char *name, devicefs_bmrequest *bmrequest, void *buffer, unsigned int flags, void *callback, int pword);

devicefs_checkspace

void devicefs_checkspace(const char *name, int handle, unsigned int *available, unsigned int *free);

devicefs_handles

void devicefs_handles(const char *name, int handle, unsigned int *buffer, unsigned int *stream);

devicefs_location

void devicefs_location(const char *name, usb_location *location);

Macros


devicefs_call_RETURNPOLL

#define devicefs_call_RETURNPOLL     1

devicefs_call_CALLCOMPLETE

#define devicefs_call_CALLCOMPLETE   2

Types


devicefs_request

typedef enum
{
devicefs_SENDREQUST = 0x8000000,
devicefs_FREESPACE = 0x8000002,
devicefs_HANDLE = 0x8000003
} devicefs_request;

devicefs_bmrequest

typedef struct
{
unsigned char request_type;
unsigned char request;
unsigned short wvalue;
unsigned short windex;
unsigned short wlength;

} devicefs_bmrequest;

usb_location

typedef struct
{
unsigned char bus;
unsigned char port1;
unsigned char port2;
unsigned char port3;
unsigned char port5;
unsigned char port6;

} usb_location;