AVR Library Command Reference
Table Of Contents
- Pololu AVR Library Command Reference
- 1. Introduction
- 2. Timing and Delays
- Reference
- 3. Orangutan Analog-to-Digital Conversion
- Reference
- 4. Orangutan Buzzer: Beeps and Music
- Reference
- 5. Orangutan LCD
- Reference
- 6. Orangutan LEDs
- Reference
- 7. Orangutan Motor Control
- Reference
- 8. Orangutan Pushbuttons
- Reference
- 9. Orangutan Serial Port Communication
- Reference
- 10. Orangutan System Resources
- 11. QTR Reflectance Sensors
- Reference
- 12. 3pi Robot Functions
- 13. Wheel Encoders
- Reference
static inline unsigned char OrangutanSerial::getSentBytes()
unsigned char serial_get_sent_bytes()
Gets the number of bytes that have been sent since send() was called.
static char OrangutanSerial::sendBufferEmpty()
char serial_send_buffer_empty()
True when the send buffer is empty; when there are no more bytes to send.
static void OrangutanSerial::setMode(unsigned char mode)
void serial_set_mode(unsigned char mode)
Sets the serial library to use either interrupts (with the argument SERIAL_AUTOMATIC; the default) or polling
(SERIAL_CHECK). If SERIAL_CHECK is selected, your code must call check() often to ensure reliable
reception and timely transmission of data.
static char OrangutanSerial::getMode(unsigned char mode)
char serial_get_mode()
Returns the current serial mode,
static void OrangutanSerial::check()
void serial_check()
Checks for any bytes to be received or transmitted and performs the required action. Call this function often when
in SERIAL_CHECK mode. In SERIAL_AUTOMATIC mode, you will not need to use this function.
Pololu AVR Library Command Reference © 2001–2009 Pololu Corporation
9. Orangutan Serial Port Communication Page 24 of 35










