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