commands.h File Reference
Go to the source code of this file.
|
Defines |
#define | MAX_PACKET_SIZE (13*8) |
#define | CMD_OK 0 |
#define | CMD_FAILED 2 |
#define | CMD_UNKNOWN 3 |
#define | CMD_DEBUG 8 |
#define | CMD_OPTION 10 |
#define | CMD_GET_VER 12 |
#define | CMD_GET_LAST_STATUS 13 |
#define | CMD_SET_BOOT 14 |
#define | CMD_SET_TARGET 30 |
#define | CMD_CONNECT 31 |
#define | CMD_RESET 33 |
#define | CMD_GET_STATUS 34 |
#define | CMD_READ_BD 35 |
#define | CMD_WRITE_BD 36 |
#define | CMD_HALT 39 |
#define | CMD_SET_SPEED 40 |
#define | CMD_READ_SPEED1 41 |
#define | CMD_GO1 42 |
#define | CMD_STEP1 44 |
#define | CMD_SET_SPEED1 46 |
#define | CMD_READ_8 50 |
#define | CMD_READ_16 51 |
#define | CMD_READ_REGS 53 |
#define | CMD_READ_BLOCK1 55 |
#define | CMD_WRITE_8 60 |
#define | CMD_WRITE_16 61 |
#define | CMD_WRITE_BLOCK1 65 |
#define | CMD_WRITE_REG_PC 80 |
#define | CMD_WRITE_REG_SP 81 |
#define | CMD_WRITE_REG_X 82 |
#define | CMD_WRITE_REG_Y 83 |
#define | CMD_WRITE_REG_D 84 |
#define | CMD_WRITE_REG_CCR 85 |
#define | CMD_CF_READ_CSR2 86 |
#define | CMD_CF_READ_CSR3 87 |
#define | CMD_CF_WRITE_CSR2 88 |
#define | CMD_CF_WRITE_CSR3 89 |
#define | CMD_CF_READ_REG 90 |
#define | CMD_CF_READ_CREG 91 |
#define | CMD_CF_READ_DREG 92 |
#define | CMD_CF_READ_XCSR 93 |
#define | CMD_CF_WRITE_REG 94 |
#define | CMD_CF_WRITE_CREG 95 |
#define | CMD_CF_WRITE_DREG 96 |
#define | CMD_CF_READ_MEM 97 |
#define | CMD_CF_WRITE_MEM 98 |
#define | CMD_CF_WRITE_XCSR 99 |
#define | CMD_READ_STATUS 100 |
#define | CMD_WRITE_CONTROL 101 |
#define | CMD_WRITE_BKPT 102 |
#define | CMD_READ_BKPT 103 |
#define | CMD_READ_SPC 104 |
#define | CMD_WRITE_SPC 105 |
#define | CMD_READ_CCR_PC 106 |
#define | CMD_WRITE_CCR_PC 107 |
#define | CMD_READ_BLOCK 108 |
#define | CMD_WRITE_BLOCK 109 |
#define | CMD_MASS_ERASE 110 |
#define | CMD_VPPOFF 111 |
#define | CMD_RS08_POG 112 |
#define | CMD_FLASH_DLSTART 113 |
#define | CMD_FLASH_DLEND 114 |
#define | TCMD_NEXT_DLDATA 115 |
Enumerations |
enum | {
BDM_RC_OK = 0,
BDM_RC_BUSY = 1,
BDM_RC_OVERRUN = 2,
BDM_RC_ILLEGAL_PARAMS = 3,
BDM_RC_ILLEGAL_COMMAND = 4,
BDM_RC_NO_CONNECTION = 5,
BDM_RC_UNKNOWN_TARGET = 11,
BDM_RC_NO_TX_ROUTINE = 12,
BDM_RC_NO_RX_ROUTINE = 13,
BDM_RC_BDM_EN_FAILED = 14,
BDM_RC_RESET_TIMEOUT = 15,
BDM_RC_BKGD_TIMEOUT = 16,
BDM_RC_SYNC_TIMEOUT = 17,
BDM_RC_UNKNOWN_SPEED = 18,
BDM_RC_WRONG_PROGRAMMING_MODE = 19,
BDM_RC_FLASH_PROGRAMING_BUSY = 20,
BDM_RC_VDD_NOT_REMOVED = 21,
BDM_RC_VDD_NOT_PRESENT = 22,
BDM_RC_VDD_WRONG_MODE = 23
} |
enum | { BDM_CAP_RESET = (1<<0),
BDM_CAP_FLASH = (1<<1),
BDM_CAP_VDDCONTROL = (1<<2),
BDM_CAP_VDDSENSE = (1<<3)
} |
Define Documentation
#define CMD_CF_READ_CREG 91 |
#define CMD_CF_READ_CSR2 86 |
#define CMD_CF_READ_CSR3 87 |
#define CMD_CF_READ_DREG 92 |
#define CMD_CF_READ_MEM 97 |
#define CMD_CF_READ_REG 90 |
#define CMD_CF_READ_XCSR 93 |
#define CMD_CF_WRITE_CREG 95 |
#define CMD_CF_WRITE_CSR2 88 |
#define CMD_CF_WRITE_CSR3 89 |
#define CMD_CF_WRITE_DREG 96 |
#define CMD_CF_WRITE_MEM 98 |
#define CMD_CF_WRITE_REG 94 |
#define CMD_CF_WRITE_XCSR 99 |
#define CMD_FLASH_DLEND 114 |
#define CMD_FLASH_DLSTART 113 |
#define CMD_GET_LAST_STATUS 13 |
#define CMD_GET_STATUS 34 |
#define CMD_MASS_ERASE 110 |
#define CMD_READ_BKPT 103 |
#define CMD_READ_BLOCK 108 |
#define CMD_READ_BLOCK1 55 |
#define CMD_READ_CCR_PC 106 |
#define CMD_READ_SPEED1 41 |
#define CMD_READ_STATUS 100 |
#define CMD_SET_SPEED1 46 |
#define CMD_SET_TARGET 30 |
#define CMD_WRITE_BKPT 102 |
#define CMD_WRITE_BLOCK 109 |
#define CMD_WRITE_BLOCK1 65 |
#define CMD_WRITE_CCR_PC 107 |
#define CMD_WRITE_CONTROL 101 |
#define CMD_WRITE_REG_CCR 85 |
#define CMD_WRITE_REG_D 84 |
#define CMD_WRITE_REG_PC 80 |
#define CMD_WRITE_REG_SP 81 |
#define CMD_WRITE_REG_X 82 |
#define CMD_WRITE_REG_Y 83 |
#define CMD_WRITE_SPC 105 |
#define MAX_PACKET_SIZE (13*8) |
#define TCMD_NEXT_DLDATA 115 |
Enumeration Type Documentation
- Enumerator:
-
BDM_RC_OK |
|
BDM_RC_BUSY |
|
BDM_RC_OVERRUN |
|
BDM_RC_ILLEGAL_PARAMS |
|
BDM_RC_ILLEGAL_COMMAND |
|
BDM_RC_NO_CONNECTION |
|
BDM_RC_UNKNOWN_TARGET |
|
BDM_RC_NO_TX_ROUTINE |
|
BDM_RC_NO_RX_ROUTINE |
|
BDM_RC_BDM_EN_FAILED |
|
BDM_RC_RESET_TIMEOUT |
|
BDM_RC_BKGD_TIMEOUT |
|
BDM_RC_SYNC_TIMEOUT |
|
BDM_RC_UNKNOWN_SPEED |
|
BDM_RC_WRONG_PROGRAMMING_MODE |
|
BDM_RC_FLASH_PROGRAMING_BUSY |
|
BDM_RC_VDD_NOT_REMOVED |
|
BDM_RC_VDD_NOT_PRESENT |
|
BDM_RC_VDD_WRONG_MODE |
|
- Enumerator:
-
BDM_CAP_RESET |
|
BDM_CAP_FLASH |
|
BDM_CAP_VDDCONTROL |
|
BDM_CAP_VDDSENSE |
|