BULK.write

Name
BULK.write

Description
It writes a character string or array on the USB line towards a PC. It calls the function BULK.puts.

Syntax

 * buffer: Character chain to be sent through USB.
 * Type: Either a string, either a char array.


 * length: Length of string or array to transmit.
 * Type: unsigned byte


 * Output: Function returns the number of bytes succesfully sent to USB.
 * Type: unsigned byte

Comments
See also interesting USB interfacing examples at section Category:09._Interfacing.