Hardware access layer with cache and barrier support for managing the NFCT peripheral. More...
Data Structures | |
struct | nrfy_nfct_parameters_t |
NFCT parameters storage structure. More... | |
Macros | |
#define | NRFY_NFCT_HAS_MODULATION_PSEL_REG 1 |
#define | NRFY_NFCT_HAS_MODULATION_CTRL_REG 1 |
#define | NRFY_NFCT_HAS_TAG_STATE_REG 1 |
#define | NRFY_NFCT_HAS_SLEEP_STATE_REG 1 |
#define | NRFY_NFCT_HAS_AUTOCOLRES_CONFIG_REG 1 |
#define | NRFY_NFCT_HAS_PAD_CONFIG_REG 1 |
#define | NRFY_NFCT_HAS_BIAS_CONFIG_TRIM_REG 1 |
Functions | |
NRFY_STATIC_INLINE void | nrfy_nfct_int_init (NRF_NFCT_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable) |
Function for initializing the specified NFCT interrupts. | |
NRFY_STATIC_INLINE void | nrfy_nfct_int_uninit (NRF_NFCT_Type *p_reg) |
Function for un-initializing the NFCT interrupts. | |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_events_process (NRF_NFCT_Type *p_reg, uint32_t mask) |
Function for processing the specified NFCT events. | |
NRFY_STATIC_INLINE void | nrfy_nfct_parameters_save (NRF_NFCT_Type const *p_reg, nrfy_nfct_parameters_t *p_params) |
Function for saving NFCT parameters before peripheral reset. | |
NRFY_STATIC_INLINE void | nrfy_nfct_parameters_restore (NRF_NFCT_Type *p_reg, nrfy_nfct_parameters_t const *p_params) |
Function for restoring NFCT parameters after peripheral reset. The parameters are written back to the peripheral registers. | |
NRFY_STATIC_INLINE void | nrfy_nfct_rxtx_buffer_set (NRF_NFCT_Type *p_reg, uint8_t *p_rxtx_buf, uint16_t max_txrx_len, bool rx) |
Function for setting the the NFCT RX/TX buffer (address and maximum length). | |
NRFY_STATIC_INLINE void | nrfy_nfct_task_trigger (NRF_NFCT_Type *p_reg, nrf_nfct_task_t task) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_task_address_get (NRF_NFCT_Type const *p_reg, nrf_nfct_task_t task) |
NRFY_STATIC_INLINE void | nrfy_nfct_event_clear (NRF_NFCT_Type *p_reg, nrf_nfct_event_t event) |
NRFY_STATIC_INLINE bool | nrfy_nfct_event_check (NRF_NFCT_Type const *p_reg, nrf_nfct_event_t event) |
NRFY_STATIC_INLINE void | nrfy_nfct_shorts_enable (NRF_NFCT_Type *p_reg, uint32_t short_mask) |
NRFY_STATIC_INLINE void | nrfy_nfct_shorts_disable (NRF_NFCT_Type *p_reg, uint32_t short_mask) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_shorts_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_shorts_set (NRF_NFCT_Type *p_reg, uint32_t short_mask) |
NRFY_STATIC_INLINE void | nrfy_nfct_int_enable (NRF_NFCT_Type *p_reg, uint32_t mask) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_int_enable_check (NRF_NFCT_Type const *p_reg, uint32_t mask) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_int_enable_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_int_disable (NRF_NFCT_Type *p_reg, uint32_t mask) |
NRFY_STATIC_INLINE void | nrfy_nfct_mod_ctrl_pin_set (NRF_NFCT_Type *p_reg, uint32_t mod_ctrl_pin) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_mod_ctrl_pin_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_modulation_output_set (NRF_NFCT_Type *p_reg, nrf_nfct_modulation_ctrl_t mod_ctrl) |
NRFY_STATIC_INLINE nrf_nfct_modulation_ctrl_t | nrfy_nfct_modulation_output_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_error_status_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_error_status_clear (NRF_NFCT_Type *p_reg, uint32_t error_flag) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_rx_frame_status_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_rx_frame_status_clear (NRF_NFCT_Type *p_reg, uint32_t framestatus_flags) |
NRFY_STATIC_INLINE nrf_nfct_tag_state_t | nrfy_nfct_tag_state_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE nrf_nfct_sleep_state_t | nrfy_nfct_sleep_state_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE uint8_t | nrfy_nfct_field_status_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE uint16_t | nrfy_nfct_frame_delay_min_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_frame_delay_min_set (NRF_NFCT_Type *p_reg, uint16_t frame_delay_min) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_frame_delay_max_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_frame_delay_max_set (NRF_NFCT_Type *p_reg, uint32_t frame_delay_max) |
NRFY_STATIC_INLINE nrf_nfct_frame_delay_mode_t | nrfy_nfct_frame_delay_mode_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_frame_delay_mode_set (NRF_NFCT_Type *p_reg, nrf_nfct_frame_delay_mode_t frame_delay_mode) |
NRFY_STATIC_INLINE uint8_t * | nrfy_nfct_rxtx_buffer_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE uint16_t | nrfy_nfct_max_rxtx_length_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE uint8_t | nrfy_nfct_tx_frame_config_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_tx_frame_config_set (NRF_NFCT_Type *p_reg, uint8_t flags) |
NRFY_STATIC_INLINE uint16_t | nrfy_nfct_tx_bits_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_tx_bits_set (NRF_NFCT_Type *p_reg, uint16_t tx_bits) |
NRFY_STATIC_INLINE uint8_t | nrfy_nfct_rx_frame_config_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_rx_frame_config_set (NRF_NFCT_Type *p_reg, uint8_t flags) |
NRFY_STATIC_INLINE uint16_t | nrfy_nfct_rx_bits_get (NRF_NFCT_Type const *p_reg, bool crc_excluded) |
NRFY_STATIC_INLINE nrf_nfct_sensres_nfcid1_size_t | nrfy_nfct_nfcid1_get (NRF_NFCT_Type const *p_reg, uint8_t *p_nfcid1_buf) |
NRFY_STATIC_INLINE void | nrfy_nfct_nfcid1_set (NRF_NFCT_Type *p_reg, uint8_t const *p_nfcid1_buf, nrf_nfct_sensres_nfcid1_size_t nfcid1_size) |
NRFY_STATIC_INLINE bool | nrfy_nfct_autocolres_is_enabled (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_autocolres_enable (NRF_NFCT_Type *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_autocolres_disable (NRF_NFCT_Type *p_reg) |
NRFY_STATIC_INLINE nrf_nfct_sensres_nfcid1_size_t | nrfy_nfct_sensres_nfcid1_size_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_sensres_nfcid1_size_set (NRF_NFCT_Type *p_reg, nrf_nfct_sensres_nfcid1_size_t nfcid1_size) |
NRFY_STATIC_INLINE nrf_nfct_sensres_bit_frame_sdd_t | nrfy_nfct_sensres_bit_frame_sdd_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_sensres_bit_frame_sdd_set (NRF_NFCT_Type *p_reg, nrf_nfct_sensres_bit_frame_sdd_t bit_frame_sdd) |
NRFY_STATIC_INLINE nrf_nfct_sensres_platform_config_t | nrfy_nfct_sensres_platform_config_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_sensres_platform_config_set (NRF_NFCT_Type *p_reg, nrf_nfct_sensres_platform_config_t platform_config) |
NRFY_STATIC_INLINE bool | nrfy_nfct_selres_cascade_check (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE nrf_nfct_selres_protocol_t | nrfy_nfct_selres_protocol_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_selres_protocol_set (NRF_NFCT_Type *p_reg, nrf_nfct_selres_protocol_t sel_res_protocol) |
NRFY_STATIC_INLINE uint32_t | nrfy_nfct_selres_get (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_selres_set (NRF_NFCT_Type *p_reg, uint32_t selres) |
NRFY_STATIC_INLINE bool | nrfy_nfct_pad_config_enable_check (NRF_NFCT_Type const *p_reg) |
NRFY_STATIC_INLINE void | nrfy_nfct_pad_config_enable_set (NRF_NFCT_Type *p_reg, bool enable) |
NRFY_STATIC_INLINE void | nrfy_nfct_bias_config_get (NRF_NFCT_Type const *p_reg, nrf_nfct_bias_config_t *p_bias_config) |
NRFY_STATIC_INLINE void | nrfy_nfct_bias_config_set (NRF_NFCT_Type *p_reg, nrf_nfct_bias_config_t const *p_bias_config) |
Hardware access layer with cache and barrier support for managing the NFCT peripheral.
#define NRFY_NFCT_HAS_AUTOCOLRES_CONFIG_REG 1 |
#define NRFY_NFCT_HAS_BIAS_CONFIG_TRIM_REG 1 |
#define NRFY_NFCT_HAS_MODULATION_CTRL_REG 1 |
#define NRFY_NFCT_HAS_MODULATION_PSEL_REG 1 |
#define NRFY_NFCT_HAS_PAD_CONFIG_REG 1 |
#define NRFY_NFCT_HAS_SLEEP_STATE_REG 1 |
#define NRFY_NFCT_HAS_TAG_STATE_REG 1 |
NRFY_STATIC_INLINE void nrfy_nfct_autocolres_disable | ( | NRF_NFCT_Type * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
The automatic collision resolution mechanism as defined in ISO 14443-3 and NFC Forum Digital Protocol Technical Specification 2.0, section 6.
NRFY_STATIC_INLINE void nrfy_nfct_autocolres_enable | ( | NRF_NFCT_Type * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
The automatic collision resolution mechanism as defined in ISO 14443-3 and NFC Forum Digital Protocol Technical Specification 2.0, section 6.
NRFY_STATIC_INLINE bool nrfy_nfct_autocolres_is_enabled | ( | NRF_NFCT_Type const * | p_reg | ) |
The automatic collision resolution mechanism as defined in ISO 14443-3 and NFC Forum Digital Protocol Technical Specification 2.0, section 6.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | If automatic collision resolution is enabled. |
false | If automatic collision resolution is disabled. |
NRFY_STATIC_INLINE void nrfy_nfct_bias_config_get | ( | NRF_NFCT_Type const * | p_reg, |
nrf_nfct_bias_config_t * | p_bias_config | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_bias_config | Pointer to the structure to be filled with bias configuration parameters. |
NRFY_STATIC_INLINE void nrfy_nfct_bias_config_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_bias_config_t const * | p_bias_config | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_bias_config | Pointer to the structure of bias configuration parameters. |
NRFY_STATIC_INLINE void nrfy_nfct_error_status_clear | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | error_flag | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | error_flag | Error flags to be cleared, defined in nrf_nfct_error_status_t. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_error_status_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE bool nrfy_nfct_event_check | ( | NRF_NFCT_Type const * | p_reg, |
nrf_nfct_event_t | event | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
NRFY_STATIC_INLINE void nrfy_nfct_event_clear | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_event_t | event | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_events_process | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for processing the specified NFCT events.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of the events to be processed, created by the NRFY_EVENT_TO_INT_BITMASK(). |
NRFY_STATIC_INLINE uint8_t nrfy_nfct_field_status_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_frame_delay_max_get | ( | NRF_NFCT_Type const * | p_reg | ) |
This is the maximum value for Frame Delay Timer. It controls the longest time between the last symbol of the last received frame and the start of the transmission of a new TX frame. If no transmission starts before the Frame Delay Timer timeout, NRF_NFCT_ERROR_FRAMEDELAYTIMEOUT_MASK is set.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_frame_delay_max_set | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | frame_delay_max | ||
) |
This is the maximum value for Frame Delay Timer. It controls the longest time between the last symbol of the last received frame and the start of the transmission of a new TX frame. If no transmission starts before the Frame Delay Timer timeout, NRF_NFCT_ERROR_FRAMEDELAYTIMEOUT_MASK is set.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | frame_delay_max | Maximum Frame Delay Time value in 13.56-MHz clock ticks. |
NRFY_STATIC_INLINE uint16_t nrfy_nfct_frame_delay_min_get | ( | NRF_NFCT_Type const * | p_reg | ) |
This is the minimum value for Frame Delay Timer. It controls the shortest time between the last symbol of the last received frame and the start of the transmission of a new TX frame.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_frame_delay_min_set | ( | NRF_NFCT_Type * | p_reg, |
uint16_t | frame_delay_min | ||
) |
This is the minimum value for Frame Delay Timer. It controls the shortest time between the last symbol of the last received frame and the start of the transmission of a new TX frame.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | frame_delay_min | Minimum Frame Delay Time value in 13.56-MHz clock ticks. |
NRFY_STATIC_INLINE nrf_nfct_frame_delay_mode_t nrfy_nfct_frame_delay_mode_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_frame_delay_mode_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_frame_delay_mode_t | frame_delay_mode | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | frame_delay_mode | Frame Delay Mode configuration. |
NRFY_STATIC_INLINE void nrfy_nfct_int_disable | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | mask | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_nfct_int_mask_t values for bit masking. |
NRFY_STATIC_INLINE void nrfy_nfct_int_enable | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | mask | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_nfct_int_mask_t values for bit masking. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_int_enable_check | ( | NRF_NFCT_Type const * | p_reg, |
uint32_t | mask | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. Use nrf_nfct_int_mask_t values for bit masking. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_int_enable_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_int_init | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | mask, | ||
uint8_t | irq_priority, | ||
bool | enable | ||
) |
Function for initializing the specified NFCT interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be initialized. |
[in] | irq_priority | Interrupts priority. |
[in] | enable | True if interrupts associated with the event mask are to be enabled, false otherwise. |
NRFY_STATIC_INLINE void nrfy_nfct_int_uninit | ( | NRF_NFCT_Type * | p_reg | ) |
Function for un-initializing the NFCT interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE uint16_t nrfy_nfct_max_rxtx_length_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_mod_ctrl_pin_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_mod_ctrl_pin_set | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | mod_ctrl_pin | ||
) |
If a given signal is not needed, pass the NRF_NFCT_MOD_CTRL_PIN_NOT_CONNECTED value instead of its pin number.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mod_ctrl_pin | Modulation control pin. |
NRFY_STATIC_INLINE nrf_nfct_modulation_ctrl_t nrfy_nfct_modulation_output_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_modulation_output_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_modulation_ctrl_t | mod_ctrl | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mod_ctrl | Modulation control field configuration. |
NRFY_STATIC_INLINE nrf_nfct_sensres_nfcid1_size_t nrfy_nfct_nfcid1_get | ( | NRF_NFCT_Type const * | p_reg, |
uint8_t * | p_nfcid1_buf | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[out] | p_nfcid1_buf | Pointer to a buffer for the NDFCID1 parameter. The NFCID1 values are in little endian order, that is: |NFCID1_3RD_LAST|NFCID1_2ND_LAST|NFCID1_LAST|. |
NRFY_STATIC_INLINE void nrfy_nfct_nfcid1_set | ( | NRF_NFCT_Type * | p_reg, |
uint8_t const * | p_nfcid1_buf, | ||
nrf_nfct_sensres_nfcid1_size_t | nfcid1_size | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_nfcid1_buf | Pointer to the buffer with NDFCID1 bytes. |
[in] | nfcid1_size | Size of the NFCID1 in bytes. |
NRFY_STATIC_INLINE bool nrfy_nfct_pad_config_enable_check | ( | NRF_NFCT_Type const * | p_reg | ) |
When the NFC pads are enabled, they are configured as the NFC antenna pins, and the NFC pins protection mechanism is enabled. When the NFC pads are disabled, they are configured as GPIO pins.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | NFC pads are enabled. |
false | NFC pads are disabled. |
NRFY_STATIC_INLINE void nrfy_nfct_pad_config_enable_set | ( | NRF_NFCT_Type * | p_reg, |
bool | enable | ||
) |
When the NFC pads are enabled, they are configured as the NFC antenna pins, and the NFC pins protection mechanism is enabled. When the NFC pads are disabled, they are configured as GPIO pins.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | enable | True if the NFC pads are to be enabled, false otherwise. |
NRFY_STATIC_INLINE void nrfy_nfct_parameters_restore | ( | NRF_NFCT_Type * | p_reg, |
nrfy_nfct_parameters_t const * | p_params | ||
) |
Function for restoring NFCT parameters after peripheral reset. The parameters are written back to the peripheral registers.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_params | Pointer to the structure holding peripheral parameters to be restored. |
NRFY_STATIC_INLINE void nrfy_nfct_parameters_save | ( | NRF_NFCT_Type const * | p_reg, |
nrfy_nfct_parameters_t * | p_params | ||
) |
Function for saving NFCT parameters before peripheral reset.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_params | Pointer to the structure where the parameters will be saved. |
NRFY_STATIC_INLINE uint16_t nrfy_nfct_rx_bits_get | ( | NRF_NFCT_Type const * | p_reg, |
bool | crc_excluded | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | crc_excluded | Flag for excluding CRC size from calculation. |
NRFY_STATIC_INLINE uint8_t nrfy_nfct_rx_frame_config_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_rx_frame_config_set | ( | NRF_NFCT_Type * | p_reg, |
uint8_t | flags | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | flags | NFCT RX configuration flags. Use nrf_nfct_rx_frame_config_t for setting the desired configuration. |
NRFY_STATIC_INLINE void nrfy_nfct_rx_frame_status_clear | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | framestatus_flags | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | framestatus_flags | Status flags to be cleared, defined in nrf_nfct_rx_frame_status_t. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_rx_frame_status_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE uint8_t * nrfy_nfct_rxtx_buffer_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_rxtx_buffer_set | ( | NRF_NFCT_Type * | p_reg, |
uint8_t * | p_rxtx_buf, | ||
uint16_t | max_txrx_len, | ||
bool | rx | ||
) |
Function for setting the the NFCT RX/TX buffer (address and maximum length).
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | p_rxtx_buf | Pointer to the receive or transmit buffer. |
[in] | max_txrx_len | Maximum receive or transmit length in bytes (size of the RAM buffer for EasyDMA). |
[in] | rx | True if buffer is set for the frame reception, false if buffer is set for the frame transmission. |
NRFY_STATIC_INLINE bool nrfy_nfct_selres_cascade_check | ( | NRF_NFCT_Type const * | p_reg | ) |
The CASCADE bit in the SEL_RES register is handled automatically by the NFCT hardware and indicates the status of the NFCID1 read operation to the NFC poller according to the NFC Forum Digital Protocol Speficiation 2.0, section 6.8.2.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
true | If NFCID1 read procedure is not complete. |
false | If NFCID1 read procedure is complete. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_selres_get | ( | NRF_NFCT_Type const * | p_reg | ) |
The SEL_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE nrf_nfct_selres_protocol_t nrfy_nfct_selres_protocol_get | ( | NRF_NFCT_Type const * | p_reg | ) |
The SEL_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_selres_protocol_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_selres_protocol_t | sel_res_protocol | ||
) |
The SEL_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | sel_res_protocol | Value of the Protocol field in the SEL_RES frame. |
NRFY_STATIC_INLINE void nrfy_nfct_selres_set | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | selres | ||
) |
The SEL_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | selres | SEL_RES frame configuration. |
NRFY_STATIC_INLINE nrf_nfct_sensres_bit_frame_sdd_t nrfy_nfct_sensres_bit_frame_sdd_get | ( | NRF_NFCT_Type const * | p_reg | ) |
The SENS_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_sensres_bit_frame_sdd_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_sensres_bit_frame_sdd_t | bit_frame_sdd | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | bit_frame_sdd | The Bit Frame SDD field configuration. |
NRFY_STATIC_INLINE nrf_nfct_sensres_nfcid1_size_t nrfy_nfct_sensres_nfcid1_size_get | ( | NRF_NFCT_Type const * | p_reg | ) |
The SENS_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_sensres_nfcid1_size_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_sensres_nfcid1_size_t | nfcid1_size | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | nfcid1_size | NFCID1 (tag identifier) size. |
NRFY_STATIC_INLINE nrf_nfct_sensres_platform_config_t nrfy_nfct_sensres_platform_config_get | ( | NRF_NFCT_Type const * | p_reg | ) |
The SENS_RES frame is handled automatically by the NFCT hardware.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_sensres_platform_config_set | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_sensres_platform_config_t | platform_config | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | platform_config | The Platform Config field configuration. |
NRFY_STATIC_INLINE void nrfy_nfct_shorts_disable | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | short_mask | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | short_mask | Mask of shortcuts. |
NRFY_STATIC_INLINE void nrfy_nfct_shorts_enable | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | short_mask | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | short_mask | Mask of shortcuts. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_shorts_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_shorts_set | ( | NRF_NFCT_Type * | p_reg, |
uint32_t | short_mask | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | short_mask | Shortcut mask. |
NRFY_STATIC_INLINE nrf_nfct_sleep_state_t nrfy_nfct_sleep_state_get | ( | NRF_NFCT_Type const * | p_reg | ) |
The returned value is the last state before the autimatic collision resolution started.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_NFCT_SLEEP_STATE_IDLE | NFC tag was in IDLE state before the automatic collision resolution started. |
NRF_NFCT_SLEEP_STATE_SLEEP_A | NFC tag was in SLEEP_A state before the automatic collision resolution started. |
NRFY_STATIC_INLINE nrf_nfct_tag_state_t nrfy_nfct_tag_state_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_NFCT_TAG_STATE_DISABLED | NFC tag is disabled. |
NRF_NFCT_TAG_STATE_RAMP_UP | NFC tag is ramping up. |
NRF_NFCT_TAG_STATE_IDLE | NFC tag is activated and idle. |
NRF_NFCT_TAG_STATE_RECEIVE | NFC tag is receiving data. |
NRF_NFCT_TAG_STATE_FRAME_DELAY | Frame Delay Timer of the NFC tag is counting ticks since the last symbol of the last received frame. |
NRF_NFCT_TAG_STATE_TRANSMIT | NFC tag is transmitting data. |
NRFY_STATIC_INLINE uint32_t nrfy_nfct_task_address_get | ( | NRF_NFCT_Type const * | p_reg, |
nrf_nfct_task_t | task | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task. |
NRFY_STATIC_INLINE void nrfy_nfct_task_trigger | ( | NRF_NFCT_Type * | p_reg, |
nrf_nfct_task_t | task | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |
NRFY_STATIC_INLINE uint16_t nrfy_nfct_tx_bits_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_tx_bits_set | ( | NRF_NFCT_Type * | p_reg, |
uint16_t | tx_bits | ||
) |
Set the number of TX bits excluding CRC, parity, SoF, and EoF.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | tx_bits | Overall number of bits to be sent. |
NRFY_STATIC_INLINE uint8_t nrfy_nfct_tx_frame_config_get | ( | NRF_NFCT_Type const * | p_reg | ) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRFY_STATIC_INLINE void nrfy_nfct_tx_frame_config_set | ( | NRF_NFCT_Type * | p_reg, |
uint8_t | flags | ||
) |
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | flags | Flags for NFCT TX configuration. Use nrf_nfct_tx_frame_config_t for setting. |