VENDOR_RQ_WRITE_BUFFER problem

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
rooot

VENDOR_RQ_WRITE_BUFFER problem

Post by rooot » Sat Sep 27, 2008 2:45 pm

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?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Thu Oct 09, 2008 4:36 pm

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.

Post Reply