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

◆ st25r3911b_reg_modify()

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.

Parameters
[in]regRegister address (see Registers).
[in]clr_maskBitmask that defines which register bits to clear.
[in]set_maskBitmask that defines which register bits to set.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.