Fork of the GitHub
st25r3911_interrupt.h@0:98fcd1266df0, 2019-11-14 (annotated)
- Committer:
- DiegoOstuni
- Date:
- Thu Nov 14 14:36:52 2019 +0000
- Revision:
- 0:98fcd1266df0
Fork of the GitHub
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DiegoOstuni | 0:98fcd1266df0 | 1 | |
DiegoOstuni | 0:98fcd1266df0 | 2 | /****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 3 | * @attention |
DiegoOstuni | 0:98fcd1266df0 | 4 | * |
DiegoOstuni | 0:98fcd1266df0 | 5 | * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2> |
DiegoOstuni | 0:98fcd1266df0 | 6 | * |
DiegoOstuni | 0:98fcd1266df0 | 7 | * Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License"); |
DiegoOstuni | 0:98fcd1266df0 | 8 | * You may not use this file except in compliance with the License. |
DiegoOstuni | 0:98fcd1266df0 | 9 | * You may obtain a copy of the License at: |
DiegoOstuni | 0:98fcd1266df0 | 10 | * |
DiegoOstuni | 0:98fcd1266df0 | 11 | * http://www.st.com/myliberty |
DiegoOstuni | 0:98fcd1266df0 | 12 | * |
DiegoOstuni | 0:98fcd1266df0 | 13 | * Unless required by applicable law or agreed to in writing, software |
DiegoOstuni | 0:98fcd1266df0 | 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
DiegoOstuni | 0:98fcd1266df0 | 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, |
DiegoOstuni | 0:98fcd1266df0 | 16 | * AND SPECIFICALLY DISCLAIMING THE IMPLIED WARRANTIES OF MERCHANTABILITY, |
DiegoOstuni | 0:98fcd1266df0 | 17 | * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. |
DiegoOstuni | 0:98fcd1266df0 | 18 | * See the License for the specific language governing permissions and |
DiegoOstuni | 0:98fcd1266df0 | 19 | * limitations under the License. |
DiegoOstuni | 0:98fcd1266df0 | 20 | * |
DiegoOstuni | 0:98fcd1266df0 | 21 | ******************************************************************************/ |
DiegoOstuni | 0:98fcd1266df0 | 22 | |
DiegoOstuni | 0:98fcd1266df0 | 23 | |
DiegoOstuni | 0:98fcd1266df0 | 24 | /* |
DiegoOstuni | 0:98fcd1266df0 | 25 | * PROJECT: ST25R3911 firmware |
DiegoOstuni | 0:98fcd1266df0 | 26 | * $Revision: $ |
DiegoOstuni | 0:98fcd1266df0 | 27 | * LANGUAGE: ISO C99 |
DiegoOstuni | 0:98fcd1266df0 | 28 | */ |
DiegoOstuni | 0:98fcd1266df0 | 29 | |
DiegoOstuni | 0:98fcd1266df0 | 30 | /*! \file |
DiegoOstuni | 0:98fcd1266df0 | 31 | * |
DiegoOstuni | 0:98fcd1266df0 | 32 | * \author Ulrich Herrmann |
DiegoOstuni | 0:98fcd1266df0 | 33 | * |
DiegoOstuni | 0:98fcd1266df0 | 34 | * \brief ST25R3911 Interrupt header file |
DiegoOstuni | 0:98fcd1266df0 | 35 | * |
DiegoOstuni | 0:98fcd1266df0 | 36 | * |
DiegoOstuni | 0:98fcd1266df0 | 37 | * @addtogroup RFAL |
DiegoOstuni | 0:98fcd1266df0 | 38 | * @{ |
DiegoOstuni | 0:98fcd1266df0 | 39 | * |
DiegoOstuni | 0:98fcd1266df0 | 40 | * @addtogroup RFAL-HAL |
DiegoOstuni | 0:98fcd1266df0 | 41 | * @brief RFAL Hardware Abstraction Layer |
DiegoOstuni | 0:98fcd1266df0 | 42 | * @{ |
DiegoOstuni | 0:98fcd1266df0 | 43 | * |
DiegoOstuni | 0:98fcd1266df0 | 44 | * @addtogroup ST25R3911 |
DiegoOstuni | 0:98fcd1266df0 | 45 | * @brief RFAL ST25R3911 Driver |
DiegoOstuni | 0:98fcd1266df0 | 46 | * @{ |
DiegoOstuni | 0:98fcd1266df0 | 47 | * |
DiegoOstuni | 0:98fcd1266df0 | 48 | * @addtogroup ST25R3911_Interrupt |
DiegoOstuni | 0:98fcd1266df0 | 49 | * @brief RFAL ST25R3911 Interrupt |
DiegoOstuni | 0:98fcd1266df0 | 50 | * @{ |
DiegoOstuni | 0:98fcd1266df0 | 51 | * |
DiegoOstuni | 0:98fcd1266df0 | 52 | */ |
DiegoOstuni | 0:98fcd1266df0 | 53 | |
DiegoOstuni | 0:98fcd1266df0 | 54 | #ifndef ST25R3911_INTERRUPT_H |
DiegoOstuni | 0:98fcd1266df0 | 55 | #define ST25R3911_INTERRUPT_H |
DiegoOstuni | 0:98fcd1266df0 | 56 | |
DiegoOstuni | 0:98fcd1266df0 | 57 | /* |
DiegoOstuni | 0:98fcd1266df0 | 58 | ****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 59 | * INCLUDES |
DiegoOstuni | 0:98fcd1266df0 | 60 | ****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 61 | */ |
DiegoOstuni | 0:98fcd1266df0 | 62 | #include "platform1.h" |
DiegoOstuni | 0:98fcd1266df0 | 63 | #include "ST25R3911.h" |
DiegoOstuni | 0:98fcd1266df0 | 64 | |
DiegoOstuni | 0:98fcd1266df0 | 65 | |
DiegoOstuni | 0:98fcd1266df0 | 66 | /* |
DiegoOstuni | 0:98fcd1266df0 | 67 | ****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 68 | * GLOBAL DEFINES |
DiegoOstuni | 0:98fcd1266df0 | 69 | ****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 70 | */ |
DiegoOstuni | 0:98fcd1266df0 | 71 | |
DiegoOstuni | 0:98fcd1266df0 | 72 | /* Main interrupt register. */ |
DiegoOstuni | 0:98fcd1266df0 | 73 | #define ST25R3911_IRQ_MASK_ALL (uint32_t)(0xFFFFFF) /*!< All ST25R3911 interrupt sources. */ |
DiegoOstuni | 0:98fcd1266df0 | 74 | #define ST25R3911_IRQ_MASK_NONE (uint32_t)(0) /*!< No ST25R3911 interrupt source. */ |
DiegoOstuni | 0:98fcd1266df0 | 75 | #define ST25R3911_IRQ_MASK_OSC (uint32_t)(0x80) /*!< ST25R3911 oscillator stable interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 76 | #define ST25R3911_IRQ_MASK_FWL (uint32_t)(0x40) /*!< ST25R3911 FIFO water level interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 77 | #define ST25R3911_IRQ_MASK_RXS (uint32_t)(0x20) /*!< ST25R3911 start of receive interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 78 | #define ST25R3911_IRQ_MASK_RXE (uint32_t)(0x10) /*!< ST25R3911 end of receive interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 79 | #define ST25R3911_IRQ_MASK_TXE (uint32_t)(0x08) /*!< ST25R3911 end of transmission interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 80 | #define ST25R3911_IRQ_MASK_COL (uint32_t)(0x04) /*!< ST25R3911 bit collision interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 81 | |
DiegoOstuni | 0:98fcd1266df0 | 82 | /* Timer and NFC interrupt register. */ |
DiegoOstuni | 0:98fcd1266df0 | 83 | #define ST25R3911_IRQ_MASK_DCT (uint32_t)(0x8000) /*!< ST25R3911 termination of direct command interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 84 | #define ST25R3911_IRQ_MASK_NRE (uint32_t)(0x4000) /*!< ST25R3911 no-response timer expired interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 85 | #define ST25R3911_IRQ_MASK_GPE (uint32_t)(0x2000) /*!< ST25R3911 general purpose timer expired interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 86 | #define ST25R3911_IRQ_MASK_EON (uint32_t)(0x1000) /*!< ST25R3911 external field on interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 87 | #define ST25R3911_IRQ_MASK_EOF (uint32_t)(0x0800) /*!< ST25R3911 external field off interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 88 | #define ST25R3911_IRQ_MASK_CAC (uint32_t)(0x0400) /*!< ST25R3911 collision during RF collision avoidance interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 89 | #define ST25R3911_IRQ_MASK_CAT (uint32_t)(0x0200) /*!< ST25R3911 minimum guard time expired interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 90 | #define ST25R3911_IRQ_MASK_NFCT (uint32_t)(0x0100) /*!< ST25R3911 initiator bit rate recognized interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 91 | |
DiegoOstuni | 0:98fcd1266df0 | 92 | /* Error and wake-up interrupt register. */ |
DiegoOstuni | 0:98fcd1266df0 | 93 | #define ST25R3911_IRQ_MASK_CRC (uint32_t)(0x800000) /*!< ST25R3911 CRC error interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 94 | #define ST25R3911_IRQ_MASK_PAR (uint32_t)(0x400000) /*!< ST25R3911 parity error interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 95 | #define ST25R3911_IRQ_MASK_ERR2 (uint32_t)(0x200000) /*!< ST25R3911 soft framing error interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 96 | #define ST25R3911_IRQ_MASK_ERR1 (uint32_t)(0x100000) /*!< ST25R3911 hard framing error interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 97 | #define ST25R3911_IRQ_MASK_WT (uint32_t)(0x080000) /*!< ST25R3911 wake-up interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 98 | #define ST25R3911_IRQ_MASK_WAM (uint32_t)(0x040000) /*!< ST25R3911 wake-up due to amplitude interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 99 | #define ST25R3911_IRQ_MASK_WPH (uint32_t)(0x020000) /*!< ST25R3911 wake-up due to phase interrupt. */ |
DiegoOstuni | 0:98fcd1266df0 | 100 | #define ST25R3911_IRQ_MASK_WCAP (uint32_t)(0x010000) /*!< ST25R3911 wake-up due to capacitance measurement. */ |
DiegoOstuni | 0:98fcd1266df0 | 101 | |
DiegoOstuni | 0:98fcd1266df0 | 102 | |
DiegoOstuni | 0:98fcd1266df0 | 103 | #define ST25R3911_IRQ_MASK_TIM (0x02) /*!< additional interrupts in ST25R3911_REG_IRQ_TIMER_NFC */ |
DiegoOstuni | 0:98fcd1266df0 | 104 | #define ST25R3911_IRQ_MASK_ERR (0x01) /*!< additional interrupts in ST25R3911_REG_IRQ_ERROR_WUP */ |
DiegoOstuni | 0:98fcd1266df0 | 105 | |
DiegoOstuni | 0:98fcd1266df0 | 106 | |
DiegoOstuni | 0:98fcd1266df0 | 107 | /* |
DiegoOstuni | 0:98fcd1266df0 | 108 | ****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 109 | * GLOBAL FUNCTION PROTOTYPES |
DiegoOstuni | 0:98fcd1266df0 | 110 | ****************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 111 | */ |
DiegoOstuni | 0:98fcd1266df0 | 112 | |
DiegoOstuni | 0:98fcd1266df0 | 113 | |
DiegoOstuni | 0:98fcd1266df0 | 114 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 115 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 116 | * \brief Wait until an ST25R3911 interrupt occurs |
DiegoOstuni | 0:98fcd1266df0 | 117 | * |
DiegoOstuni | 0:98fcd1266df0 | 118 | * This function is used to access the ST25R3911 interrupt flags. Use this |
DiegoOstuni | 0:98fcd1266df0 | 119 | * to wait for max. \a tmo milliseconds for the \b first interrupt indicated |
DiegoOstuni | 0:98fcd1266df0 | 120 | * with mask \a mask to occur. |
DiegoOstuni | 0:98fcd1266df0 | 121 | * |
DiegoOstuni | 0:98fcd1266df0 | 122 | * \param[in] mask : mask indicating the interrupts to wait for. |
DiegoOstuni | 0:98fcd1266df0 | 123 | * \param[in] tmo : time in milliseconds until timeout occurs. If set to 0 |
DiegoOstuni | 0:98fcd1266df0 | 124 | * the functions waits forever. |
DiegoOstuni | 0:98fcd1266df0 | 125 | * |
DiegoOstuni | 0:98fcd1266df0 | 126 | * \return : 0 if timeout occured otherwise a mask indicating the cleared |
DiegoOstuni | 0:98fcd1266df0 | 127 | * interrupts. |
DiegoOstuni | 0:98fcd1266df0 | 128 | * |
DiegoOstuni | 0:98fcd1266df0 | 129 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 130 | */ |
DiegoOstuni | 0:98fcd1266df0 | 131 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 132 | |
DiegoOstuni | 0:98fcd1266df0 | 133 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 134 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 135 | * \brief Get status for the given interrupt |
DiegoOstuni | 0:98fcd1266df0 | 136 | * |
DiegoOstuni | 0:98fcd1266df0 | 137 | * This function is used to check whether the interrupt given by \a mask |
DiegoOstuni | 0:98fcd1266df0 | 138 | * has occured. If yes the interrupt gets cleared. This function returns |
DiegoOstuni | 0:98fcd1266df0 | 139 | * only status bits which are inside \a mask. |
DiegoOstuni | 0:98fcd1266df0 | 140 | * |
DiegoOstuni | 0:98fcd1266df0 | 141 | * \param[in] mask : mask indicating the interrupt to check for. |
DiegoOstuni | 0:98fcd1266df0 | 142 | * |
DiegoOstuni | 0:98fcd1266df0 | 143 | * \return the mask of the interrupts occurred |
DiegoOstuni | 0:98fcd1266df0 | 144 | * |
DiegoOstuni | 0:98fcd1266df0 | 145 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 146 | */ |
DiegoOstuni | 0:98fcd1266df0 | 147 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 148 | |
DiegoOstuni | 0:98fcd1266df0 | 149 | |
DiegoOstuni | 0:98fcd1266df0 | 150 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 151 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 152 | * \brief Checks if there is an interrupt |
DiegoOstuni | 0:98fcd1266df0 | 153 | * |
DiegoOstuni | 0:98fcd1266df0 | 154 | * This function is used to check whether the interrupt given by \a mask |
DiegoOstuni | 0:98fcd1266df0 | 155 | * has occured. |
DiegoOstuni | 0:98fcd1266df0 | 156 | * |
DiegoOstuni | 0:98fcd1266df0 | 157 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 158 | */ |
DiegoOstuni | 0:98fcd1266df0 | 159 | //extern void st25r3911CheckForReceivedInterrupts( SPI* mspiChannel ); |
DiegoOstuni | 0:98fcd1266df0 | 160 | |
DiegoOstuni | 0:98fcd1266df0 | 161 | |
DiegoOstuni | 0:98fcd1266df0 | 162 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 163 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 164 | * \brief Init the 3911 interrupt |
DiegoOstuni | 0:98fcd1266df0 | 165 | * |
DiegoOstuni | 0:98fcd1266df0 | 166 | * This function is used to check whether the interrupt given by \a mask |
DiegoOstuni | 0:98fcd1266df0 | 167 | * has occured. |
DiegoOstuni | 0:98fcd1266df0 | 168 | * |
DiegoOstuni | 0:98fcd1266df0 | 169 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 170 | */ |
DiegoOstuni | 0:98fcd1266df0 | 171 | extern void st25r3911InitInterrupts( DigitalOut* fieldLED_06 ); |
DiegoOstuni | 0:98fcd1266df0 | 172 | |
DiegoOstuni | 0:98fcd1266df0 | 173 | |
DiegoOstuni | 0:98fcd1266df0 | 174 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 175 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 176 | * \brief Modifies the Interrupt |
DiegoOstuni | 0:98fcd1266df0 | 177 | * |
DiegoOstuni | 0:98fcd1266df0 | 178 | * This function modifies the interrupt |
DiegoOstuni | 0:98fcd1266df0 | 179 | * |
DiegoOstuni | 0:98fcd1266df0 | 180 | * \param[in] clr_mask : bit mask to be cleared on the interrupt mask |
DiegoOstuni | 0:98fcd1266df0 | 181 | * \param[in] set_mask : bit mask to be set on the interrupt mask |
DiegoOstuni | 0:98fcd1266df0 | 182 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 183 | */ |
DiegoOstuni | 0:98fcd1266df0 | 184 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 185 | |
DiegoOstuni | 0:98fcd1266df0 | 186 | |
DiegoOstuni | 0:98fcd1266df0 | 187 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 188 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 189 | * \brief Checks received interrupts |
DiegoOstuni | 0:98fcd1266df0 | 190 | * |
DiegoOstuni | 0:98fcd1266df0 | 191 | * Checks received interrupts and saves the result into global params |
DiegoOstuni | 0:98fcd1266df0 | 192 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 193 | */ |
DiegoOstuni | 0:98fcd1266df0 | 194 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 195 | |
DiegoOstuni | 0:98fcd1266df0 | 196 | |
DiegoOstuni | 0:98fcd1266df0 | 197 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 198 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 199 | * \brief ISR Service routine |
DiegoOstuni | 0:98fcd1266df0 | 200 | * |
DiegoOstuni | 0:98fcd1266df0 | 201 | * This function modifies the interrupt |
DiegoOstuni | 0:98fcd1266df0 | 202 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 203 | */ |
DiegoOstuni | 0:98fcd1266df0 | 204 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 205 | |
DiegoOstuni | 0:98fcd1266df0 | 206 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 207 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 208 | * \brief Enable a given ST25R3911 Interrupt source |
DiegoOstuni | 0:98fcd1266df0 | 209 | * |
DiegoOstuni | 0:98fcd1266df0 | 210 | * This function enables all interrupts given by \a mask, |
DiegoOstuni | 0:98fcd1266df0 | 211 | * ST25R3911_IRQ_MASK_ALL enables all interrupts. |
DiegoOstuni | 0:98fcd1266df0 | 212 | * |
DiegoOstuni | 0:98fcd1266df0 | 213 | * \param[in] mask: mask indicating the interrupts to be enabled |
DiegoOstuni | 0:98fcd1266df0 | 214 | * |
DiegoOstuni | 0:98fcd1266df0 | 215 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 216 | */ |
DiegoOstuni | 0:98fcd1266df0 | 217 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 218 | |
DiegoOstuni | 0:98fcd1266df0 | 219 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 220 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 221 | * \brief Disable one or more a given ST25R3911 Interrupt sources |
DiegoOstuni | 0:98fcd1266df0 | 222 | * |
DiegoOstuni | 0:98fcd1266df0 | 223 | * This function disables all interrupts given by \a mask. 0xff disables all. |
DiegoOstuni | 0:98fcd1266df0 | 224 | * |
DiegoOstuni | 0:98fcd1266df0 | 225 | * \param[in] mask: mask indicating the interrupts to be disabled. |
DiegoOstuni | 0:98fcd1266df0 | 226 | * |
DiegoOstuni | 0:98fcd1266df0 | 227 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 228 | */ |
DiegoOstuni | 0:98fcd1266df0 | 229 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 230 | |
DiegoOstuni | 0:98fcd1266df0 | 231 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 232 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 233 | * \brief Clear all st25r3911 irq flags |
DiegoOstuni | 0:98fcd1266df0 | 234 | * |
DiegoOstuni | 0:98fcd1266df0 | 235 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 236 | */ |
DiegoOstuni | 0:98fcd1266df0 | 237 | extern 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 ); |
DiegoOstuni | 0:98fcd1266df0 | 238 | |
DiegoOstuni | 0:98fcd1266df0 | 239 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 240 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 241 | * \brief Sets IRQ callback for the ST25R3911 interrupt |
DiegoOstuni | 0:98fcd1266df0 | 242 | * |
DiegoOstuni | 0:98fcd1266df0 | 243 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 244 | */ |
DiegoOstuni | 0:98fcd1266df0 | 245 | extern void st25r3911IRQCallbackSet(void (*cb)()); |
DiegoOstuni | 0:98fcd1266df0 | 246 | |
DiegoOstuni | 0:98fcd1266df0 | 247 | /*! |
DiegoOstuni | 0:98fcd1266df0 | 248 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 249 | * \brief Sets IRQ callback for the ST25R3911 interrupt |
DiegoOstuni | 0:98fcd1266df0 | 250 | * |
DiegoOstuni | 0:98fcd1266df0 | 251 | ***************************************************************************** |
DiegoOstuni | 0:98fcd1266df0 | 252 | */ |
DiegoOstuni | 0:98fcd1266df0 | 253 | extern void st25r3911IRQCallbackRestore(void); |
DiegoOstuni | 0:98fcd1266df0 | 254 | |
DiegoOstuni | 0:98fcd1266df0 | 255 | extern uint8_t st25r3911ChipHasWoke( void ); |
DiegoOstuni | 0:98fcd1266df0 | 256 | |
DiegoOstuni | 0:98fcd1266df0 | 257 | #endif /* ST25R3911_ISR_H */ |
DiegoOstuni | 0:98fcd1266df0 | 258 | |
DiegoOstuni | 0:98fcd1266df0 | 259 | /** |
DiegoOstuni | 0:98fcd1266df0 | 260 | * @} |
DiegoOstuni | 0:98fcd1266df0 | 261 | * |
DiegoOstuni | 0:98fcd1266df0 | 262 | * @} |
DiegoOstuni | 0:98fcd1266df0 | 263 | * |
DiegoOstuni | 0:98fcd1266df0 | 264 | * @} |
DiegoOstuni | 0:98fcd1266df0 | 265 | * |
DiegoOstuni | 0:98fcd1266df0 | 266 | * @} |
DiegoOstuni | 0:98fcd1266df0 | 267 | */ |