ArdunityApp
#include "Arduino.h"
#include "ArdunityController.h"
class ArdunityAppClass
{
public:
ArdunityAppClass();
// for application
void begin();
void begin(long speed);
void begin(Stream *s);
void resolution(int pwm, int adc);
void timeout(unsigned long millisec);
void process(void);
void process(Stream *s);
void attachController(ArdunityController* controller);
void detachController(ArdunityController* controller);
//----------------------------------------------------------------------------
// for controller
int maxPWM;
int maxADC;
void select(byte id);
void flush();
boolean push(BOOL value);
boolean push(UINT8 value);
boolean push(INT8 value);
boolean push(UINT16 value);
boolean push(INT16 value);
boolean push(UINT32 value);
boolean push(INT32 value);
boolean push(FLOAT32 value);
boolean push(STRING value);
boolean pop(BOOL* value);
boolean pop(UINT8* value);
boolean pop(INT8* value);
boolean pop(UINT16* value);
boolean pop(INT16* value);
boolean pop(UINT32* value);
boolean pop(INT32* value);
boolean pop(FLOAT32* value);
boolean pop(STRING value, int maxSize);
//----------------------------------------------------------------------------
};
extern ArdunityAppClass ArdunityApp;