Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RFAL ST25R3911 Interrupt. More...
Functions | |
| uint32_t | st25r3911WaitForInterruptsTimed (uint32_t mask, uint16_t tmo, SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Wait until an ST25R3911 interrupt occurs. | |
| uint32_t | st25r3911GetInterrupt (uint32_t mask, SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Get status for the given interrupt. | |
| void | st25r3911InitInterrupts (DigitalOut *fieldLED_06) |
| Checks if there is an interrupt. | |
| void | st25r3911ModifyInterrupts (uint32_t clr_mask, uint32_t set_mask, SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Modifies the Interrupt. | |
| void | st25r3911CheckForReceivedInterrupts (SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Checks received interrupts. | |
| void | st25r3911Isr (SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| ISR Service routine. | |
| void | st25r3911EnableInterrupts (uint32_t mask, SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Enable a given ST25R3911 Interrupt source. | |
| void | st25r3911DisableInterrupts (uint32_t mask, SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Disable one or more a given ST25R3911 Interrupt sources. | |
| void | st25r3911ClearInterrupts (SPI *mspiChannel, ST25R3911 *mST25, DigitalOut *gpio_cs, InterruptIn *IRQ, DigitalOut *fieldLED_01, DigitalOut *fieldLED_02, DigitalOut *fieldLED_03, DigitalOut *fieldLED_04, DigitalOut *fieldLED_05, DigitalOut *fieldLED_06) |
| Clear all st25r3911 irq flags. | |
| void | st25r3911IRQCallbackSet (void(*cb)()) |
| Sets IRQ callback for the ST25R3911 interrupt. | |
| void | st25r3911IRQCallbackRestore (void) |
| Sets IRQ callback for the ST25R3911 interrupt. | |
Detailed Description
RFAL ST25R3911 Interrupt.
Function Documentation
| void st25r3911CheckForReceivedInterrupts | ( | SPI * | mspiChannel, |
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Checks received interrupts.
Checks received interrupts and saves the result into global params
Definition at line 110 of file st25r3911_interrupt.cpp.
| void st25r3911ClearInterrupts | ( | SPI * | mspiChannel, |
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Clear all st25r3911 irq flags.
Definition at line 201 of file st25r3911_interrupt.cpp.
| void st25r3911DisableInterrupts | ( | uint32_t | mask, |
| SPI * | mspiChannel, | ||
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Disable one or more a given ST25R3911 Interrupt sources.
This function disables all interrupts given by mask. 0xff disables all.
- Parameters:
-
[in] mask,: mask indicating the interrupts to be disabled.
Definition at line 196 of file st25r3911_interrupt.cpp.
| void st25r3911EnableInterrupts | ( | uint32_t | mask, |
| SPI * | mspiChannel, | ||
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Enable a given ST25R3911 Interrupt source.
This function enables all interrupts given by mask, ST25R3911_IRQ_MASK_ALL enables all interrupts.
- Parameters:
-
[in] mask,: mask indicating the interrupts to be enabled
Definition at line 191 of file st25r3911_interrupt.cpp.
| uint32_t st25r3911GetInterrupt | ( | uint32_t | mask, |
| SPI * | mspiChannel, | ||
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Get status for the given interrupt.
This function is used to check whether the interrupt given by mask has occured. If yes the interrupt gets cleared. This function returns only status bits which are inside mask.
- Parameters:
-
[in] mask : mask indicating the interrupt to check for.
- Returns:
- the mask of the interrupts occurred
Definition at line 177 of file st25r3911_interrupt.cpp.
| void st25r3911InitInterrupts | ( | DigitalOut * | fieldLED_06 ) |
Checks if there is an interrupt.
This function is used to check whether the interrupt given by mask has occured.
Init the 3911 interrupt
This function is used to check whether the interrupt given by mask has occured.
Definition at line 89 of file st25r3911_interrupt.cpp.
| void st25r3911IRQCallbackRestore | ( | void | ) |
Sets IRQ callback for the ST25R3911 interrupt.
Definition at line 219 of file st25r3911_interrupt.cpp.
| void st25r3911IRQCallbackSet | ( | void(*)() | cb ) |
Sets IRQ callback for the ST25R3911 interrupt.
Definition at line 213 of file st25r3911_interrupt.cpp.
| void st25r3911Isr | ( | SPI * | mspiChannel, |
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
ISR Service routine.
This function modifies the interrupt
Definition at line 102 of file st25r3911_interrupt.cpp.
| void st25r3911ModifyInterrupts | ( | uint32_t | clr_mask, |
| uint32_t | set_mask, | ||
| SPI * | mspiChannel, | ||
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Modifies the Interrupt.
This function modifies the interrupt
- Parameters:
-
[in] clr_mask : bit mask to be cleared on the interrupt mask [in] set_mask : bit mask to be set on the interrupt mask
Definition at line 137 of file st25r3911_interrupt.cpp.
| uint32_t st25r3911WaitForInterruptsTimed | ( | uint32_t | mask, |
| uint16_t | tmo, | ||
| SPI * | mspiChannel, | ||
| ST25R3911 * | mST25, | ||
| DigitalOut * | gpio_cs, | ||
| InterruptIn * | IRQ, | ||
| DigitalOut * | fieldLED_01, | ||
| DigitalOut * | fieldLED_02, | ||
| DigitalOut * | fieldLED_03, | ||
| DigitalOut * | fieldLED_04, | ||
| DigitalOut * | fieldLED_05, | ||
| DigitalOut * | fieldLED_06 | ||
| ) |
Wait until an ST25R3911 interrupt occurs.
This function is used to access the ST25R3911 interrupt flags. Use this to wait for max. tmo milliseconds for the first interrupt indicated with mask mask to occur.
- Parameters:
-
[in] mask : mask indicating the interrupts to wait for. [in] tmo : time in milliseconds until timeout occurs. If set to 0 the functions waits forever.
- Returns:
- : 0 if timeout occured otherwise a mask indicating the cleared interrupts.
Definition at line 156 of file st25r3911_interrupt.cpp.
Generated on Tue Jul 12 2022 18:07:56 by
1.7.2