uArm Protocol Arduino Sketch More...
Macros | |
#define | MAX_DATA_BYTES 64 |
#define | UARM_FIRMATA_MAJOR_VERSION 1 |
#define | UARM_FIRMATA_MINOR_VERSION 3 |
#define | UARM_FIRMATA_BUGFIX 2 |
#define | UARM_FIRMWARE_MAJOR_VERSION 1 |
#define | UARM_FIRMWARE_MINOR_VERSION 7 |
#define | UARM_FIRMWARE_BUGFIX 2 |
#define | START_SYSEX 0xF0 |
#define | END_SYSEX 0xF7 |
#define | UARM_CODE (0XAA) |
#define | READ_ANGLE (0X10) |
#define | WRITE_ANGLE (0X11) |
#define | READ_COORDS (0X12) |
#define | WRITE_COORDS (0X13) |
#define | READ_DIGITAL (0X14) |
#define | WRITE_DIGITAL (0X15) |
#define | READ_ANALOG (0X16) |
#define | WRITE_ANALOG (0X17) |
#define | READ_EEPROM (0X1A) |
#define | WRITE_EEPROM (0X1B) |
#define | SERVO_STATUS (0X1C) |
#define | PUMP_STATUS (0X1D) |
#define | WRITE_STRETCH (0X1E) |
#define | WRITE_LEFT_RIGHT_ANGLE (0X1F) |
#define | GRIPPER_STATUS (0X20) |
#define | READ_SERIAL_NUMBER (0x21) |
#define | WRITE_SERIAL_NUMBER (0x22) |
#define | REPORT_FIRMWARE_VERSION (0x23) |
#define | BUZZER_ALERT (0x24) |
#define | DATA_TYPE_BYTE 1 |
#define | DATA_TYPE_INTEGER 2 |
#define | DATA_TYPE_FLOAT 4 |
Functions | |
void | setup () |
void | loop () |
boolean | handleSysex (byte command, byte argc, byte *argv) |
void | processInput (void) |
void | parse (byte inputData) |
void | processSysexMessage (void) |
void | sendValueAsTwo7bitBytes (int value) |
void | sendFloatAsFour7bitBytes (float val) |
void | sendFloatAsThree7bitBytes (float val) |
void | sendIntegerAsThree7bitBytes (int val) |
Variables | |
boolean | parsingSysex |
byte | storedInputData [MAX_DATA_BYTES] |
int | sysexBytesRead |
Detailed Description
uArm Protocol Arduino Sketch
- Copyright
- (c) 2016 UFactory Team. All right reserved
Macro Definition Documentation
#define BUZZER_ALERT (0x24) |
- Examples:
- UArmProtocol.ino.
#define DATA_TYPE_BYTE 1 |
- Examples:
- UArmProtocol.ino.
#define DATA_TYPE_FLOAT 4 |
- Examples:
- UArmProtocol.ino.
#define DATA_TYPE_INTEGER 2 |
- Examples:
- UArmProtocol.ino.
#define END_SYSEX 0xF7 |
- Examples:
- UArmProtocol.ino.
#define GRIPPER_STATUS (0X20) |
- Examples:
- UArmProtocol.ino.
#define MAX_DATA_BYTES 64 |
- Examples:
- UArmProtocol.ino.
#define PUMP_STATUS (0X1D) |
- Examples:
- UArmProtocol.ino.
#define READ_ANALOG (0X16) |
- Examples:
- UArmProtocol.ino.
#define READ_ANGLE (0X10) |
- Examples:
- UArmProtocol.ino.
#define READ_COORDS (0X12) |
- Examples:
- UArmProtocol.ino.
#define READ_DIGITAL (0X14) |
- Examples:
- UArmProtocol.ino.
#define READ_EEPROM (0X1A) |
- Examples:
- UArmProtocol.ino.
#define READ_SERIAL_NUMBER (0x21) |
- Examples:
- UArmProtocol.ino.
#define REPORT_FIRMWARE_VERSION (0x23) |
- Examples:
- UArmProtocol.ino.
#define SERVO_STATUS (0X1C) |
- Examples:
- UArmProtocol.ino.
#define START_SYSEX 0xF0 |
- Examples:
- UArmProtocol.ino.
#define UARM_CODE (0XAA) |
- Examples:
- UArmProtocol.ino.
#define UARM_FIRMATA_BUGFIX 2 |
#define UARM_FIRMATA_MAJOR_VERSION 1 |
#define UARM_FIRMATA_MINOR_VERSION 3 |
#define UARM_FIRMWARE_BUGFIX 2 |
- Examples:
- UArmProtocol.ino.
#define UARM_FIRMWARE_MAJOR_VERSION 1 |
- Examples:
- UArmProtocol.ino.
#define UARM_FIRMWARE_MINOR_VERSION 7 |
- Examples:
- UArmProtocol.ino.
#define WRITE_ANALOG (0X17) |
- Examples:
- UArmProtocol.ino.
#define WRITE_ANGLE (0X11) |
- Examples:
- UArmProtocol.ino.
#define WRITE_COORDS (0X13) |
- Examples:
- UArmProtocol.ino.
#define WRITE_DIGITAL (0X15) |
- Examples:
- UArmProtocol.ino.
#define WRITE_EEPROM (0X1B) |
- Examples:
- UArmProtocol.ino.
#define WRITE_LEFT_RIGHT_ANGLE (0X1F) |
- Examples:
- UArmProtocol.ino.
#define WRITE_SERIAL_NUMBER (0x22) |
- Examples:
- UArmProtocol.ino.
#define WRITE_STRETCH (0X1E) |
- Examples:
- UArmProtocol.ino.
Function Documentation
boolean handleSysex | ( | byte | command, |
byte | argc, | ||
byte * | argv | ||
) |
- Examples:
- UArmProtocol.ino.
void loop | ( | ) |
- Examples:
- UArmProtocol.ino.
void parse | ( | byte | inputData | ) |
- Examples:
- UArmProtocol.ino.
void processInput | ( | void | ) |
- Examples:
- UArmProtocol.ino.
void processSysexMessage | ( | void | ) |
- Examples:
- UArmProtocol.ino.
void sendFloatAsFour7bitBytes | ( | float | val | ) |
- Examples:
- UArmProtocol.ino.
void sendFloatAsThree7bitBytes | ( | float | val | ) |
- Examples:
- UArmProtocol.ino.
void sendIntegerAsThree7bitBytes | ( | int | val | ) |
- Examples:
- UArmProtocol.ino.
void sendValueAsTwo7bitBytes | ( | int | value | ) |
- Examples:
- UArmProtocol.ino.
void setup | ( | ) |
- Examples:
- UArmProtocol.ino.
Variable Documentation
boolean parsingSysex |
- Examples:
- UArmProtocol.ino.
byte storedInputData[MAX_DATA_BYTES] |
- Examples:
- UArmProtocol.ino.
int sysexBytesRead |
- Examples:
- UArmProtocol.ino.