Alessandro Angelino / target-mcu-k64f

Fork of target-mcu-k64f by Morpheus

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fsl_sim_hal_K64F12.h Source File

fsl_sim_hal_K64F12.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without modification,
00006  * are permitted provided that the following conditions are met:
00007  *
00008  * o Redistributions of source code must retain the above copyright notice, this list
00009  *   of conditions and the following disclaimer.
00010  *
00011  * o Redistributions in binary form must reproduce the above copyright notice, this
00012  *   list of conditions and the following disclaimer in the documentation and/or
00013  *   other materials provided with the distribution.
00014  *
00015  * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
00016  *   contributors may be used to endorse or promote products derived from this
00017  *   software without specific prior written permission.
00018  *
00019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00020  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00021  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00022  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
00023  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00024  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00025  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
00026  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00027  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00028  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029  */
00030 
00031 #if !defined(__FSL_SIM_HAL_K64F12_H__)
00032 #define __FSL_SIM_HAL_K64F12_H__
00033 
00034 /*! @addtogroup sim_hal*/
00035 /*! @{*/
00036 
00037 /*! @file*/
00038 
00039 /*******************************************************************************
00040  * Definitions
00041  ******************************************************************************/
00042 
00043 /*! @brief SIM SDHC clock source */
00044 typedef enum _sim_sdhc_clock_source
00045 {
00046     kSimSdhcSrcCoreSysClk,  /* Core/system clock */
00047     kSimSdhcSrcPllFllSel,   /* clock as selected by SOPT2[PLLFLLSEL]. */
00048     kSimSdhcSrcOscerclk,    /* OSCERCLK clock */
00049     kSimSdhcSrcExt          /* External bypass clock (SDHC0_CLKIN) */
00050 } sim_sdhc_clock_source_t;
00051 
00052 /*! @brief SIM TIME clock source */
00053 typedef enum _sim_time_clock_source
00054 {
00055     kSimTimeSrcCoreSysClk,  /* Core/system clock */
00056     kSimTimeSrcPllFllSel,   /* clock as selected by SOPT2[PLLFLLSEL]. */
00057     kSimTimeSrcOscerclk,    /* OSCERCLK clock */
00058     kSimTimeSrcExt          /* ENET 1588 clock in (ENET_1588_CLKIN) */
00059 } sim_time_clock_source_t; 
00060 
00061 /*! @brief SIM RMII clock source */
00062 typedef enum _sim_rmii_clock_source
00063 {
00064     kSimRmiiSrcExtalClk,    /* EXTAL Clock */
00065     kSimRmiiSrcExt          /* ENET 1588 clock in (ENET_1588_CLKIN) */
00066 } sim_rmii_clock_source_t;
00067 
00068 /*! @brief SIM USB clock source */
00069 typedef enum _sim_usb_clock_source
00070 {
00071     kSimUsbSrcClkIn,       /* USB CLKIN Clock */
00072     kSimUsbSrcPllFllSel    /* clock as selected by SOPT2[PLLFLLSEL] */
00073 } sim_usb_clock_source_t;
00074 
00075 /*! @brief SIM PLLFLLSEL clock source select */
00076 typedef enum _sim_pllfll_clock_sel
00077 {
00078     kSimPllFllSelFll,       /* Fll clock */
00079     kSimPllFllSelPll        /* Pll0 clock */
00080 } sim_pllfll_clock_sel_t;
00081 
00082 /*! @brief SIM OSC32KSEL clock source select */
00083 typedef enum _sim_osc32k_clock_sel
00084 {
00085     kSimOsc32kSelOsc32k,      /* OSC 32k clock */
00086     kSimOsc32kSelReserved,    /* Reserved */
00087     kSimOsc32kSelRtc32k,      /* RTC 32k clock */
00088     kSimOsc32kSelLpo          /* LPO clock */
00089 } sim_osc32k_clock_sel_t;
00090 
00091 /*! @brief SIM TRACESEL clock source select */
00092 typedef enum _sim_trace_clock_sel
00093 {
00094     kSimTraceMcgoutClk,       /* MCG out clock */
00095     kSimTraceCoreClk          /* core clock */
00096 } sim_trace_clock_sel_t;
00097 
00098 /*! @brief SIM CLKOUT_SEL clock source select */
00099 typedef enum _sim_clkout_clock_sel
00100 {
00101     kSimClkoutFlexbusClk,       /* Flexbus clock */
00102     kSimClkoutReserved,         /* Reserved */
00103     kSimClkoutFlashClk,         /* Flash clock */
00104     kSimClkoutLpoClk,           /* LPO clock */
00105     kSimClkoutMcgIrcClk,        /* MCG out clock */
00106     kSimClkoutRtc32kClk,        /* RTC 32k clock */
00107     kSimClkoutReserved1         
00108 } sim_clkout_clock_sel_t;
00109 
00110 /*! @brief SIM RTCCLKOUTSEL clock source select */
00111 typedef enum _sim_rtcclkout_clock_sel
00112 {
00113     kSimRtcClkout1hzClk,       /* 1Hz clock */
00114     kSimRtcClkout32kClk        /* 32KHz clock */
00115 } sim_rtcclkout_clock_sel_t;
00116 
00117 /*******************************************************************************
00118  * API
00119  ******************************************************************************/
00120 
00121 #if defined(__cplusplus)
00122 extern "C" {
00123 #endif /* __cplusplus*/
00124 
00125 /*! @name IP related clock feature APIs*/
00126 /*@{*/
00127 
00128 /*!
00129  * @brief Enable the clock for DMA module.
00130  *
00131  * This function enables the clock for DMA moudle.
00132  *
00133  * @param baseAddr Base address for current SIM instance.
00134  * @param instance module device instance
00135  */
00136 void SIM_HAL_EnableDmaClock(uint32_t baseAddr, uint32_t instance);
00137 
00138 /*!
00139  * @brief Disable the clock for DMA module.
00140  *
00141  * This function disables the clock for DMA moudle.
00142  *
00143  * @param baseAddr Base address for current SIM instance.
00144  * @param instance module device instance
00145  */
00146 void SIM_HAL_DisableDmaClock(uint32_t baseAddr, uint32_t instance);
00147 
00148 /*!
00149  * @brief Get the the clock gate state for DMA module.
00150  *
00151  * This function will get the clock gate state for DMA moudle.
00152  *
00153  * @param baseAddr Base address for current SIM instance.
00154  * @param instance module device instance
00155  * @return state true - ungated(Enabled), false - gated (Disabled)
00156  */
00157 bool SIM_HAL_GetDmaGateCmd(uint32_t baseAddr, uint32_t instance);
00158 
00159 /*!
00160  * @brief Enable the clock for DMAMUX module.
00161  *
00162  * This function enables the clock for DMAMUX moudle.
00163  *
00164  * @param baseAddr Base address for current SIM instance.
00165  * @param instance module device instance
00166  */
00167 void SIM_HAL_EnableDmamuxClock(uint32_t baseAddr, uint32_t instance);
00168 
00169 /*!
00170  * @brief Disable the clock for DMAMUX module.
00171  *
00172  * This function disables the clock for DMAMUX moudle.
00173  *
00174  * @param baseAddr Base address for current SIM instance.
00175  * @param instance module device instance
00176  */
00177 void SIM_HAL_DisableDmamuxClock(uint32_t baseAddr, uint32_t instance);
00178 
00179 /*!
00180  * @brief Get the the clock gate state for DMAMUX module.
00181  *
00182  * This function will get the clock gate state for DMAMUX moudle.
00183  *
00184  * @param baseAddr Base address for current SIM instance.
00185  * @param instance module device instance
00186  * @return state true - ungated(Enabled), false - gated (Disabled)
00187  */
00188 bool SIM_HAL_GetDmamuxGateCmd(uint32_t baseAddr, uint32_t instance);
00189 
00190 /*!
00191  * @brief Enable the clock for PORT module.
00192  *
00193  * This function enables the clock for PORT moudle.
00194  *
00195  * @param baseAddr Base address for current SIM instance.
00196  * @param instance module device instance
00197  */
00198 void SIM_HAL_EnablePortClock(uint32_t baseAddr, uint32_t instance);
00199 
00200 /*!
00201  * @brief Disable the clock for PORT module.
00202  *
00203  * This function disables the clock for PORT moudle.
00204  *
00205  * @param baseAddr Base address for current SIM instance.
00206  * @param instance module device instance
00207  */
00208 void SIM_HAL_DisablePortClock(uint32_t baseAddr, uint32_t instance);
00209 
00210 /*!
00211  * @brief Get the the clock gate state for PORT module.
00212  *
00213  * This function will get the clock gate state for PORT moudle.
00214  *
00215  * @param baseAddr Base address for current SIM instance.
00216  * @param instance module device instance
00217  * @return state true - ungated(Enabled), false - gated (Disabled)
00218  */
00219 bool SIM_HAL_GetPortGateCmd(uint32_t baseAddr, uint32_t instance);
00220 
00221 /*!
00222  * @brief Enable the clock for MPU module.
00223  *
00224  * This function enables the clock for MPU moudle.
00225  *
00226  * @param baseAddr Base address for current SIM instance.
00227  * @param instance module device instance
00228  */
00229 void SIM_HAL_EnableMpuClock(uint32_t baseAddr, uint32_t instance);
00230 
00231 /*!
00232  * @brief Disable the clock for MPU module.
00233  *
00234  * This function disables the clock for MPU moudle.
00235  *
00236  * @param baseAddr Base address for current SIM instance.
00237  * @param instance module device instance
00238  */
00239 void SIM_HAL_DisableMpuClock(uint32_t baseAddr, uint32_t instance);
00240 
00241 /*!
00242  * @brief Get the the clock gate state for MPU module.
00243  *
00244  * This function will get the clock gate state for MPU moudle.
00245  *
00246  * @param baseAddr Base address for current SIM instance.
00247  * @param instance module device instance
00248  * @return state true - ungated(Enabled), false - gated (Disabled)
00249  */
00250 bool SIM_HAL_GetMpuGateCmd(uint32_t baseAddr, uint32_t instance);
00251 
00252 /*!
00253  * @brief Enable the clock for EWM module.
00254  *
00255  * This function enables the clock for EWM moudle.
00256  *
00257  * @param baseAddr Base address for current SIM instance.
00258  * @param instance module device instance
00259  */
00260 void SIM_HAL_EnableEwmClock(uint32_t baseAddr, uint32_t instance);
00261 
00262 /*!
00263  * @brief Disable the clock for EWM module.
00264  *
00265  * This function disables the clock for EWM moudle.
00266  *
00267  * @param baseAddr Base address for current SIM instance.
00268  * @param instance module device instance
00269  */
00270 void SIM_HAL_DisableEwmClock(uint32_t baseAddr, uint32_t instance);
00271 
00272 /*!
00273  * @brief Get the the clock gate state for EWM module.
00274  *
00275  * This function will get the clock gate state for EWM moudle.
00276  *
00277  * @param baseAddr Base address for current SIM instance.
00278  * @param instance module device instance
00279  * @return state true - ungated(Enabled), false - gated (Disabled)
00280  */
00281 bool SIM_HAL_GetEwmGateCmd(uint32_t baseAddr, uint32_t instance);
00282 
00283 /*!
00284  * @brief Enable the clock for FLEXBUS module.
00285  *
00286  * This function enables the clock for FLEXBUS moudle.
00287  *
00288  * @param baseAddr Base address for current SIM instance.
00289  * @param instance module device instance
00290  */
00291 void SIM_HAL_EnableFlexbusClock(uint32_t baseAddr, uint32_t instance);
00292 
00293 /*!
00294  * @brief Disable the clock for FLEXBUS module.
00295  *
00296  * This function disables the clock for FLEXBUS moudle.
00297  *
00298  * @param baseAddr Base address for current SIM instance.
00299  * @param instance module device instance
00300  */
00301 void SIM_HAL_DisableFlexbusClock(uint32_t baseAddr, uint32_t instance);
00302 
00303 /*!
00304  * @brief Get the the clock gate state for FLEXBUS module.
00305  *
00306  * This function will get the clock gate state for FLEXBUS moudle.
00307  *
00308  * @param baseAddr Base address for current SIM instance.
00309  * @param instance module device instance
00310  * @return state true - ungated(Enabled), false - gated (Disabled)
00311  */
00312 bool SIM_HAL_GetFlexbusGateCmd(uint32_t baseAddr, uint32_t instance);
00313 
00314 /*!
00315  * @brief Enable the clock for FTF module.
00316  *
00317  * This function enables the clock for FTF moudle.
00318  *
00319  * @param baseAddr Base address for current SIM instance.
00320  * @param instance module device instance
00321  */
00322 void SIM_HAL_EnableFtfClock(uint32_t baseAddr, uint32_t instance);
00323 
00324 /*!
00325  * @brief Disable the clock for FTF module.
00326  *
00327  * This function disables the clock for FTF moudle.
00328  *
00329  * @param baseAddr Base address for current SIM instance.
00330  * @param instance module device instance
00331  */
00332 void SIM_HAL_DisableFtfClock(uint32_t baseAddr, uint32_t instance);
00333 
00334 /*!
00335  * @brief Get the the clock gate state for FTF module.
00336  *
00337  * This function will get the clock gate state for FTF moudle.
00338  *
00339  * @param baseAddr Base address for current SIM instance.
00340  * @param instance module device instance
00341  * @return state true - ungated(Enabled), false - gated (Disabled)
00342  */
00343 bool SIM_HAL_GetFtfGateCmd(uint32_t baseAddr, uint32_t instance);
00344 
00345 /*!
00346  * @brief Enable the clock for CRC module.
00347  *
00348  * This function enables the clock for CRC moudle.
00349  *
00350  * @param baseAddr Base address for current SIM instance.
00351  * @param instance module device instance
00352  */
00353 void SIM_HAL_EnableCrcClock(uint32_t baseAddr, uint32_t instance);
00354 
00355 /*!
00356  * @brief Disable the clock for CRC module.
00357  *
00358  * This function disables the clock for CRC moudle.
00359  *
00360  * @param baseAddr Base address for current SIM instance.
00361  * @param instance module device instance
00362  */
00363 void SIM_HAL_DisableCrcClock(uint32_t baseAddr, uint32_t instance);
00364 
00365 /*!
00366  * @brief Get the the clock gate state for CRC module.
00367  *
00368  * This function will get the clock gate state for CRC moudle.
00369  *
00370  * @param baseAddr Base address for current SIM instance.
00371  * @param instance module device instance
00372  * @return state true - ungated(Enabled), false - gated (Disabled)
00373  */
00374 bool SIM_HAL_GetCrcGateCmd(uint32_t baseAddr, uint32_t instance);
00375 
00376 /*!
00377  * @brief Enable the clock for RNGA module.
00378  *
00379  * This function enables the clock for RNGA moudle.
00380  *
00381  * @param baseAddr Base address for current SIM instance.
00382  * @param instance module device instance
00383  */
00384 void SIM_HAL_EnableRngaClock(uint32_t baseAddr, uint32_t instance);
00385 
00386 /*!
00387  * @brief Disable the clock for RNGA module.
00388  *
00389  * This function disables the clock for RNGA moudle.
00390  *
00391  * @param baseAddr Base address for current SIM instance.
00392  * @param instance module device instance
00393  */
00394 void SIM_HAL_DisableRngaClock(uint32_t baseAddr, uint32_t instance);
00395 
00396 /*!
00397  * @brief Get the the clock gate state for RNGA module.
00398  *
00399  * This function will get the clock gate state for RNGA moudle.
00400  *
00401  * @param baseAddr Base address for current SIM instance.
00402  * @param instance module device instance
00403  * @return state true - ungated(Enabled), false - gated (Disabled)
00404  */
00405 bool SIM_HAL_GetRngaGateCmd(uint32_t baseAddr, uint32_t instance);
00406 
00407 /*!
00408  * @brief Enable the clock for ADC module.
00409  *
00410  * This function enables the clock for ADC moudle.
00411  *
00412  * @param baseAddr Base address for current SIM instance.
00413  * @param instance module device instance
00414  */
00415 void SIM_HAL_EnableAdcClock(uint32_t baseAddr, uint32_t instance);
00416 
00417 /*!
00418  * @brief Disable the clock for ADC module.
00419  *
00420  * This function disables the clock for ADC moudle.
00421  *
00422  * @param baseAddr Base address for current SIM instance.
00423  * @param instance module device instance
00424  */
00425 void SIM_HAL_DisableAdcClock(uint32_t baseAddr, uint32_t instance);
00426 
00427 /*!
00428  * @brief Get the the clock gate state for ADC module.
00429  *
00430  * This function will get the clock gate state for ADC moudle.
00431  *
00432  * @param baseAddr Base address for current SIM instance.
00433  * @param instance module device instance
00434  * @return state true - ungated(Enabled), false - gated (Disabled)
00435  */
00436 bool SIM_HAL_GetAdcGateCmd(uint32_t baseAddr, uint32_t instance);
00437 
00438 /*!
00439  * @brief Enable the clock for CMP module.
00440  *
00441  * This function enables the clock for CMP moudle.
00442  *
00443  * @param baseAddr Base address for current SIM instance.
00444  * @param instance module device instance
00445  */
00446 void SIM_HAL_EnableCmpClock(uint32_t baseAddr, uint32_t instance);
00447 
00448 /*!
00449  * @brief Disable the clock for CMP module.
00450  *
00451  * This function disables the clock for CMP moudle.
00452  *
00453  * @param baseAddr Base address for current SIM instance.
00454  * @param instance module device instance
00455  */
00456 void SIM_HAL_DisableCmpClock(uint32_t baseAddr, uint32_t instance);
00457 
00458 /*!
00459  * @brief Get the the clock gate state for CMP module.
00460  *
00461  * This function will get the clock gate state for CMP moudle.
00462  *
00463  * @param baseAddr Base address for current SIM instance.
00464  * @param instance module device instance
00465  * @return state true - ungated(Enabled), false - gated (Disabled)
00466  */
00467 bool SIM_HAL_GetCmpGateCmd(uint32_t baseAddr, uint32_t instance);
00468 
00469 /*!
00470  * @brief Enable the clock for DAC module.
00471  *
00472  * This function enables the clock for DAC moudle.
00473  *
00474  * @param baseAddr Base address for current SIM instance.
00475  * @param instance module device instance
00476  */
00477 void SIM_HAL_EnableDacClock(uint32_t baseAddr, uint32_t instance);
00478 
00479 /*!
00480  * @brief Disable the clock for DAC module.
00481  *
00482  * This function disables the clock for DAC moudle.
00483  *
00484  * @param baseAddr Base address for current SIM instance.
00485  * @param instance module device instance
00486  */
00487 void SIM_HAL_DisableDacClock(uint32_t baseAddr, uint32_t instance);
00488 
00489 /*!
00490  * @brief Get the the clock gate state for DAC module.
00491  *
00492  * This function will get the clock gate state for DAC moudle.
00493  *
00494  * @param baseAddr Base address for current SIM instance.
00495  * @param instance module device instance
00496  * @return state true - ungated(Enabled), false - gated (Disabled)
00497  */
00498 bool SIM_HAL_GetDacGateCmd(uint32_t baseAddr, uint32_t instance);
00499 
00500 /*!
00501  * @brief Enable the clock for VREF module.
00502  *
00503  * This function enables the clock for VREF moudle.
00504  *
00505  * @param baseAddr Base address for current SIM instance.
00506  * @param instance module device instance
00507  */
00508 void SIM_HAL_EnableVrefClock(uint32_t baseAddr, uint32_t instance);
00509 
00510 /*!
00511  * @brief Disable the clock for VREF module.
00512  *
00513  * This function disables the clock for VREF moudle.
00514  *
00515  * @param baseAddr Base address for current SIM instance.
00516  * @param instance module device instance
00517  */
00518 void SIM_HAL_DisableVrefClock(uint32_t baseAddr, uint32_t instance);
00519 
00520 /*!
00521  * @brief Get the the clock gate state for VREF module.
00522  *
00523  * This function will get the clock gate state for VREF moudle.
00524  *
00525  * @param baseAddr Base address for current SIM instance.
00526  * @param instance module device instance
00527  * @return state true - ungated(Enabled), false - gated (Disabled)
00528  */
00529 bool SIM_HAL_GetVrefGateCmd(uint32_t baseAddr, uint32_t instance);
00530 
00531 /*!
00532  * @brief Enable the clock for SAI module.
00533  *
00534  * This function enables the clock for SAI moudle.
00535  *
00536  * @param baseAddr Base address for current SIM instance.
00537  * @param instance module device instance
00538  */
00539 void SIM_HAL_EnableSaiClock(uint32_t baseAddr, uint32_t instance);
00540 
00541 /*!
00542  * @brief Disable the clock for SAI module.
00543  *
00544  * This function disables the clock for SAI moudle.
00545  *
00546  * @param baseAddr Base address for current SIM instance.
00547  * @param instance module device instance
00548  */
00549 void SIM_HAL_DisableSaiClock(uint32_t baseAddr, uint32_t instance);
00550 
00551 /*!
00552  * @brief Get the the clock gate state for SAI module.
00553  *
00554  * This function will get the clock gate state for SAI moudle.
00555  *
00556  * @param baseAddr Base address for current SIM instance.
00557  * @param instance module device instance
00558  * @return state true - ungated(Enabled), false - gated (Disabled)
00559  */
00560 bool SIM_HAL_GetSaiGateCmd(uint32_t baseAddr, uint32_t instance);
00561 
00562 /*!
00563  * @brief Enable the clock for PDB module.
00564  *
00565  * This function enables the clock for PDB moudle.
00566  *
00567  * @param baseAddr Base address for current SIM instance.
00568  * @param instance module device instance
00569  */
00570 void SIM_HAL_EnablePdbClock(uint32_t baseAddr, uint32_t instance);
00571 
00572 /*!
00573  * @brief Disable the clock for PDB module.
00574  *
00575  * This function disables the clock for PDB moudle.
00576  *
00577  * @param baseAddr Base address for current SIM instance.
00578  * @param instance module device instance
00579  */
00580 void SIM_HAL_DisablePdbClock(uint32_t baseAddr, uint32_t instance);
00581 
00582 /*!
00583  * @brief Get the the clock gate state for PDB module.
00584  *
00585  * This function will get the clock gate state for PDB moudle.
00586  *
00587  * @param baseAddr Base address for current SIM instance.
00588  * @param instance module device instance
00589  * @return state true - ungated(Enabled), false - gated (Disabled)
00590  */
00591 bool SIM_HAL_GetPdbGateCmd(uint32_t baseAddr, uint32_t instance);
00592 
00593 /*!
00594  * @brief Enable the clock for FTM module.
00595  *
00596  * This function enables the clock for FTM moudle.
00597  *
00598  * @param baseAddr Base address for current SIM instance.
00599  * @param instance module device instance
00600  */
00601 void SIM_HAL_EnableFtmClock(uint32_t baseAddr, uint32_t instance);
00602 
00603 /*!
00604  * @brief Disable the clock for FTM module.
00605  *
00606  * This function disables the clock for FTM moudle.
00607  *
00608  * @param baseAddr Base address for current SIM instance.
00609  * @param instance module device instance
00610  */
00611 void SIM_HAL_DisableFtmClock(uint32_t baseAddr, uint32_t instance);
00612 
00613 /*!
00614  * @brief Get the the clock gate state for FTM module.
00615  *
00616  * This function will get the clock gate state for FTM moudle.
00617  *
00618  * @param baseAddr Base address for current SIM instance.
00619  * @param instance module device instance
00620  * @return state true - ungated(Enabled), false - gated (Disabled)
00621  */
00622 bool SIM_HAL_GetFtmGateCmd(uint32_t baseAddr, uint32_t instance);
00623 
00624 /*!
00625  * @brief Enable the clock for PIT module.
00626  *
00627  * This function enables the clock for PIT moudle.
00628  *
00629  * @param baseAddr Base address for current SIM instance.
00630  * @param instance module device instance
00631  */
00632 void SIM_HAL_EnablePitClock(uint32_t baseAddr, uint32_t instance);
00633 
00634 /*!
00635  * @brief Disable the clock for PIT module.
00636  *
00637  * This function disables the clock for PIT moudle.
00638  *
00639  * @param baseAddr Base address for current SIM instance.
00640  * @param instance module device instance
00641  */
00642 void SIM_HAL_DisablePitClock(uint32_t baseAddr, uint32_t instance);
00643 
00644 /*!
00645  * @brief Get the the clock gate state for PIT module.
00646  *
00647  * This function will get the clock gate state for PIT moudle.
00648  *
00649  * @param baseAddr Base address for current SIM instance.
00650  * @param instance module device instance
00651  * @return state true - ungated(Enabled), false - gated (Disabled)
00652  */
00653 bool SIM_HAL_GetPitGateCmd(uint32_t baseAddr, uint32_t instance);
00654 
00655 /*!
00656  * @brief Enable the clock for LPTIMER module.
00657  *
00658  * This function enables the clock for LPTIMER moudle.
00659  *
00660  * @param baseAddr Base address for current SIM instance.
00661  * @param instance module device instance
00662  */
00663 void SIM_HAL_EnableLptimerClock(uint32_t baseAddr, uint32_t instance);
00664 
00665 /*!
00666  * @brief Disable the clock for LPTIMER module.
00667  *
00668  * This function disables the clock for LPTIMER moudle.
00669  *
00670  * @param baseAddr Base address for current SIM instance.
00671  * @param instance module device instance
00672  */
00673 void SIM_HAL_DisableLptimerClock(uint32_t baseAddr, uint32_t instance);
00674 
00675 /*!
00676  * @brief Get the the clock gate state for LPTIMER module.
00677  *
00678  * This function will get the clock gate state for LPTIMER moudle.
00679  *
00680  * @param baseAddr Base address for current SIM instance.
00681  * @param instance module device instance
00682  * @return state true - ungated(Enabled), false - gated (Disabled)
00683  */
00684 bool SIM_HAL_GetLptimerGateCmd(uint32_t baseAddr, uint32_t instance);
00685 
00686 /*!
00687  * @brief Enable the clock for CMT module.
00688  *
00689  * This function enables the clock for CMT moudle.
00690  *
00691  * @param baseAddr Base address for current SIM instance.
00692  * @param instance module device instance
00693  */
00694 void SIM_HAL_EnableCmtClock(uint32_t baseAddr, uint32_t instance);
00695 
00696 /*!
00697  * @brief Disable the clock for CMT module.
00698  *
00699  * This function disables the clock for CMT moudle.
00700  *
00701  * @param baseAddr Base address for current SIM instance.
00702  * @param instance module device instance
00703  */
00704 void SIM_HAL_DisableCmtClock(uint32_t baseAddr, uint32_t instance);
00705 
00706 /*!
00707  * @brief Get the the clock gate state for CMT module.
00708  *
00709  * This function will get the clock gate state for CMT moudle.
00710  *
00711  * @param baseAddr Base address for current SIM instance.
00712  * @param instance module device instance
00713  * @return state true - ungated(Enabled), false - gated (Disabled)
00714  */
00715 bool SIM_HAL_GetCmtGateCmd(uint32_t baseAddr, uint32_t instance);
00716 
00717 /*!
00718  * @brief Enable the clock for RTC module.
00719  *
00720  * This function enables the clock for RTC moudle.
00721  *
00722  * @param baseAddr Base address for current SIM instance.
00723  * @param instance module device instance
00724  */
00725 void SIM_HAL_EnableRtcClock(uint32_t baseAddr, uint32_t instance);
00726 
00727 /*!
00728  * @brief Disable the clock for RTC module.
00729  *
00730  * This function disables the clock for RTC moudle.
00731  *
00732  * @param baseAddr Base address for current SIM instance.
00733  * @param instance module device instance
00734  */
00735 void SIM_HAL_DisableRtcClock(uint32_t baseAddr, uint32_t instance);
00736 
00737 /*!
00738  * @brief Get the the clock gate state for RTC module.
00739  *
00740  * This function will get the clock gate state for RTC moudle.
00741  *
00742  * @param baseAddr Base address for current SIM instance.
00743  * @param instance module device instance
00744  * @return state true - ungated(Enabled), false - gated (Disabled)
00745  */
00746 bool SIM_HAL_GetRtcGateCmd(uint32_t baseAddr, uint32_t instance);
00747 
00748 /*!
00749  * @brief Enable the clock for ENET module.
00750  *
00751  * This function enables the clock for ENET moudle.
00752  *
00753  * @param baseAddr Base address for current SIM instance.
00754  * @param instance module device instance
00755  */
00756 void SIM_HAL_EnableEnetClock(uint32_t baseAddr, uint32_t instance);
00757 
00758 /*!
00759  * @brief Disable the clock for ENET module.
00760  *
00761  * This function disables the clock for ENET moudle.
00762  *
00763  * @param baseAddr Base address for current SIM instance.
00764  * @param instance module device instance
00765  */
00766 void SIM_HAL_DisableEnetClock(uint32_t baseAddr, uint32_t instance);
00767 
00768 /*!
00769  * @brief Get the the clock gate state for ENET module.
00770  *
00771  * This function will get the clock gate state for ENET moudle.
00772  *
00773  * @param baseAddr Base address for current SIM instance.
00774  * @param instance module device instance
00775  * @return state true - ungated(Enabled), false - gated (Disabled)
00776  */
00777 bool SIM_HAL_GetEnetGateCmd(uint32_t baseAddr, uint32_t instance);
00778 
00779 /*!
00780  * @brief Enable the clock for USBFS module.
00781  *
00782  * This function enables the clock for USBFS moudle.
00783  *
00784  * @param baseAddr Base address for current SIM instance.
00785  * @param instance module device instance
00786  */
00787 void SIM_HAL_EnableUsbClock(uint32_t baseAddr, uint32_t instance);
00788 
00789 /*!
00790  * @brief Disable the clock for USBFS module.
00791  *
00792  * This function disables the clock for USBFS moudle.
00793  *
00794  * @param baseAddr Base address for current SIM instance.
00795  * @param instance module device instance
00796  */
00797 void SIM_HAL_DisableUsbClock(uint32_t baseAddr, uint32_t instance);
00798 
00799 /*!
00800  * @brief Get the the clock gate state for USB module.
00801  *
00802  * This function will get the clock gate state for USB moudle.
00803  *
00804  * @param baseAddr Base address for current SIM instance.
00805  * @param instance module device instance
00806  * @return state true - ungated(Enabled), false - gated (Disabled)
00807  */
00808 bool SIM_HAL_GetUsbGateCmd(uint32_t baseAddr, uint32_t instance);
00809 
00810 /*!
00811  * @brief Enable the clock for USBDCD module.
00812  *
00813  * This function enables the clock for USBDCD moudle.
00814  *
00815  * @param baseAddr Base address for current SIM instance.
00816  * @param instance module device instance
00817  */
00818 void SIM_HAL_EnableUsbdcdClock(uint32_t baseAddr, uint32_t instance);
00819 
00820 /*!
00821  * @brief Disable the clock for USBDCD module.
00822  *
00823  * This function disables the clock for USBDCD moudle.
00824  *
00825  * @param baseAddr Base address for current SIM instance.
00826  * @param instance module device instance
00827  */
00828 void SIM_HAL_DisableUsbdcdClock(uint32_t baseAddr, uint32_t instance);
00829 
00830 /*!
00831  * @brief Get the the clock gate state for USBDCD module.
00832  *
00833  * This function will get the clock gate state for USBDCD moudle.
00834  *
00835  * @param baseAddr Base address for current SIM instance.
00836  * @param instance module device instance
00837  * @return state true - ungated(Enabled), false - gated (Disabled)
00838  */
00839 bool SIM_HAL_GetUsbdcdGateCmd(uint32_t baseAddr, uint32_t instance);
00840 
00841 /*!
00842  * @brief Enable the clock for FLEXCAN module.
00843  *
00844  * This function enables the clock for FLEXCAN moudle.
00845  *
00846  * @param baseAddr Base address for current SIM instance.
00847  * @param instance module device instance
00848  */
00849 void SIM_HAL_EnableFlexcanClock(uint32_t baseAddr, uint32_t instance);
00850 
00851 /*!
00852  * @brief Disable the clock for FLEXCAN module.
00853  *
00854  * This function disables the clock for FLEXCAN moudle.
00855  *
00856  * @param baseAddr Base address for current SIM instance.
00857  * @param instance module device instance
00858  */
00859 void SIM_HAL_DisableFlexcanClock(uint32_t baseAddr, uint32_t instance);
00860 
00861 /*!
00862  * @brief Get the the clock gate state for FLEXCAN module.
00863  *
00864  * This function will get the clock gate state for FLEXCAN moudle.
00865  *
00866  * @param baseAddr Base address for current SIM instance.
00867  * @param instance module device instance
00868  * @return state true - ungated(Enabled), false - gated (Disabled)
00869  */
00870 bool SIM_HAL_GetFlexcanGateCmd(uint32_t baseAddr, uint32_t instance);
00871 
00872 /*!
00873  * @brief Enable the clock for SPI module.
00874  *
00875  * This function enables the clock for SPI moudle.
00876  *
00877  * @param baseAddr Base address for current SIM instance.
00878  * @param instance module device instance
00879  */
00880 void SIM_HAL_EnableSpiClock(uint32_t baseAddr, uint32_t instance);
00881 
00882 /*!
00883  * @brief Disable the clock for SPI module.
00884  *
00885  * This function disables the clock for SPI moudle.
00886  *
00887  * @param baseAddr Base address for current SIM instance.
00888  * @param instance module device instance
00889  */
00890 void SIM_HAL_DisableSpiClock(uint32_t baseAddr, uint32_t instance);
00891 
00892 /*!
00893  * @brief Get the the clock gate state for SPI module.
00894  *
00895  * This function will get the clock gate state for SPI moudle.
00896  *
00897  * @param baseAddr Base address for current SIM instance.
00898  * @param instance module device instance
00899  * @return state true - ungated(Enabled), false - gated (Disabled)
00900  */
00901 bool SIM_HAL_GetSpiGateCmd(uint32_t baseAddr, uint32_t instance);
00902 
00903 /*!
00904  * @brief Enable the clock for I2C module.
00905  *
00906  * This function enables the clock for I2C moudle.
00907  *
00908  * @param baseAddr Base address for current SIM instance.
00909  * @param instance module device instance
00910  */
00911 void SIM_HAL_EnableI2cClock(uint32_t baseAddr, uint32_t instance);
00912 
00913 /*!
00914  * @brief Disable the clock for I2C module.
00915  *
00916  * This function disables the clock for I2C moudle.
00917  *
00918  * @param baseAddr Base address for current SIM instance.
00919  * @param instance module device instance
00920  */
00921 void SIM_HAL_DisableI2cClock(uint32_t baseAddr, uint32_t instance);
00922 
00923 /*!
00924  * @brief Get the the clock gate state for I2C module.
00925  *
00926  * This function will get the clock gate state for I2C moudle.
00927  *
00928  * @param baseAddr Base address for current SIM instance.
00929  * @param instance module device instance
00930  * @return state true - ungated(Enabled), false - gated (Disabled)
00931  */
00932 bool SIM_HAL_GetI2cGateCmd(uint32_t baseAddr, uint32_t instance);
00933 
00934 /*!
00935  * @brief Enable the clock for UART module.
00936  *
00937  * This function enables the clock for UART moudle.
00938  *
00939  * @param baseAddr Base address for current SIM instance.
00940  * @param instance module device instance
00941  */
00942 void SIM_HAL_EnableUartClock(uint32_t baseAddr, uint32_t instance);
00943 
00944 /*!
00945  * @brief Disable the clock for UART module.
00946  *
00947  * This function disables the clock for UART moudle.
00948  *
00949  * @param baseAddr Base address for current SIM instance.
00950  * @param instance module device instance
00951  */
00952 void SIM_HAL_DisableUartClock(uint32_t baseAddr, uint32_t instance);
00953 
00954 /*!
00955  * @brief Get the the clock gate state for UART module.
00956  *
00957  * This function will get the clock gate state for UART moudle.
00958  *
00959  * @param baseAddr Base address for current SIM instance.
00960  * @param instance module device instance
00961  * @return state true - ungated(Enabled), false - gated (Disabled)
00962  */
00963 bool SIM_HAL_GetUartGateCmd(uint32_t baseAddr, uint32_t instance);
00964 
00965 /*!
00966  * @brief Enable the clock for SDHC module.
00967  *
00968  * This function enables the clock for SDHC moudle.
00969  *
00970  * @param baseAddr Base address for current SIM instance.
00971  * @param instance module device instance
00972  */
00973 void SIM_HAL_EnableSdhcClock(uint32_t baseAddr, uint32_t instance);
00974 
00975 /*!
00976  * @brief Disable the clock for SDHC module.
00977  *
00978  * This function disables the clock for SDHC moudle.
00979  *
00980  * @param baseAddr Base address for current SIM instance.
00981  * @param instance module device instance
00982  */
00983 void SIM_HAL_DisableSdhcClock(uint32_t baseAddr, uint32_t instance);
00984 
00985 /*!
00986  * @brief Get the the clock gate state for SDHC module.
00987  *
00988  * This function will get the clock gate state for SDHC moudle.
00989  *
00990  * @param baseAddr Base address for current SIM instance.
00991  * @param instance module device instance
00992  * @return state true - ungated(Enabled), false - gated (Disabled)
00993  */
00994 bool SIM_HAL_GetSdhcGateCmd(uint32_t baseAddr, uint32_t instance);
00995 
00996 /*@}*/
00997 
00998 #if defined(__cplusplus)
00999 }
01000 #endif /* __cplusplus*/
01001 
01002 
01003 /*! @}*/
01004 
01005 #endif /* __FSL_SIM_HAL_K64F12_H__*/
01006 /*******************************************************************************
01007  * EOF
01008  ******************************************************************************/
01009