2.10.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 | ANT_TUNE | TEMP_MEAS | SRC_CAL | FRC_CAL | VCO_CAL | RF_CAL | SELFCHECK | TX |
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.
- txSysEventA/B contains the masks and the thresholds for the DFIFO_TX event flag. The EVENT pin is set at transmission on path A/B if the txBufEvMaskA/B mask is set and the DFIFO is filled with TxbufA/B bytes.
- txPreambleSysEventA/B contains the masks for the SFIFO event flag during transmit mode. If the txPreambleBufEvMaskA/B mask is set, the EVENT pin is set if the SFIFO is filled with PreambleBufFillLevelA/B bytes.
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 |
0x0105 | txSysEventA | TX_Ending | txBufEvMaskA | TxBufFillLevelA[5:0] | |||||
0x0106 | txSysEventB | TX_Ending | txBufEvMaskB | TxBufFillLevelB[5:0] | |||||
0x0107 | txPreambleSysEventA | — | — | txPreambleBufEvMaskA | PreambleBufFillLevelA[4:0] | ||||
0x0108 | txPreambleSysEventB | — | — | txPreambleBufEvMaskB | PreambleBufFillLevelB[4:0] |