7.7.3.1 Get Events Information and Data

Figure 7-11. G3 Get Events Information and Data SPI Arrays

If IRQ occurs (enabled in low), it is first needed to read events reported by the PL360 device.

  • Master (MOSI):
    • Send ID memory region(16 bits): 0x0000 (ATPL360_STATUS_INFO_ID)
    • Send SPI command (1 bit): 0 (read command)
    • Send SPI data length (15 bits) (in blocks of 16-bits): 0x04 (8 bytes)
  • Slave (MISO):
    • Send Firmware Header (16 bits): 0x1122
    • Send Firmware Events (16 bits): 0x0002 (ATPL360_RX_DATA_IND_FLAG_MASK)
    • Send Firmware Timer reference (32 bits)
    • Send Firmware Events Information (32 bits)
      • First 16 bits: Not valid
      • Second 16 bits: Length of the data to be read in next transaction (D_LEN)

The next transaction gets the data part of the message:

  • Master (MOSI):
    • Send ID memory region(16 bits): 0x0005 (ATPL360_RX_DATA_ID)
    • Send SPI command (1 bit): 0 (read command)
    • Send SPI data length (15 bits) (in blocks of 16-bits): Use (D_LEN/2) obtained in previous transaction
  • Slave (MISO):
    • Send Firmware Header (16 bits): 0x1122
    • Send Firmware Events (16 bits): 0x0002 (ATPL360_RX_DATA_IND_FLAG_MASK)
    • Send Firmware RX data (variable)