7.5.12 Patch SPI

Description

The SPI command “Patch SPI” is used to extend the SPI command set by the customer as follows:

Patch_Spi (uint8_t parameter) jumps to the function which is stored in extif.flashPtr. The parameter of Patch_Spi is located in the SPDR register. The Patch SPI extension has no return and the customer has to finish with a jump to PATCH_SPI_READY (which is the same as SPIBUFRDY_DISABLERXBUFINT).

Command Frame

Host

0x0F

parameter

ATA8210/15

events.system

events.events

Parameters

  • 0x0F – Command ID
  • Parameter – One possible parameter for the patch SPI function (located in SPDR register)

Return Values

  • events.system – Event byte (for details see SPI command “Get Event Bytes”)
  • events.events – Event byte (for details see SPI command “Get Event Bytes”)