![]() |
nRF Connect SDK API 3.3.99
|
| int st25r3911b_reg_modify | ( | uint8_t | reg, |
| uint8_t | clr_mask, | ||
| uint8_t | set_mask ) |
#include <lib/st25r3911b/st25r3911b_spi.h>
Modify a single NFC Reader register.
The first register value is read, then the bits selected by the clear mask are cleared. Finally, the bits selected by the set mask are set.
| [in] | reg | Register address (see Registers). |
| [in] | clr_mask | Bitmask that defines which register bits to clear. |
| [in] | set_mask | Bitmask that defines which register bits to set. |
| 0 | If the operation was successful. Otherwise, a (negative) error code is returned. |