COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Fai.hh>
Classes | |
struct | analog_pin_t |
class | Descriptor |
struct | digital_pin_t |
struct | digital_pins_t |
struct | sample_request_t |
struct | set_mode_t |
Public Types | |
enum | { MASK_ATTR = 0x0f, COUNT0_ATTR = 0x00, COUNT4_MASK = 0x07, COUNT8_ATTR = 0x08, COUNT16_ATTR = 0x09, END_SEQUENCE_ATTR = 0x0f } |
enum | { MASK_TYPE = 0xf0, UINT8_TYPE = 0x00, UINT16_TYPE = 0x10, UINT32_TYPE = 0x20, UINT64_TYPE = 0x30, USER8_DESC_START = 0x40, USER8_DESC_END = USER8_DESC_START | END_SEQUENCE_ATTR, USER16_DESC_START = 0x50, USER16_DESC_END = USER16_DESC_START | END_SEQUENCE_ATTR, USER8_TYPE = 0x60, USER16_TYPE = 0x70, INT8_TYPE = 0x80, INT16_TYPE = 0x90, INT32_TYPE = 0xa0, INT64_TYPE = 0xb0, FLOAT16_TYPE = 0xc0, FLOAT32_TYPE = 0xd0, FLOAT64_TYPE = 0xe0, FLOAT80_TYPE = 0xf0 } |
enum | { LITTLE_ENDIAN = 0, BIG_ENDIAN = 1 } |
Public Member Functions | |
Fai (IOStream::Device *dev=NULL) | |
void | begin () |
void | write (uint32_t mask) |
void | write (Pin *pin) |
void | write (AnalogPin *pin) |
void | write (Event *event) |
void | set (IOStream::Device *dev) |
void | write (char *s) |
void | write (str_P s) |
void | write (uint8_t value) |
void | write (uint8_t *buf, uint16_t count) |
void | write (uint16_t value) |
void | write (uint16_t *buf, uint16_t count) |
void | write (uint32_t *buf, uint16_t count) |
void | write (uint64_t value) |
void | write (uint64_t *buf, uint16_t count) |
void | write (int8_t value) |
void | write (int8_t *buf, uint16_t count) |
void | write (int16_t value) |
void | write (int16_t *buf, uint16_t count) |
void | write (int32_t value) |
void | write (int32_t *buf, uint16_t count) |
void | write (int64_t value) |
void | write (int64_t *buf, uint16_t count) |
void | write (float value) |
void | write (float *buf, uint16_t count) |
void | write (const Descriptor::user_t *desc) |
void | write (const Descriptor::user_t *desc, void *buf, uint16_t count) |
Protected Member Functions | |
void | write (uint8_t type, uint16_t count) |
Protected Attributes | |
IOStream::Device * | m_dev |
The Cosa Ciao data stream of Arduino status and commands (Cosa fai).
|
inherited |
|
inherited |
Data type tag: Predefined data types and tags for extension. NB: Arduino/AVR does not implement FLOAT16/64/80.
|
inline |
void Fai::begin | ( | ) |
|
inlineinherited |
void Fai::write | ( | uint32_t | mask | ) |
void Fai::write | ( | Pin * | pin | ) |
void Fai::write | ( | AnalogPin * | pin | ) |
|
inline |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |