wordboot
Macros
stk500.h File Reference

STK500 communication protocol commands. More...

Go to the source code of this file.

Macros

#define STK_SIGN_ON_MESSAGE   "AVR STK"
 
#define Resp_STK_OK   0x10
 
#define Resp_STK_FAILED   0x11
 
#define Resp_STK_UNKNOWN   0x12
 
#define Resp_STK_NODEVICE   0x13
 
#define Resp_STK_INSYNC   0x14
 
#define Resp_STK_NOSYNC   0x15
 
#define Resp_ADC_CHANNEL_ERROR   0x16
 
#define Resp_ADC_MEASURE_OK   0x17
 
#define Resp_PWM_CHANNEL_ERROR   0x18
 
#define Resp_PWM_ADJUST_OK   0x19
 
#define Sync_CRC_EOP   0x20
 
#define Cmnd_STK_GET_SYNC   0x30
 
#define Cmnd_STK_GET_SIGN_ON   0x31
 
#define Cmnd_STK_RESET   0x32
 
#define Cmnd_STK_SINGLE_CLOCK   0x33
 
#define Cmnd_STK_STORE_PARAMETERS   0x34
 
#define Cmnd_STK_SET_PARAMETER   0x40
 
#define Cmnd_STK_GET_PARAMETER   0x41
 
#define Cmnd_STK_SET_DEVICE   0x42
 
#define Cmnd_STK_GET_DEVICE   0x43
 
#define Cmnd_STK_GET_STATUS   0x44
 
#define Cmnd_STK_SET_DEVICE_EXT   0x45
 
#define Cmnd_STK_ENTER_PROGMODE   0x50
 
#define Cmnd_STK_LEAVE_PROGMODE   0x51
 
#define Cmnd_STK_CHIP_ERASE   0x52
 
#define Cmnd_STK_CHECK_AUTOINC   0x53
 
#define Cmnd_STK_CHECK_DEVICE   0x54
 
#define Cmnd_STK_LOAD_ADDRESS   0x55
 
#define Cmnd_STK_UNIVERSAL   0x56
 
#define Cmnd_STK_PROG_FLASH   0x60
 
#define Cmnd_STK_PROG_DATA   0x61
 
#define Cmnd_STK_PROG_FUSE   0x62
 
#define Cmnd_STK_PROG_LOCK   0x63
 
#define Cmnd_STK_PROG_PAGE   0x64
 
#define Cmnd_STK_PROG_FUSE_EXT   0x65
 
#define Cmnd_STK_READ_FLASH   0x70
 
#define Cmnd_STK_READ_DATA   0x71
 
#define Cmnd_STK_READ_FUSE   0x72
 
#define Cmnd_STK_READ_LOCK   0x73
 
#define Cmnd_STK_READ_PAGE   0x74
 
#define Cmnd_STK_READ_SIGN   0x75
 
#define Cmnd_STK_READ_OSCCAL   0x76
 
#define Cmnd_STK_READ_FUSE_EXT   0x77
 
#define Cmnd_STK_READ_OSCCAL_EXT   0x78
 
#define Parm_STK_HW_VER   0x80
 
#define Parm_STK_SW_MAJOR   0x81
 
#define Parm_STK_SW_MINOR   0x82
 
#define Parm_STK_LEDS   0x83
 
#define Parm_STK_VTARGET   0x84
 
#define Parm_STK_VADJUST   0x85
 
#define Parm_STK_OSC_PSCALE   0x86
 
#define Parm_STK_OSC_CMATCH   0x87
 
#define Parm_STK_RESET_DURATION   0x88
 
#define Parm_STK_SCK_DURATION   0x89
 
#define Parm_STK_BUFSIZEL   0x90
 
#define Parm_STK_BUFSIZEH   0x91
 
#define Parm_STK_DEVICE   0x92
 
#define Parm_STK_PROGMODE   0x93
 
#define Parm_STK_PARAMODE   0x94
 
#define Parm_STK_POLLING   0x95
 
#define Parm_STK_SELFTIMED   0x96
 
#define Stat_STK_INSYNC   0x01
 
#define Stat_STK_PROGMODE   0x02
 
#define Stat_STK_STANDALONE   0x04
 
#define Stat_STK_RESET   0x08
 
#define Stat_STK_PROGRAM   0x10
 
#define Stat_STK_LEDG   0x20
 
#define Stat_STK_LEDR   0x40
 
#define Stat_STK_LEDBLINK   0x80
 

Detailed Description

STK500 communication protocol commands.

This file contains all of the comands of the original STK500 communication protocol and was taken over from an Atmel application note (AVR061).