3.9.2 Event Configuration
There are two different types of event flags:
- System-specific event flags
- Service-specific event flags
The system-specific event flags can be configured (masked) in the eepEventConf EEPROM variable.
- The pinEventConf variable contains the configuration masks for the wake-up events (NPWRONx and PWRON). If a wake-up event occurs and the corresponding mask bit is set, the EVENT pin is set by the firmware.
- The sysEventConf variable contains the configuration masks for the system events (SYS_ERR, SYS_RDY, AVCCLOW and LOWBATT). If a system event occurs and the corresponding mask bit is set, the EVENT pin is set by the firmware.
- The cmdRdyConf variable contains the masks for the CMD_RDY event flag. If a mask bit is set, the EVENT pin is set after the corresponding operation initializes or completes.
Address | Name | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|---|
0x0094 | pinEventConf | PWRON | — | NPWRON6 | NPWRON5 | NPWRON4 | NPWRON3 | NPWRON2 | NPWRON1 |
0x0095 | sysEventConf | SYS_ERR | — | SYS_RDY | AVCCLOW | LOWBATT | RX_ACTIVE_EN | RX_ACTIVE_POL | IRQ_POL |
0x0096 | cmdRdyConf | — | TEMP_MEAS | SRC_CAL | FRC_CAL | VCO_CAL | RF_CAL | SELFCHECK | — |
The service-specific event flags can be configured for each service. The configuration bytes are located in the eepServices data structure.
- rssiSysConf contains the mask and the threshold for the SFIFO event flag during a receive mode. If the rssiBufEvMask mask is set, the EVENT pin is set as soon as the SFIFO is filled with RSSIbuf bytes.
- rxSetPathA/B[0] contains the masks and the thresholds for the DFIFO_RX event flag. The EVENT pin is set at reception on path A/B if the rxBufEvMaskA/B mask is set and the DFIFO is filled with RxbufA/B bytes.
- rxSysEvent contains the masks for the RF events for path A/B. If a mask bit is set, the EVENT pin is set after the corresponding event is detected by the firmware.
The following table shows an overview of the service-specific, event-flag configuration.
Address Service0 | Name | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|---|
0x00DE | rssiSysConf | RssiEnable | — | rssiBufEvMask | RSSIbuf[4:0] | ||||
0x00DF | rxSetPathA[0] | — | rxBufEvMaskA | RXbufA[5:0] | |||||
0x00E1 | rxSetPathB[0] | — | rxBufEvMaskB | RXbufB[5:0] | |||||
0x00E3 | rxSysEvent | IDCHKA_Mask | WCOKA_Mask | SOTA_Mask | EOTA_Mask | IDCHKB_Mask | WCOKB_Mask | SOTB_Mask | EOTB_Mask |