![](/media/cache/profiles/5f55d0baa59f4bc1dc393149183f1492.jpg.50x50_q85.jpg)
wifi test
Dependencies: X_NUCLEO_IKS01A2 mbed-http
easy-connect/mcr20a-rf-driver/source/MCR20Drv.h@0:24d3eb812fd4, 2018-09-05 (annotated)
- Committer:
- JMF
- Date:
- Wed Sep 05 14:28:24 2018 +0000
- Revision:
- 0:24d3eb812fd4
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:24d3eb812fd4 | 1 | /*! |
JMF | 0:24d3eb812fd4 | 2 | * Copyright (c) 2015, Freescale Semiconductor, Inc. |
JMF | 0:24d3eb812fd4 | 3 | * All rights reserved. |
JMF | 0:24d3eb812fd4 | 4 | * |
JMF | 0:24d3eb812fd4 | 5 | * \file MCR20Drv.h |
JMF | 0:24d3eb812fd4 | 6 | * |
JMF | 0:24d3eb812fd4 | 7 | * Redistribution and use in source and binary forms, with or without modification, |
JMF | 0:24d3eb812fd4 | 8 | * are permitted provided that the following conditions are met: |
JMF | 0:24d3eb812fd4 | 9 | * |
JMF | 0:24d3eb812fd4 | 10 | * o Redistributions of source code must retain the above copyright notice, this list |
JMF | 0:24d3eb812fd4 | 11 | * of conditions and the following disclaimer. |
JMF | 0:24d3eb812fd4 | 12 | * |
JMF | 0:24d3eb812fd4 | 13 | * o Redistributions in binary form must reproduce the above copyright notice, this |
JMF | 0:24d3eb812fd4 | 14 | * list of conditions and the following disclaimer in the documentation and/or |
JMF | 0:24d3eb812fd4 | 15 | * other materials provided with the distribution. |
JMF | 0:24d3eb812fd4 | 16 | * |
JMF | 0:24d3eb812fd4 | 17 | * o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
JMF | 0:24d3eb812fd4 | 18 | * contributors may be used to endorse or promote products derived from this |
JMF | 0:24d3eb812fd4 | 19 | * software without specific prior written permission. |
JMF | 0:24d3eb812fd4 | 20 | * |
JMF | 0:24d3eb812fd4 | 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
JMF | 0:24d3eb812fd4 | 22 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
JMF | 0:24d3eb812fd4 | 23 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
JMF | 0:24d3eb812fd4 | 24 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
JMF | 0:24d3eb812fd4 | 25 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
JMF | 0:24d3eb812fd4 | 26 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
JMF | 0:24d3eb812fd4 | 27 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
JMF | 0:24d3eb812fd4 | 28 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
JMF | 0:24d3eb812fd4 | 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
JMF | 0:24d3eb812fd4 | 30 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
JMF | 0:24d3eb812fd4 | 31 | */ |
JMF | 0:24d3eb812fd4 | 32 | |
JMF | 0:24d3eb812fd4 | 33 | #ifndef __MCR20_DRV_H__ |
JMF | 0:24d3eb812fd4 | 34 | #define __MCR20_DRV_H__ |
JMF | 0:24d3eb812fd4 | 35 | |
JMF | 0:24d3eb812fd4 | 36 | #include <stdint.h> |
JMF | 0:24d3eb812fd4 | 37 | |
JMF | 0:24d3eb812fd4 | 38 | /***************************************************************************** |
JMF | 0:24d3eb812fd4 | 39 | * INCLUDED HEADERS * |
JMF | 0:24d3eb812fd4 | 40 | *---------------------------------------------------------------------------* |
JMF | 0:24d3eb812fd4 | 41 | * Add to this section all the headers that this module needs to include. * |
JMF | 0:24d3eb812fd4 | 42 | * Note that it is not a good practice to include header files into header * |
JMF | 0:24d3eb812fd4 | 43 | * files, so use this section only if there is no other better solution. * |
JMF | 0:24d3eb812fd4 | 44 | *---------------------------------------------------------------------------* |
JMF | 0:24d3eb812fd4 | 45 | *****************************************************************************/ |
JMF | 0:24d3eb812fd4 | 46 | |
JMF | 0:24d3eb812fd4 | 47 | /***************************************************************************** |
JMF | 0:24d3eb812fd4 | 48 | * PRIVATE MACROS * |
JMF | 0:24d3eb812fd4 | 49 | *---------------------------------------------------------------------------* |
JMF | 0:24d3eb812fd4 | 50 | * Add to this section all the access macros, registers mappings, bit access * |
JMF | 0:24d3eb812fd4 | 51 | * macros, masks, flags etc ... |
JMF | 0:24d3eb812fd4 | 52 | *---------------------------------------------------------------------------* |
JMF | 0:24d3eb812fd4 | 53 | *****************************************************************************/ |
JMF | 0:24d3eb812fd4 | 54 | |
JMF | 0:24d3eb812fd4 | 55 | /* Disable XCVR clock output by default, to reduce power consumption */ |
JMF | 0:24d3eb812fd4 | 56 | #ifndef gMCR20_ClkOutFreq_d |
JMF | 0:24d3eb812fd4 | 57 | #define gMCR20_ClkOutFreq_d gCLK_OUT_FREQ_DISABLE |
JMF | 0:24d3eb812fd4 | 58 | #endif |
JMF | 0:24d3eb812fd4 | 59 | |
JMF | 0:24d3eb812fd4 | 60 | /***************************************************************************** |
JMF | 0:24d3eb812fd4 | 61 | * PUBLIC FUNCTIONS * |
JMF | 0:24d3eb812fd4 | 62 | *---------------------------------------------------------------------------* |
JMF | 0:24d3eb812fd4 | 63 | * Add to this section all the global functions prototype preceded (as a * |
JMF | 0:24d3eb812fd4 | 64 | * good practice) by the keyword 'extern' * |
JMF | 0:24d3eb812fd4 | 65 | *---------------------------------------------------------------------------* |
JMF | 0:24d3eb812fd4 | 66 | *****************************************************************************/ |
JMF | 0:24d3eb812fd4 | 67 | |
JMF | 0:24d3eb812fd4 | 68 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 69 | * Name: MCR20Drv_Init |
JMF | 0:24d3eb812fd4 | 70 | * Description: - |
JMF | 0:24d3eb812fd4 | 71 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 72 | * Return: - |
JMF | 0:24d3eb812fd4 | 73 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 74 | extern void MCR20Drv_Init |
JMF | 0:24d3eb812fd4 | 75 | ( |
JMF | 0:24d3eb812fd4 | 76 | void |
JMF | 0:24d3eb812fd4 | 77 | ); |
JMF | 0:24d3eb812fd4 | 78 | |
JMF | 0:24d3eb812fd4 | 79 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 80 | * Name: MCR20Drv_SPI_DMA_Init |
JMF | 0:24d3eb812fd4 | 81 | * Description: - |
JMF | 0:24d3eb812fd4 | 82 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 83 | * Return: - |
JMF | 0:24d3eb812fd4 | 84 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 85 | void MCR20Drv_SPI_DMA_Init |
JMF | 0:24d3eb812fd4 | 86 | ( |
JMF | 0:24d3eb812fd4 | 87 | void |
JMF | 0:24d3eb812fd4 | 88 | ); |
JMF | 0:24d3eb812fd4 | 89 | |
JMF | 0:24d3eb812fd4 | 90 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 91 | * Name: MCR20Drv_Start_PB_DMA_SPI_Write |
JMF | 0:24d3eb812fd4 | 92 | * Description: - |
JMF | 0:24d3eb812fd4 | 93 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 94 | * Return: - |
JMF | 0:24d3eb812fd4 | 95 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 96 | void MCR20Drv_Start_PB_DMA_SPI_Write |
JMF | 0:24d3eb812fd4 | 97 | ( |
JMF | 0:24d3eb812fd4 | 98 | uint8_t * srcAddress, |
JMF | 0:24d3eb812fd4 | 99 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 100 | ); |
JMF | 0:24d3eb812fd4 | 101 | |
JMF | 0:24d3eb812fd4 | 102 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 103 | * Name: MCR20Drv_Start_PB_DMA_SPI_Read |
JMF | 0:24d3eb812fd4 | 104 | * Description: - |
JMF | 0:24d3eb812fd4 | 105 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 106 | * Return: - |
JMF | 0:24d3eb812fd4 | 107 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 108 | void MCR20Drv_Start_PB_DMA_SPI_Read |
JMF | 0:24d3eb812fd4 | 109 | ( |
JMF | 0:24d3eb812fd4 | 110 | uint8_t * dstAddress, |
JMF | 0:24d3eb812fd4 | 111 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 112 | ); |
JMF | 0:24d3eb812fd4 | 113 | |
JMF | 0:24d3eb812fd4 | 114 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 115 | * Name: MCR20Drv_DirectAccessSPIWrite |
JMF | 0:24d3eb812fd4 | 116 | * Description: - |
JMF | 0:24d3eb812fd4 | 117 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 118 | * Return: - |
JMF | 0:24d3eb812fd4 | 119 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 120 | void MCR20Drv_DirectAccessSPIWrite |
JMF | 0:24d3eb812fd4 | 121 | ( |
JMF | 0:24d3eb812fd4 | 122 | uint8_t address, |
JMF | 0:24d3eb812fd4 | 123 | uint8_t value |
JMF | 0:24d3eb812fd4 | 124 | ); |
JMF | 0:24d3eb812fd4 | 125 | |
JMF | 0:24d3eb812fd4 | 126 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 127 | * Name: MCR20Drv_DirectAccessSPIMultiByteWrite |
JMF | 0:24d3eb812fd4 | 128 | * Description: - |
JMF | 0:24d3eb812fd4 | 129 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 130 | * Return: - |
JMF | 0:24d3eb812fd4 | 131 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 132 | void MCR20Drv_DirectAccessSPIMultiByteWrite |
JMF | 0:24d3eb812fd4 | 133 | ( |
JMF | 0:24d3eb812fd4 | 134 | uint8_t startAddress, |
JMF | 0:24d3eb812fd4 | 135 | uint8_t * byteArray, |
JMF | 0:24d3eb812fd4 | 136 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 137 | ); |
JMF | 0:24d3eb812fd4 | 138 | |
JMF | 0:24d3eb812fd4 | 139 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 140 | * Name: MCR20Drv_PB_SPIBurstWrite |
JMF | 0:24d3eb812fd4 | 141 | * Description: - |
JMF | 0:24d3eb812fd4 | 142 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 143 | * Return: - |
JMF | 0:24d3eb812fd4 | 144 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 145 | void MCR20Drv_PB_SPIBurstWrite |
JMF | 0:24d3eb812fd4 | 146 | ( |
JMF | 0:24d3eb812fd4 | 147 | uint8_t * byteArray, |
JMF | 0:24d3eb812fd4 | 148 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 149 | ); |
JMF | 0:24d3eb812fd4 | 150 | |
JMF | 0:24d3eb812fd4 | 151 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 152 | * Name: MCR20Drv_DirectAccessSPIRead |
JMF | 0:24d3eb812fd4 | 153 | * Description: - |
JMF | 0:24d3eb812fd4 | 154 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 155 | * Return: - |
JMF | 0:24d3eb812fd4 | 156 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 157 | uint8_t MCR20Drv_DirectAccessSPIRead |
JMF | 0:24d3eb812fd4 | 158 | ( |
JMF | 0:24d3eb812fd4 | 159 | uint8_t address |
JMF | 0:24d3eb812fd4 | 160 | ); |
JMF | 0:24d3eb812fd4 | 161 | |
JMF | 0:24d3eb812fd4 | 162 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 163 | * Name: MCR20Drv_DirectAccessSPIMultyByteRead |
JMF | 0:24d3eb812fd4 | 164 | * Description: - |
JMF | 0:24d3eb812fd4 | 165 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 166 | * Return: - |
JMF | 0:24d3eb812fd4 | 167 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 168 | |
JMF | 0:24d3eb812fd4 | 169 | uint8_t MCR20Drv_DirectAccessSPIMultiByteRead |
JMF | 0:24d3eb812fd4 | 170 | ( |
JMF | 0:24d3eb812fd4 | 171 | uint8_t startAddress, |
JMF | 0:24d3eb812fd4 | 172 | uint8_t * byteArray, |
JMF | 0:24d3eb812fd4 | 173 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 174 | ); |
JMF | 0:24d3eb812fd4 | 175 | |
JMF | 0:24d3eb812fd4 | 176 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 177 | * Name: MCR20Drv_PB_SPIByteWrite |
JMF | 0:24d3eb812fd4 | 178 | * Description: - |
JMF | 0:24d3eb812fd4 | 179 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 180 | * Return: - |
JMF | 0:24d3eb812fd4 | 181 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 182 | void MCR20Drv_PB_SPIByteWrite |
JMF | 0:24d3eb812fd4 | 183 | ( |
JMF | 0:24d3eb812fd4 | 184 | uint8_t address, |
JMF | 0:24d3eb812fd4 | 185 | uint8_t value |
JMF | 0:24d3eb812fd4 | 186 | ); |
JMF | 0:24d3eb812fd4 | 187 | |
JMF | 0:24d3eb812fd4 | 188 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 189 | * Name: MCR20Drv_PB_SPIBurstRead |
JMF | 0:24d3eb812fd4 | 190 | * Description: - |
JMF | 0:24d3eb812fd4 | 191 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 192 | * Return: - |
JMF | 0:24d3eb812fd4 | 193 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 194 | uint8_t MCR20Drv_PB_SPIBurstRead |
JMF | 0:24d3eb812fd4 | 195 | ( |
JMF | 0:24d3eb812fd4 | 196 | uint8_t * byteArray, |
JMF | 0:24d3eb812fd4 | 197 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 198 | ); |
JMF | 0:24d3eb812fd4 | 199 | |
JMF | 0:24d3eb812fd4 | 200 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 201 | * Name: MCR20Drv_IndirectAccessSPIWrite |
JMF | 0:24d3eb812fd4 | 202 | * Description: - |
JMF | 0:24d3eb812fd4 | 203 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 204 | * Return: - |
JMF | 0:24d3eb812fd4 | 205 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 206 | void MCR20Drv_IndirectAccessSPIWrite |
JMF | 0:24d3eb812fd4 | 207 | ( |
JMF | 0:24d3eb812fd4 | 208 | uint8_t address, |
JMF | 0:24d3eb812fd4 | 209 | uint8_t value |
JMF | 0:24d3eb812fd4 | 210 | ); |
JMF | 0:24d3eb812fd4 | 211 | |
JMF | 0:24d3eb812fd4 | 212 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 213 | * Name: MCR20Drv_IndirectAccessSPIMultiByteWrite |
JMF | 0:24d3eb812fd4 | 214 | * Description: - |
JMF | 0:24d3eb812fd4 | 215 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 216 | * Return: - |
JMF | 0:24d3eb812fd4 | 217 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 218 | void MCR20Drv_IndirectAccessSPIMultiByteWrite |
JMF | 0:24d3eb812fd4 | 219 | ( |
JMF | 0:24d3eb812fd4 | 220 | uint8_t startAddress, |
JMF | 0:24d3eb812fd4 | 221 | uint8_t * byteArray, |
JMF | 0:24d3eb812fd4 | 222 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 223 | ); |
JMF | 0:24d3eb812fd4 | 224 | |
JMF | 0:24d3eb812fd4 | 225 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 226 | * Name: MCR20Drv_IndirectAccessSPIRead |
JMF | 0:24d3eb812fd4 | 227 | * Description: - |
JMF | 0:24d3eb812fd4 | 228 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 229 | * Return: - |
JMF | 0:24d3eb812fd4 | 230 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 231 | uint8_t MCR20Drv_IndirectAccessSPIRead |
JMF | 0:24d3eb812fd4 | 232 | ( |
JMF | 0:24d3eb812fd4 | 233 | uint8_t address |
JMF | 0:24d3eb812fd4 | 234 | ); |
JMF | 0:24d3eb812fd4 | 235 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 236 | * Name: MCR20Drv_IndirectAccessSPIMultiByteRead |
JMF | 0:24d3eb812fd4 | 237 | * Description: - |
JMF | 0:24d3eb812fd4 | 238 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 239 | * Return: - |
JMF | 0:24d3eb812fd4 | 240 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 241 | void MCR20Drv_IndirectAccessSPIMultiByteRead |
JMF | 0:24d3eb812fd4 | 242 | ( |
JMF | 0:24d3eb812fd4 | 243 | uint8_t startAddress, |
JMF | 0:24d3eb812fd4 | 244 | uint8_t * byteArray, |
JMF | 0:24d3eb812fd4 | 245 | uint8_t numOfBytes |
JMF | 0:24d3eb812fd4 | 246 | ); |
JMF | 0:24d3eb812fd4 | 247 | |
JMF | 0:24d3eb812fd4 | 248 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 249 | * Name: MCR20Drv_IsIrqPending |
JMF | 0:24d3eb812fd4 | 250 | * Description: - |
JMF | 0:24d3eb812fd4 | 251 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 252 | * Return: - |
JMF | 0:24d3eb812fd4 | 253 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 254 | uint32_t MCR20Drv_IsIrqPending |
JMF | 0:24d3eb812fd4 | 255 | ( |
JMF | 0:24d3eb812fd4 | 256 | void |
JMF | 0:24d3eb812fd4 | 257 | ); |
JMF | 0:24d3eb812fd4 | 258 | |
JMF | 0:24d3eb812fd4 | 259 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 260 | * Name: MCR20Drv_IRQ_Disable |
JMF | 0:24d3eb812fd4 | 261 | * Description: - |
JMF | 0:24d3eb812fd4 | 262 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 263 | * Return: - |
JMF | 0:24d3eb812fd4 | 264 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 265 | void MCR20Drv_IRQ_Disable |
JMF | 0:24d3eb812fd4 | 266 | ( |
JMF | 0:24d3eb812fd4 | 267 | void |
JMF | 0:24d3eb812fd4 | 268 | ); |
JMF | 0:24d3eb812fd4 | 269 | |
JMF | 0:24d3eb812fd4 | 270 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 271 | * Name: MCR20Drv_IRQ_Enable |
JMF | 0:24d3eb812fd4 | 272 | * Description: - |
JMF | 0:24d3eb812fd4 | 273 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 274 | * Return: - |
JMF | 0:24d3eb812fd4 | 275 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 276 | void MCR20Drv_IRQ_Enable |
JMF | 0:24d3eb812fd4 | 277 | ( |
JMF | 0:24d3eb812fd4 | 278 | void |
JMF | 0:24d3eb812fd4 | 279 | ); |
JMF | 0:24d3eb812fd4 | 280 | |
JMF | 0:24d3eb812fd4 | 281 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 282 | * Name: MCR20Drv_RST_PortConfig |
JMF | 0:24d3eb812fd4 | 283 | * Description: - |
JMF | 0:24d3eb812fd4 | 284 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 285 | * Return: - |
JMF | 0:24d3eb812fd4 | 286 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 287 | void MCR20Drv_RST_B_PortConfig |
JMF | 0:24d3eb812fd4 | 288 | ( |
JMF | 0:24d3eb812fd4 | 289 | void |
JMF | 0:24d3eb812fd4 | 290 | ); |
JMF | 0:24d3eb812fd4 | 291 | |
JMF | 0:24d3eb812fd4 | 292 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 293 | * Name: MCR20Drv_RST_Assert |
JMF | 0:24d3eb812fd4 | 294 | * Description: - |
JMF | 0:24d3eb812fd4 | 295 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 296 | * Return: - |
JMF | 0:24d3eb812fd4 | 297 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 298 | void MCR20Drv_RST_B_Assert |
JMF | 0:24d3eb812fd4 | 299 | ( |
JMF | 0:24d3eb812fd4 | 300 | void |
JMF | 0:24d3eb812fd4 | 301 | ); |
JMF | 0:24d3eb812fd4 | 302 | |
JMF | 0:24d3eb812fd4 | 303 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 304 | * Name: MCR20Drv_RST_Deassert |
JMF | 0:24d3eb812fd4 | 305 | * Description: - |
JMF | 0:24d3eb812fd4 | 306 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 307 | * Return: - |
JMF | 0:24d3eb812fd4 | 308 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 309 | void MCR20Drv_RST_B_Deassert |
JMF | 0:24d3eb812fd4 | 310 | ( |
JMF | 0:24d3eb812fd4 | 311 | void |
JMF | 0:24d3eb812fd4 | 312 | ); |
JMF | 0:24d3eb812fd4 | 313 | |
JMF | 0:24d3eb812fd4 | 314 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 315 | * Name: MCR20Drv_SoftRST_Assert |
JMF | 0:24d3eb812fd4 | 316 | * Description: - |
JMF | 0:24d3eb812fd4 | 317 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 318 | * Return: - |
JMF | 0:24d3eb812fd4 | 319 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 320 | void MCR20Drv_SoftRST_Assert |
JMF | 0:24d3eb812fd4 | 321 | ( |
JMF | 0:24d3eb812fd4 | 322 | void |
JMF | 0:24d3eb812fd4 | 323 | ); |
JMF | 0:24d3eb812fd4 | 324 | |
JMF | 0:24d3eb812fd4 | 325 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 326 | * Name: MCR20Drv_SoftRST_Deassert |
JMF | 0:24d3eb812fd4 | 327 | * Description: - |
JMF | 0:24d3eb812fd4 | 328 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 329 | * Return: - |
JMF | 0:24d3eb812fd4 | 330 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 331 | void MCR20Drv_SoftRST_Deassert |
JMF | 0:24d3eb812fd4 | 332 | ( |
JMF | 0:24d3eb812fd4 | 333 | void |
JMF | 0:24d3eb812fd4 | 334 | ); |
JMF | 0:24d3eb812fd4 | 335 | |
JMF | 0:24d3eb812fd4 | 336 | |
JMF | 0:24d3eb812fd4 | 337 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 338 | * Name: MCR20Drv_RESET |
JMF | 0:24d3eb812fd4 | 339 | * Description: - |
JMF | 0:24d3eb812fd4 | 340 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 341 | * Return: - |
JMF | 0:24d3eb812fd4 | 342 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 343 | void MCR20Drv_RESET |
JMF | 0:24d3eb812fd4 | 344 | ( |
JMF | 0:24d3eb812fd4 | 345 | void |
JMF | 0:24d3eb812fd4 | 346 | ); |
JMF | 0:24d3eb812fd4 | 347 | |
JMF | 0:24d3eb812fd4 | 348 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 349 | * Name: MCR20Drv_Soft_RESET |
JMF | 0:24d3eb812fd4 | 350 | * Description: - |
JMF | 0:24d3eb812fd4 | 351 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 352 | * Return: - |
JMF | 0:24d3eb812fd4 | 353 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 354 | void MCR20Drv_Soft_RESET |
JMF | 0:24d3eb812fd4 | 355 | ( |
JMF | 0:24d3eb812fd4 | 356 | void |
JMF | 0:24d3eb812fd4 | 357 | ); |
JMF | 0:24d3eb812fd4 | 358 | |
JMF | 0:24d3eb812fd4 | 359 | /*--------------------------------------------------------------------------- |
JMF | 0:24d3eb812fd4 | 360 | * Name: MCR20Drv_Set_CLK_OUT_Freq |
JMF | 0:24d3eb812fd4 | 361 | * Description: - |
JMF | 0:24d3eb812fd4 | 362 | * Parameters: - |
JMF | 0:24d3eb812fd4 | 363 | * Return: - |
JMF | 0:24d3eb812fd4 | 364 | *---------------------------------------------------------------------------*/ |
JMF | 0:24d3eb812fd4 | 365 | void MCR20Drv_Set_CLK_OUT_Freq |
JMF | 0:24d3eb812fd4 | 366 | ( |
JMF | 0:24d3eb812fd4 | 367 | uint8_t freqDiv |
JMF | 0:24d3eb812fd4 | 368 | ); |
JMF | 0:24d3eb812fd4 | 369 | |
JMF | 0:24d3eb812fd4 | 370 | #define ProtectFromMCR20Interrupt() MCR20Drv_IRQ_Disable() |
JMF | 0:24d3eb812fd4 | 371 | #define UnprotectFromMCR20Interrupt() MCR20Drv_IRQ_Enable() |
JMF | 0:24d3eb812fd4 | 372 | |
JMF | 0:24d3eb812fd4 | 373 | #endif /* __MCR20_DRV_H__ */ |