Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
tpi.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TPI_REG_TPIIR   0x0F
 
#define TPI_IDENT_CODE   0x80
 
#define TPI_REG_TPIPCR   0x02
 
#define TPI_REG_TPISR   0x00
 
#define TPI_REG_TPISR_NVMEN   (1 << 1)
 
#define TPI_CMD_SLD   0x20
 
#define TPI_CMD_SLD_PI   0x24
 
#define TPI_CMD_SIN   0x10
 
#define TPI_CMD_SOUT   0x90
 
#define TPI_CMD_SSTCS   0xC0
 
#define TPI_CMD_SST   0x60
 
#define TPI_CMD_SST_PI   0x64
 
#define TPI_CMD_SLDCS   0x80
 
#define TPI_CMD_SSTPR   0x68
 
#define TPI_CMD_SKEY   0xE0
 
#define TPI_SIO_ADDR(x)   ((x & 0x30) << 1 | (x & 0x0F))
 
#define TPI_IOREG_NVMCSR   0x32
 
#define TPI_IOREG_NVMCMD   0x33
 
#define TPI_IOREG_NVMCSR_NVMBSY   (1 << 7)
 
#define TPI_NVMCMD_NO_OPERATION   0x00
 
#define TPI_NVMCMD_CHIP_ERASE   0x10
 
#define TPI_NVMCMD_SECTION_ERASE   0x14
 
#define TPI_NVMCMD_WORD_WRITE   0x1D
 

Variables

static const unsigned char tpi_skey [] = { 0x12, 0x89, 0xAB, 0x45, 0xCD, 0xD8, 0x88, 0xFF }
 
static const unsigned char tpi_skey_cmd [] = { TPI_CMD_SKEY, 0xff, 0x88, 0xd8, 0xcd, 0x45, 0xab, 0x89, 0x12 }
 

Macro Definition Documentation

◆ TPI_CMD_SIN

#define TPI_CMD_SIN   0x10

◆ TPI_CMD_SKEY

#define TPI_CMD_SKEY   0xE0

◆ TPI_CMD_SLD

#define TPI_CMD_SLD   0x20

◆ TPI_CMD_SLD_PI

#define TPI_CMD_SLD_PI   0x24

◆ TPI_CMD_SLDCS

#define TPI_CMD_SLDCS   0x80

◆ TPI_CMD_SOUT

#define TPI_CMD_SOUT   0x90

◆ TPI_CMD_SST

#define TPI_CMD_SST   0x60

◆ TPI_CMD_SST_PI

#define TPI_CMD_SST_PI   0x64

◆ TPI_CMD_SSTCS

#define TPI_CMD_SSTCS   0xC0

◆ TPI_CMD_SSTPR

#define TPI_CMD_SSTPR   0x68

◆ TPI_IDENT_CODE

#define TPI_IDENT_CODE   0x80

◆ TPI_IOREG_NVMCMD

#define TPI_IOREG_NVMCMD   0x33

◆ TPI_IOREG_NVMCSR

#define TPI_IOREG_NVMCSR   0x32

◆ TPI_IOREG_NVMCSR_NVMBSY

#define TPI_IOREG_NVMCSR_NVMBSY   (1 << 7)

◆ TPI_NVMCMD_CHIP_ERASE

#define TPI_NVMCMD_CHIP_ERASE   0x10

◆ TPI_NVMCMD_NO_OPERATION

#define TPI_NVMCMD_NO_OPERATION   0x00

◆ TPI_NVMCMD_SECTION_ERASE

#define TPI_NVMCMD_SECTION_ERASE   0x14

◆ TPI_NVMCMD_WORD_WRITE

#define TPI_NVMCMD_WORD_WRITE   0x1D

◆ TPI_REG_TPIIR

#define TPI_REG_TPIIR   0x0F

◆ TPI_REG_TPIPCR

#define TPI_REG_TPIPCR   0x02

◆ TPI_REG_TPISR

#define TPI_REG_TPISR   0x00

◆ TPI_REG_TPISR_NVMEN

#define TPI_REG_TPISR_NVMEN   (1 << 1)

◆ TPI_SIO_ADDR

#define TPI_SIO_ADDR (   x)    ((x & 0x30) << 1 | (x & 0x0F))

Variable Documentation

◆ tpi_skey

const unsigned char tpi_skey[] = { 0x12, 0x89, 0xAB, 0x45, 0xCD, 0xD8, 0x88, 0xFF }
static

Referenced by bitbang_program_enable().

◆ tpi_skey_cmd

const unsigned char tpi_skey_cmd[] = { TPI_CMD_SKEY, 0xff, 0x88, 0xd8, 0xcd, 0x45, 0xab, 0x89, 0x12 }
static

Referenced by avr_tpi_program_enable().