| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| #ifndef FirmataDefines_h |
| #define FirmataDefines_h |
|
|
| #include "FirmataConstants.h" |
|
|
| |
| |
| |
| |
| #define FIRMATA_FIRMWARE_MAJOR_VERSION firmata::FIRMWARE_MAJOR_VERSION |
| #define FIRMATA_FIRMWARE_MINOR_VERSION firmata::FIRMWARE_MINOR_VERSION |
| #define FIRMATA_FIRMWARE_BUGFIX_VERSION firmata::FIRMWARE_BUGFIX_VERSION |
|
|
| |
| |
| |
| |
| #define FIRMATA_PROTOCOL_MAJOR_VERSION firmata::PROTOCOL_MAJOR_VERSION |
| #define FIRMATA_PROTOCOL_MINOR_VERSION firmata::PROTOCOL_MINOR_VERSION |
| #define FIRMATA_PROTOCOL_BUGFIX_VERSION firmata::PROTOCOL_BUGFIX_VERSION |
|
|
| #ifdef MAX_DATA_BYTES |
| #undef MAX_DATA_BYTES |
| #endif |
| #define MAX_DATA_BYTES firmata::MAX_DATA_BYTES |
|
|
| |
|
|
| #ifdef DIGITAL_MESSAGE |
| #undef DIGITAL_MESSAGE |
| #endif |
| #define DIGITAL_MESSAGE firmata::DIGITAL_MESSAGE |
|
|
| #ifdef ANALOG_MESSAGE |
| #undef ANALOG_MESSAGE |
| #endif |
| #define ANALOG_MESSAGE firmata::ANALOG_MESSAGE |
|
|
| #ifdef REPORT_ANALOG |
| #undef REPORT_ANALOG |
| #endif |
| #define REPORT_ANALOG firmata::REPORT_ANALOG |
|
|
| #ifdef REPORT_DIGITAL |
| #undef REPORT_DIGITAL |
| #endif |
| #define REPORT_DIGITAL firmata::REPORT_DIGITAL |
|
|
| |
|
|
| #ifdef SET_PIN_MODE |
| #undef SET_PIN_MODE |
| #endif |
| #define SET_PIN_MODE firmata::SET_PIN_MODE |
|
|
| #ifdef SET_DIGITAL_PIN_VALUE |
| #undef SET_DIGITAL_PIN_VALUE |
| #endif |
| #define SET_DIGITAL_PIN_VALUE firmata::SET_DIGITAL_PIN_VALUE |
|
|
| |
|
|
| #ifdef REPORT_VERSION |
| #undef REPORT_VERSION |
| #endif |
| #define REPORT_VERSION firmata::REPORT_VERSION |
|
|
| #ifdef SYSTEM_RESET |
| #undef SYSTEM_RESET |
| #endif |
| #define SYSTEM_RESET firmata::SYSTEM_RESET |
|
|
| |
|
|
| #ifdef START_SYSEX |
| #undef START_SYSEX |
| #endif |
| #define START_SYSEX firmata::START_SYSEX |
|
|
| #ifdef END_SYSEX |
| #undef END_SYSEX |
| #endif |
| #define END_SYSEX firmata::END_SYSEX |
|
|
| |
| |
|
|
| #ifdef SERIAL_MESSAGE |
| #undef SERIAL_MESSAGE |
| #endif |
| #define SERIAL_MESSAGE firmata::SERIAL_DATA |
|
|
| #ifdef ENCODER_DATA |
| #undef ENCODER_DATA |
| #endif |
| #define ENCODER_DATA firmata::ENCODER_DATA |
|
|
| #ifdef SERVO_CONFIG |
| #undef SERVO_CONFIG |
| #endif |
| #define SERVO_CONFIG firmata::SERVO_CONFIG |
|
|
| #ifdef STRING_DATA |
| #undef STRING_DATA |
| #endif |
| #define STRING_DATA firmata::STRING_DATA |
|
|
| #ifdef STEPPER_DATA |
| #undef STEPPER_DATA |
| #endif |
| #define STEPPER_DATA firmata::STEPPER_DATA |
|
|
| #ifdef ONEWIRE_DATA |
| #undef ONEWIRE_DATA |
| #endif |
| #define ONEWIRE_DATA firmata::ONEWIRE_DATA |
|
|
| #ifdef SHIFT_DATA |
| #undef SHIFT_DATA |
| #endif |
| #define SHIFT_DATA firmata::SHIFT_DATA |
|
|
| #ifdef I2C_REQUEST |
| #undef I2C_REQUEST |
| #endif |
| #define I2C_REQUEST firmata::I2C_REQUEST |
|
|
| #ifdef I2C_REPLY |
| #undef I2C_REPLY |
| #endif |
| #define I2C_REPLY firmata::I2C_REPLY |
|
|
| #ifdef I2C_CONFIG |
| #undef I2C_CONFIG |
| #endif |
| #define I2C_CONFIG firmata::I2C_CONFIG |
|
|
| #ifdef REPORT_FIRMWARE |
| #undef REPORT_FIRMWARE |
| #endif |
| #define REPORT_FIRMWARE firmata::REPORT_FIRMWARE |
|
|
| #ifdef EXTENDED_ANALOG |
| #undef EXTENDED_ANALOG |
| #endif |
| #define EXTENDED_ANALOG firmata::EXTENDED_ANALOG |
|
|
| #ifdef PIN_STATE_QUERY |
| #undef PIN_STATE_QUERY |
| #endif |
| #define PIN_STATE_QUERY firmata::PIN_STATE_QUERY |
|
|
| #ifdef PIN_STATE_RESPONSE |
| #undef PIN_STATE_RESPONSE |
| #endif |
| #define PIN_STATE_RESPONSE firmata::PIN_STATE_RESPONSE |
|
|
| #ifdef CAPABILITY_QUERY |
| #undef CAPABILITY_QUERY |
| #endif |
| #define CAPABILITY_QUERY firmata::CAPABILITY_QUERY |
|
|
| #ifdef CAPABILITY_RESPONSE |
| #undef CAPABILITY_RESPONSE |
| #endif |
| #define CAPABILITY_RESPONSE firmata::CAPABILITY_RESPONSE |
|
|
| #ifdef ANALOG_MAPPING_QUERY |
| #undef ANALOG_MAPPING_QUERY |
| #endif |
| #define ANALOG_MAPPING_QUERY firmata::ANALOG_MAPPING_QUERY |
|
|
| #ifdef ANALOG_MAPPING_RESPONSE |
| #undef ANALOG_MAPPING_RESPONSE |
| #endif |
| #define ANALOG_MAPPING_RESPONSE firmata::ANALOG_MAPPING_RESPONSE |
|
|
| #ifdef SAMPLING_INTERVAL |
| #undef SAMPLING_INTERVAL |
| #endif |
| #define SAMPLING_INTERVAL firmata::SAMPLING_INTERVAL |
|
|
| #ifdef SCHEDULER_DATA |
| #undef SCHEDULER_DATA |
| #endif |
| #define SCHEDULER_DATA firmata::SCHEDULER_DATA |
|
|
| #ifdef SYSEX_NON_REALTIME |
| #undef SYSEX_NON_REALTIME |
| #endif |
| #define SYSEX_NON_REALTIME firmata::SYSEX_NON_REALTIME |
|
|
| #ifdef SYSEX_REALTIME |
| #undef SYSEX_REALTIME |
| #endif |
| #define SYSEX_REALTIME firmata::SYSEX_REALTIME |
|
|
| |
|
|
| #ifdef PIN_MODE_INPUT |
| #undef PIN_MODE_INPUT |
| #endif |
| #define PIN_MODE_INPUT firmata::PIN_MODE_INPUT |
|
|
| #ifdef PIN_MODE_OUTPUT |
| #undef PIN_MODE_OUTPUT |
| #endif |
| #define PIN_MODE_OUTPUT firmata::PIN_MODE_OUTPUT |
|
|
| #ifdef PIN_MODE_ANALOG |
| #undef PIN_MODE_ANALOG |
| #endif |
| #define PIN_MODE_ANALOG firmata::PIN_MODE_ANALOG |
|
|
| #ifdef PIN_MODE_PWM |
| #undef PIN_MODE_PWM |
| #endif |
| #define PIN_MODE_PWM firmata::PIN_MODE_PWM |
|
|
| #ifdef PIN_MODE_SERVO |
| #undef PIN_MODE_SERVO |
| #endif |
| #define PIN_MODE_SERVO firmata::PIN_MODE_SERVO |
|
|
| #ifdef PIN_MODE_SHIFT |
| #undef PIN_MODE_SHIFT |
| #endif |
| #define PIN_MODE_SHIFT firmata::PIN_MODE_SHIFT |
|
|
| #ifdef PIN_MODE_I2C |
| #undef PIN_MODE_I2C |
| #endif |
| #define PIN_MODE_I2C firmata::PIN_MODE_I2C |
|
|
| #ifdef PIN_MODE_ONEWIRE |
| #undef PIN_MODE_ONEWIRE |
| #endif |
| #define PIN_MODE_ONEWIRE firmata::PIN_MODE_ONEWIRE |
|
|
| #ifdef PIN_MODE_STEPPER |
| #undef PIN_MODE_STEPPER |
| #endif |
| #define PIN_MODE_STEPPER firmata::PIN_MODE_STEPPER |
|
|
| #ifdef PIN_MODE_ENCODER |
| #undef PIN_MODE_ENCODER |
| #endif |
| #define PIN_MODE_ENCODER firmata::PIN_MODE_ENCODER |
|
|
| #ifdef PIN_MODE_SERIAL |
| #undef PIN_MODE_SERIAL |
| #endif |
| #define PIN_MODE_SERIAL firmata::PIN_MODE_SERIAL |
|
|
| #ifdef PIN_MODE_PULLUP |
| #undef PIN_MODE_PULLUP |
| #endif |
| #define PIN_MODE_PULLUP firmata::PIN_MODE_PULLUP |
|
|
| #ifdef PIN_MODE_IGNORE |
| #undef PIN_MODE_IGNORE |
| #endif |
| #define PIN_MODE_IGNORE firmata::PIN_MODE_IGNORE |
|
|
| #ifdef TOTAL_PIN_MODES |
| #undef TOTAL_PIN_MODES |
| #endif |
| #define TOTAL_PIN_MODES firmata::TOTAL_PIN_MODES |
|
|
| #endif |
|
|