nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ st25r3911b_irq_modify()

int st25r3911b_irq_modify ( uint32_t clr_mask,
uint32_t set_mask )

#include <lib/st25r3911b/st25r3911b_interrupt.h>

Modify NFC Reader interrupts.

This function modifies the currently enabled interrupts. The set mask covers the clear mask, which means that first, interrupts from the clear mask are disabled, and then interrupts from the set mask are enabled. The mask can be composed of several interrupts. For example: mask = ST25R3911B_IRQ_MASK_PAR | ST25R3911B_IRQ_MASK_CRC

See ST25R3911B interrupts definition for available interrupts.

Parameters
[in]clr_maskInterrupts clear mask.
[in]set_maskInterrupts set mask.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.