Page 1 of 1

VENDOR_RQ_WRITE_BUFFER problem

Posted: Sat Sep 27, 2008 2:45 pm
by rooot
Hi,

I tried to use the example code from http://avrusb.wikidot.com/driver-api to "Sending data to the device". My Problem is, that i cannot compile the project. "VENDOR_RQ_WRITE_BUFFER" was not found.

i always get an error
../myUSBdev.c:27: error: 'VENDOR_RQ_WRITE_BUFFER' undeclared (first use in this function)

whats my failure?

Posted: Thu Oct 09, 2008 4:36 pm
by christian
This is example code only. When you write your own device, host and device must agree on numerical values for the requests. This define must be shared between host software and device so that both use the same numerical value.