3.9.1 Event Flags

The event flags are located in the R12 to R15 AVR registers and can be configured in a flexible way. An event flag is always set when the corresponding event occurs. The external EVENT pin is only set if the flag is configured (masked). See Event Configuration from Related Links. Read out the event flags via the Get Event Bytes SPI command. See SPI Command Reference from Related Links. After a Get Event Bytes command, clear the content of the R13 to R15 registers. The R12 register (events.config) is not cleared because it contains the information of the currently loaded service and channel configuration in the currentService variable. For more information about SRAM variables and data structures, see SRAM Map from Related Links.

The following table shows an overview of the available event flags.

Table 3-6. Event Flags Overview

Name

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

System (R15) events.system

SYS_ERR

CMD_RDY

SYS_RDY

AVCCLOW

LOWBATT

SFIFO

DFIFO_RX

Events (R14) events.events

IDCHKA

WCOKA

SOTA

EOTA

IDCHKB

WCOKB

SOTB

EOTB

Power (R13) events.power

PWRON

NPWRON6

NPWRON5

NPWRON4

NPWRON3

NPWRON2

NPWRON1

Config (R12) events.config

PathB

PathA

ch[1:0]

ser[2:0]