beautypg.com

Communication on the avr side – Pololu Orangutan SVP User Manual

Page 29

background image

// Set the DTR line to 0.

port.DtrEnable = false;

// Disconnect from the port so that other programs can use it.

port.Close();

Communication on the AVR side

Writing programs for the USB Communications port on the AVR side is supported by two different sections of
the Pololu AVR C/C++ Library.

The SVP-specific functions section of the library provides the rts_enabled() and dtr_enabled() functions which
return the states of those control lines. Complete documentation of the SVP-specific functions can be found
in

Section 13

of the

Pololu AVR Library Command Reference

[http://www.pololu.com/docs/0J18]

. A high level

overview can be found in

Section 3.j

of the

Pololu AVR C/C++ Library User’s Guide

[http://www.pololu.com/docs/

0J20]

.

The Serial Port Communication section of the library provides many functions for serial communication,
all of which will work for the USB Communications port. Complete documentation of serial communication
functions can be found in

Section 10

of the

Pololu AVR Library Command Reference

[http://www.pololu.com/docs/

0J18]

. A high level overview can be found in

Section 3.h

of the

Pololu AVR C/C++ Library User’s Guide

[http://www.pololu.com/docs/0J20]

.

Pololu Orangutan SVP User's Guide

© 2001–2012 Pololu Corporation

8. Using the USB Communication Port

Page 29 of 37