Download Pololu - Pololu AVR Library Command Reference
Transcript
Pololu AVR Library Command Reference © 2001–2009 Pololu Corporation 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. 9. Orangutan Serial Port Communication Page 24 of 35