>
>
>-----Original Message-----
>From: Brad Hards [mailto:[EMAIL PROTECTED]
>Sent: 27 July 2003 12:14
>To: McGivern, Damien; '[EMAIL PROTECTED]'
>Subject: Re: [linux-usb-devel] hiddev.c - hiddev_write
>
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Tue, 22 Jul 2003 00:32 am, McGivern, Damien wrote:
>> Is there a reason why this function has not been implemented?
>How would you implement it? What would the arguments be?
>
>Brad

Hi Brad,

 Not too sure right now how it would be implemented - this is related to the

'Simple write/read example' thread and was a possible solution to that
problem. Similar to the way windows implements it - every write is a command
which is 
made up of an unsigned char array which is pre formatted i.e. the first
element 
of the array being the report id.

This is something like what I'm after for sending the data.

...
fd = open("/dev/usb/hiddevN", O_RDWR);

unsigned char * data;

data[0] = 0x01;//reportID;

// set command
data[1] = 0x02;
data[2] = 0x30;
data[3] = 0x21;

write(fd, data, 4);
...


Damien


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to