Committer:
deoryp
Date:
Fri Apr 02 23:51:11 2010 +0000
Revision:
0:459be9e7bfe6

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
deoryp 0:459be9e7bfe6 1 /*
deoryp 0:459be9e7bfe6 2 ax12.h - arbotiX Library for AX-12 Servos
deoryp 0:459be9e7bfe6 3 Copyright (c) 2008,2009 Michael E. Ferguson. All right reserved.
deoryp 0:459be9e7bfe6 4 Modifed by Scott Nichols, 2010
deoryp 0:459be9e7bfe6 5
deoryp 0:459be9e7bfe6 6 This library is free software; you can redistribute it and/or
deoryp 0:459be9e7bfe6 7 modify it under the terms of the GNU Lesser General Public
deoryp 0:459be9e7bfe6 8 License as published by the Free Software Foundation; either
deoryp 0:459be9e7bfe6 9 version 2.1 of the License, or (at your option) any later version.
deoryp 0:459be9e7bfe6 10
deoryp 0:459be9e7bfe6 11 This library is distributed in the hope that it will be useful,
deoryp 0:459be9e7bfe6 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
deoryp 0:459be9e7bfe6 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
deoryp 0:459be9e7bfe6 14 Lesser General Public License for more details.
deoryp 0:459be9e7bfe6 15
deoryp 0:459be9e7bfe6 16 You should have received a copy of the GNU Lesser General Public
deoryp 0:459be9e7bfe6 17 License along with this library; if not, write to the Free Software
deoryp 0:459be9e7bfe6 18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
deoryp 0:459be9e7bfe6 19 */
deoryp 0:459be9e7bfe6 20
deoryp 0:459be9e7bfe6 21 #ifndef __ax12_defines_h
deoryp 0:459be9e7bfe6 22 #define __ax12_defines_h
deoryp 0:459be9e7bfe6 23
deoryp 0:459be9e7bfe6 24 /** EEPROM AREA **/
deoryp 0:459be9e7bfe6 25 #define AX_MODEL_NUMBER_L 0
deoryp 0:459be9e7bfe6 26 #define AX_MODEL_NUMBER_H 1
deoryp 0:459be9e7bfe6 27 #define AX_VERSION 2
deoryp 0:459be9e7bfe6 28 #define AX_ID 3
deoryp 0:459be9e7bfe6 29 #define AX_BAUD_RATE 4
deoryp 0:459be9e7bfe6 30 #define AX_RETURN_DELAY_TIME 5
deoryp 0:459be9e7bfe6 31 #define AX_CW_ANGLE_LIMIT_L 6
deoryp 0:459be9e7bfe6 32 #define AX_CW_ANGLE_LIMIT_H 7
deoryp 0:459be9e7bfe6 33 #define AX_CCW_ANGLE_LIMIT_L 8
deoryp 0:459be9e7bfe6 34 #define AX_CCW_ANGLE_LIMIT_H 9
deoryp 0:459be9e7bfe6 35 #define AX_SYSTEM_DATA2 10
deoryp 0:459be9e7bfe6 36 #define AX_LIMIT_TEMPERATURE 11
deoryp 0:459be9e7bfe6 37 #define AX_DOWN_LIMIT_VOLTAGE 12
deoryp 0:459be9e7bfe6 38 #define AX_UP_LIMIT_VOLTAGE 13
deoryp 0:459be9e7bfe6 39 #define AX_MAX_TORQUE_L 14
deoryp 0:459be9e7bfe6 40 #define AX_MAX_TORQUE_H 15
deoryp 0:459be9e7bfe6 41 #define AX_RETURN_LEVEL 16
deoryp 0:459be9e7bfe6 42 #define AX_ALARM_LED 17
deoryp 0:459be9e7bfe6 43 #define AX_ALARM_SHUTDOWN 18
deoryp 0:459be9e7bfe6 44 #define AX_OPERATING_MODE 19
deoryp 0:459be9e7bfe6 45 #define AX_DOWN_CALIBRATION_L 20
deoryp 0:459be9e7bfe6 46 #define AX_DOWN_CALIBRATION_H 21
deoryp 0:459be9e7bfe6 47 #define AX_UP_CALIBRATION_L 22
deoryp 0:459be9e7bfe6 48 #define AX_UP_CALIBRATION_H 23
deoryp 0:459be9e7bfe6 49 /** RAM AREA **/
deoryp 0:459be9e7bfe6 50 #define AX_TORQUE_ENABLE 24
deoryp 0:459be9e7bfe6 51 #define AX_LED 25
deoryp 0:459be9e7bfe6 52 #define AX_CW_COMPLIANCE_MARGIN 26
deoryp 0:459be9e7bfe6 53 #define AX_CCW_COMPLIANCE_MARGIN 27
deoryp 0:459be9e7bfe6 54 #define AX_CW_COMPLIANCE_SLOPE 28
deoryp 0:459be9e7bfe6 55 #define AX_CCW_COMPLIANCE_SLOPE 29
deoryp 0:459be9e7bfe6 56 #define AX_GOAL_POSITION_L 30
deoryp 0:459be9e7bfe6 57 #define AX_GOAL_POSITION_H 31
deoryp 0:459be9e7bfe6 58 #define AX_GOAL_SPEED_L 32
deoryp 0:459be9e7bfe6 59 #define AX_GOAL_SPEED_H 33
deoryp 0:459be9e7bfe6 60 #define AX_TORQUE_LIMIT_L 34
deoryp 0:459be9e7bfe6 61 #define AX_TORQUE_LIMIT_H 35
deoryp 0:459be9e7bfe6 62 #define AX_PRESENT_POSITION_L 36
deoryp 0:459be9e7bfe6 63 #define AX_PRESENT_POSITION_H 37
deoryp 0:459be9e7bfe6 64 #define AX_PRESENT_SPEED_L 38
deoryp 0:459be9e7bfe6 65 #define AX_PRESENT_SPEED_H 39
deoryp 0:459be9e7bfe6 66 #define AX_PRESENT_LOAD_L 40
deoryp 0:459be9e7bfe6 67 #define AX_PRESENT_LOAD_H 41
deoryp 0:459be9e7bfe6 68 #define AX_PRESENT_VOLTAGE 42
deoryp 0:459be9e7bfe6 69 #define AX_PRESENT_TEMPERATURE 43
deoryp 0:459be9e7bfe6 70 #define AX_REGISTERED_INSTRUCTION 44
deoryp 0:459be9e7bfe6 71 #define AX_PAUSE_TIME 45
deoryp 0:459be9e7bfe6 72 #define AX_MOVING 46
deoryp 0:459be9e7bfe6 73 #define AX_LOCK 47
deoryp 0:459be9e7bfe6 74 #define AX_PUNCH_L 48
deoryp 0:459be9e7bfe6 75 #define AX_PUNCH_H 49
deoryp 0:459be9e7bfe6 76 /** Status Return Levels **/
deoryp 0:459be9e7bfe6 77 #define AX_RETURN_NONE 0
deoryp 0:459be9e7bfe6 78 #define AX_RETURN_READ 1
deoryp 0:459be9e7bfe6 79 #define AX_RETURN_ALL 2
deoryp 0:459be9e7bfe6 80 /** Instruction Set **/
deoryp 0:459be9e7bfe6 81 #define AX_PING 1
deoryp 0:459be9e7bfe6 82 #define AX_READ_DATA 2
deoryp 0:459be9e7bfe6 83 #define AX_WRITE_DATA 3
deoryp 0:459be9e7bfe6 84 #define AX_REG_WRITE 4
deoryp 0:459be9e7bfe6 85 #define AX_ACTION 5
deoryp 0:459be9e7bfe6 86 #define AX_RESET 6
deoryp 0:459be9e7bfe6 87 #define AX_SYNC_WRITE 131
deoryp 0:459be9e7bfe6 88
deoryp 0:459be9e7bfe6 89 #endif