SWCU194 March 2023 CC1314R10 , CC1354P10 , CC1354R10 , CC2674P10 , CC2674R10
The AES and Hash Cryptoprocessor module has two interrupt outputs; both are driven from the master control module and are controlled by the respective registers (see Section 12.2.6.3).
To enable interrupts for the module, the CRYPTO:IRQTYPE.LEVEL bit must be set and the interrupt source must be configured in the CRYPTO:IRQEN register.
The CRYPTO:IRQCLR register is available to clear an interrupt output and error-status bit. The CRYPTO:IRQSET register provides the software a way to test the interrupt connections and must be used for debugging only.
The CRYPTO:IRQSTAT register provides the status of the two interrupts and error status messages. The error status bits are asserted when they are detected, and typically the value of DMA_BUS_ERR and KEY_ST_WR_ERR signals are valid after the RESULT_AVAIL bit is asserted. The KEY_ST_RD_ERR bit is valid after triggering the key-store module to read a key from memory and providing it to the AES engine.
An interrupt RESULT_AVAIL is activated when an operation that uses DMA is finished. The signal asserts when both the DMA and internal module are in the IDLE state.
Another interrupt DMA_IN_DONE is activated when only the input DMA is finished and is intended for debugging.
Interrupt outputs are not triggered for operations where the DMA is not used.