CMUcam4 Arduino Interface Library
For Firmware Versions 1.00 - 1.03
Application Programmable Interface Online Documentation
|
This is a hardware abstraction layer for the CMUcam4 class. More...
#include <CMUcom4.h>
Public Member Functions | |
CMUcom4 () | |
Initialize the CMUcom4 object to use the default Serial port. | |
CMUcom4 (int port) | |
Initialize the CMUcom4 object to use the port Serial port. | |
void | begin (unsigned long baud) |
Arduino Serial.begin() wrapper. | |
void | end () |
Arduino Serial.end() wrapper. | |
int | read () |
Arduino Serial.read() wrapper. | |
size_t | write (const uint8_t *buffer, size_t size) |
Arduino Serial.write() wrapper. | |
size_t | write (const char *str) |
Arduino Serial.write() wrapper. | |
size_t | write (uint8_t c) |
Arduino Serial.write() wrapper. | |
int | available () |
Arduino Serial.available() wrapper. | |
void | flush () |
Arduino Serial.flush() wrapper. | |
int | peek () |
Arduino Serial.peek() wrapper. | |
void | delayMilliseconds (unsigned long ms) |
Arduino delay() wrapper. | |
unsigned long | milliseconds () |
Arduino millis() wrapper. |
This is a hardware abstraction layer for the CMUcam4 class.
The CMUcom4 class targets the Ardunio prototyping platform by default.
CMUcom4 | ( | int | port | ) |
Initialize the CMUcom4 object to use the port
Serial port.
[in] | port | The port. |
Definition at line 31 of file CMUcom4.cpp.
void begin | ( | unsigned long | baud | ) |
Arduino Serial.begin() wrapper.
[in] | baud | In bits per second. |
Definition at line 40 of file CMUcom4.cpp.
void end | ( | ) |
Arduino Serial.end() wrapper.
Definition at line 58 of file CMUcom4.cpp.
int read | ( | ) |
Arduino Serial.read() wrapper.
Definition at line 76 of file CMUcom4.cpp.
size_t write | ( | const uint8_t * | buffer, |
size_t | size | ||
) |
Arduino Serial.write() wrapper.
[in] | buffer | An array to send as a series of bytes. |
[in] | size | The size of the buffer. |
Definition at line 127 of file CMUcom4.cpp.
size_t write | ( | const char * | str | ) |
Arduino Serial.write() wrapper.
[in] | str | A string to send as a series of bytes. |
Definition at line 110 of file CMUcom4.cpp.
size_t write | ( | uint8_t | c | ) |
Arduino Serial.write() wrapper.
[in] | c | A character to send as a single byte. |
Definition at line 93 of file CMUcom4.cpp.
int available | ( | ) |
Arduino Serial.available() wrapper.
Definition at line 144 of file CMUcom4.cpp.
void flush | ( | ) |
Arduino Serial.flush() wrapper.
Definition at line 161 of file CMUcom4.cpp.
int peek | ( | ) |
Arduino Serial.peek() wrapper.
Definition at line 178 of file CMUcom4.cpp.
void delayMilliseconds | ( | unsigned long | ms | ) |
Arduino delay() wrapper.
[in] | ms | The number of milliseconds to pause for. |
Definition at line 195 of file CMUcom4.cpp.
unsigned long milliseconds | ( | ) |
Arduino millis() wrapper.
Definition at line 200 of file CMUcom4.cpp.