Back to Prusaslicer

Atmel EDBG-based Tools ProtocolsTPI Protocol

bundled_deps/avrdude/avrdude/atmel-docs/EDBG/protocoldocs/ch08s03.html

3.1.21019 B
Original Source

ID definitions

This section includes the header file defining the different command, response and event IDs for the TPIPROTOCOL. It also defines the different possible failure codes.

_// TPI commands_#define TPI\_CMD\_ENTER\_PROGMODE 0x01#define TPI\_CMD\_LEAVE\_PROGMODE 0x02#define TPI\_CMD\_ERASE 0x03#define TPI\_CMD\_WRITE\_MEM 0x04#define TPI\_CMD\_READ\_MEM 0x05#define TPI\_CMD\_SET\_PARAM 0x07_// Memory types_#define TPI\_MEM\_TYPE\_APPL 1#define TPI\_MEM\_TYPE\_FUSE 4#define TPI\_MEM\_TYPE\_LOCKBITS 5_// Erase modes_#define TPI\_ERASE\_CHIP 1#define TPI\_ERASE\_APP 2#define TPI\_ERASE\_CONFIG 9_// Error codes_#define TPI\_RSP\_ERR\_OK 0#define TPI\_RSP\_ERR\_FAILED 1#define TPI\_RSP\_ERR\_COLLISION 2#define TPI\_RSP\_ERR\_TIMEOUT 3#define TPI\_RSP\_ERR\_ILLEGAL\_PARAM 4_// TPI parameters_ #define TPI\_PARAM\_NVMCMD\_ADDR 0x03#define TPI\_PARAM\_NVMCSR\_ADDR 0x04

| Prev | Up | Next | | | Home | |