nrfx 3.3
Macros
Common nrfy module

Common nrfy module. More...

Macros

#define NRFY_EVENT_TO_INT_BITPOS(event)   ((((uint32_t)(event)) - 0x100) >> 2)
 Macro for calculating interrupt bit position associated with the specified event.
 
#define NRFY_INT_BITPOS_TO_EVENT(bitpos)   (((bitpos) << 2) + 0x100)
 Macro for converting interrupt bit position to the specified event.
 
#define NRFY_EVENT_TO_INT_BITMASK(event)   (1 << NRFY_EVENT_TO_INT_BITPOS(event))
 Macro for calculating interrupt bitmask associated with the specified event.
 
#define NRFY_IRQ_PRIORITY_SET(irq_number, priority)   NRFX_IRQ_PRIORITY_SET(irq_number, priority)
 
#define NRFY_IRQ_ENABLE(irq_number)   NRFX_IRQ_ENABLE(irq_number)
 
#define NRFY_IRQ_IS_ENABLED(irq_number)   NRFX_IRQ_IS_ENABLED(irq_number)
 
#define NRFY_IRQ_DISABLE(irq_number)   NRFX_IRQ_DISABLE(irq_number)
 
#define NRFY_IRQ_PENDING_SET(irq_number)   NRFX_IRQ_PENDING_SET(irq_number)
 
#define NRFY_IRQ_PENDING_CLEAR(irq_number)   NRFX_IRQ_PENDING_CLEAR(irq_number)
 
#define NRFY_IRQ_IS_PENDING(irq_number)   NRFX_IRQ_IS_PENDING(irq_number)
 
#define NRFY_CRITICAL_SECTION_ENTER()   NRFX_CRITICAL_SECTION_ENTER()
 
#define NRFY_CRITICAL_SECTION_EXIT()   NRFX_CRITICAL_SECTION_EXIT()
 

Detailed Description

Common nrfy module.

Macro Definition Documentation

◆ NRFY_CRITICAL_SECTION_ENTER

#define NRFY_CRITICAL_SECTION_ENTER ( )    NRFX_CRITICAL_SECTION_ENTER()

◆ NRFY_CRITICAL_SECTION_EXIT

#define NRFY_CRITICAL_SECTION_EXIT ( )    NRFX_CRITICAL_SECTION_EXIT()

◆ NRFY_EVENT_TO_INT_BITMASK

#define NRFY_EVENT_TO_INT_BITMASK (   event)    (1 << NRFY_EVENT_TO_INT_BITPOS(event))

Macro for calculating interrupt bitmask associated with the specified event.

Parameters
[in]eventEvent.
Returns
Interrupt bitmask.

◆ NRFY_EVENT_TO_INT_BITPOS

#define NRFY_EVENT_TO_INT_BITPOS (   event)    ((((uint32_t)(event)) - 0x100) >> 2)

Macro for calculating interrupt bit position associated with the specified event.

Parameters
[in]eventEvent.
Returns
Interrupt bit position.

◆ NRFY_INT_BITPOS_TO_EVENT

#define NRFY_INT_BITPOS_TO_EVENT (   bitpos)    (((bitpos) << 2) + 0x100)

Macro for converting interrupt bit position to the specified event.

Parameters
[in]bitposInterrupt bit position.
Returns
Event.

◆ NRFY_IRQ_DISABLE

#define NRFY_IRQ_DISABLE (   irq_number)    NRFX_IRQ_DISABLE(irq_number)

◆ NRFY_IRQ_ENABLE

#define NRFY_IRQ_ENABLE (   irq_number)    NRFX_IRQ_ENABLE(irq_number)
See also
NRFX_IRQ_ENABLE

◆ NRFY_IRQ_IS_ENABLED

#define NRFY_IRQ_IS_ENABLED (   irq_number)    NRFX_IRQ_IS_ENABLED(irq_number)

◆ NRFY_IRQ_IS_PENDING

#define NRFY_IRQ_IS_PENDING (   irq_number)    NRFX_IRQ_IS_PENDING(irq_number)

◆ NRFY_IRQ_PENDING_CLEAR

#define NRFY_IRQ_PENDING_CLEAR (   irq_number)    NRFX_IRQ_PENDING_CLEAR(irq_number)

◆ NRFY_IRQ_PENDING_SET

#define NRFY_IRQ_PENDING_SET (   irq_number)    NRFX_IRQ_PENDING_SET(irq_number)

◆ NRFY_IRQ_PRIORITY_SET

#define NRFY_IRQ_PRIORITY_SET (   irq_number,
  priority 
)    NRFX_IRQ_PRIORITY_SET(irq_number, priority)

Documentation feedback | Developer Zone | Subscribe | Updated