Kinetis SDK v.1.3 API Reference Manual
Rev. 0
Freescale Semiconductor, Inc.
|
Macros | |
#define | FSL_SIM_SCGC_BIT(SCGCx, n) (((SCGCx-1U)<<5U) + n) |
SIM SCGC bit index. More... | |
Enumerations | |
enum | clock_wdog_src_k80f25615_t { kClockWdogSrcLpoClk, kClockWdogSrcAltClk, kClockWdogSrcLpoClk, kClockWdogSrcAltClk } |
WDOG clock source select. More... | |
enum | clock_trace_src_k82f25615_t { kClockTraceSrcMcgoutClkDiv, kClockTraceSrcCoreClk } |
Debug trace clock source select. More... | |
enum | clock_port_filter_src_k82f25615_t { kClockPortFilterSrcBusClk, kClockPortFilterSrcLpoClk } |
PORTx digital input filter clock source select. More... | |
enum | clock_tpm_src_k82f25615_t { kClockTpmSrcNone, kClockTpmSrcPllFllSelDiv, kClockTpmSrcOsc0erClk, kClockTpmSrcMcgIrClk } |
TPM clock source select. More... | |
enum | clock_lptmr_src_k82f25615_t { kClockLptmrSrcMcgIrClk, kClockLptmrSrcLpoClk, kClockLptmrSrcEr32kClk, kClockLptmrSrcOsc0erClk } |
LPTMR clock source select. More... | |
enum | clock_lpuart_src_k82f25615_t { kClockLpuartSrcNone, kClockLpuartSrcPllFllSel, kClockLpuartSrcOsc0erClk, kClockLpuartSrcMcgIrClk } |
SIM LPUART clock source. More... | |
enum | sim_lpuart_rxsrc_k82f25615_t { kSimLpuartRxsrcPin, kSimLpuartRxsrcCmp0, kSimLpuartRxsrcCmp1 } |
SIM LPUART RX source. More... | |
enum | sim_lpuart_txsrc_k82f25615_t { kSimLpuartTxsrcPin, kSimLpuartTxsrcTpm1, kSimLpuartTxsrcTpm2 } |
SIM LPUART TX source. More... | |
enum | clock_flexio_src_k82f25615_t { kClockFlexioSrcNone, kClockFlexioSrcPllFllSelDiv, kClockFlexioSrcOsc0erClk, kClockFlexioSrcMcgIrClk } |
FLEXIO clock source. More... | |
enum | clock_usbfs_src_k82f25615_t { kClockUsbfsSrcExt, kClockUsbfsSrcPllFllSel } |
SIM USB FS clock source. More... | |
enum | clock_emvsim_src_k82f25615_t { kClockEmvsimSrcNone, kClockEmvsimSrcPllFllSel, kClockEmvsimSrcOsc0erClk, kClockEmvsimSrcMcgIrClk } |
FLEXCAN clock source select. More... | |
enum | clock_sdhc_src_k82f25615_t { kClockSdhcSrcCoreSysClk, kClockSdhcSrcPllFllSel, kClockSdhcSrcOsc0erClk, kClockSdhcSrcExt } |
SDHC clock source. More... | |
enum | clock_sai_src_k82f25615_t { kClockSaiSrcSysClk = 0U, kClockSaiSrcOsc0erClk = 1U, kClockSaiSrcPllFllSel = 3U } |
SAI clock source. More... | |
enum | clock_qspi_src_k82f25615_t { kClockQspiSrcSysClk = 0U, kClockQspiSrcFllClk = 1U, kClockQspiSrcPllClk = 2U, kClockQspiSrcPll2xClk = 3U, kClockQspiSrcIrc48M = 4U, kClockQspiSrcOsc0erClk = 5U, kClockQspiSrcMcgIrClk = 6U } |
QSPI clock source. More... | |
enum | clock_pllfll_sel_k82f25615_t { kClockPllFllSelFll = 0U, kClockPllFllSelPll = 1U, kClockPllFllSelIrc48M = 3U } |
SIM PLLFLLSEL clock source select. More... | |
enum | clock_er32k_src_k82f25615_t { kClockEr32kSrcOsc0 = 0U, kClockEr32kSrcRtc = 2U, kClockEr32kSrcLpo = 3U } |
SIM external reference clock source select (OSC32KSEL). More... | |
enum | clock_clkout_src_k82f25615_t { kClockClkoutSelFlexbusClk = 0U, kClockClkoutSelFlashClk = 2U, kClockClkoutSelLpoClk = 3U, kClockClkoutSelMcgIrClk = 4U, kClockClkoutSelRtc = 5U, kClockClkoutSelOsc0erClk = 6U, kClockClkoutSelIrc48M = 7U } |
SIM CLKOUT_SEL clock source select. More... | |
enum | clock_rtcout_src_k82f25615_t { kClockRtcoutSrc1Hz, kClockRtcoutSrc32kHz } |
SIM RTCCLKOUTSEL clock source select. More... | |
enum | sim_usbsstby_mode_k82f25615_t { kSimUsbsstbyNoRegulator, kSimUsbsstbyWithRegulator } |
SIM USB voltage regulator in standby mode setting during stop modes. More... | |
enum | sim_usbvstby_mode_k82f25615_t { kSimUsbvstbyNoRegulator, kSimUsbvstbyWithRegulator } |
SIM USB voltage regulator in standby mode setting during VLPR and VLPW modes. More... | |
enum | sim_adc_pretrg_sel_k82f25615_t { kSimAdcPretrgselA, kSimAdcPretrgselB } |
SIM ADCx pre-trigger select. More... | |
enum | sim_adc_trg_sel_k82f25615_t { kSimAdcTrgselExt = 0U, kSimAdcTrgSelHighSpeedComp0 = 1U, kSimAdcTrgSelHighSpeedComp1 = 2U, kSimAdcTrgSelPit0 = 4U, kSimAdcTrgSelPit1 = 5U, kSimAdcTrgSelPit2 = 6U, kSimAdcTrgSelPit3 = 7U, kSimAdcTrgSelFtm0 = 8U, kSimAdcTrgSelFtm1 = 9U, kSimAdcTrgSelFtm2 = 10U, kSimAdcTrgSelFtm3 = 11U, kSimAdcTrgSelRtcAlarm = 12U, kSimAdcTrgSelRtcSec = 13U, kSimAdcTrgSelLptimer = 14U, kSimAdcTrgSelTpm = 15U } |
SIM ADCx trigger select. More... | |
enum | sim_ftm_trg_src_k82f25615_t { kSimFtmTrgSrc0, kSimFtmTrgSrc1 } |
SIM FlexTimer x trigger y select. More... | |
enum | sim_ftm_clk_sel_k82f25615_t { kSimFtmClkSel0, kSimFtmClkSel1 } |
SIM FlexTimer external clock select. More... | |
enum | sim_ftm_ch_src_k82f25615_t { kSimFtmChSrc0, kSimFtmChSrc1, kSimFtmChSrc2, kSimFtmChSrc3 } |
SIM FlexTimer x channel y input capture source select. More... | |
enum | sim_ftm_ch_out_src_k82f25615_t { kSimFtmChOutSrc0, kSimFtmChOutSrc1 } |
SIM FlexTimer x channel y output source select. More... | |
enum | sim_ftm_flt_sel_k82f25615_t { kSimFtmFltSel0, kSimFtmFltSel1 } |
SIM FlexTimer x Fault y select. More... | |
enum | sim_tpm_clk_sel_k82f25615_t { kSimTpmClkSel0, kSimTpmClkSel1 } |
SIM Timer/PWM external clock select. More... | |
enum | sim_tpm_ch_src_k82f25615_t { kSimTpmChSrc0, kSimTpmChSrc1, kSimTpmChSrc2, kSimTpmChSrc3 } |
SIM Timer/PWM x channel y input capture source select. More... | |
enum | sim_flexbus_security_level_k82f25615_t { kSimFbslLevel0, kSimFbslLevel1, kSimFbslLevel2, kSimFbslLevel3 } |
SIM FlexBus security level. More... | |
enum | sim_clock_gate_name_k82f25615_t { kSimClockGateI2c2 = FSL_SIM_SCGC_BIT(1U, 6U), kSimClockGateI2c3 = FSL_SIM_SCGC_BIT(1U, 7U), kSimClockGateLpuart0 = FSL_SIM_SCGC_BIT(2U, 4U), kSimClockGateLpuart1 = FSL_SIM_SCGC_BIT(2U, 5U), kSimClockGateLpuart2 = FSL_SIM_SCGC_BIT(2U, 6U), kSimClockGateLpuart3 = FSL_SIM_SCGC_BIT(2U, 7U), kSimClockGateTpm1 = FSL_SIM_SCGC_BIT(2U, 9U), kSimClockGateTpm2 = FSL_SIM_SCGC_BIT(2U, 10U), kSimClockGateDac0 = FSL_SIM_SCGC_BIT(2U, 12U), kSimClockGateLtc0 = FSL_SIM_SCGC_BIT(2U, 17U), kSimClockGateEmvsim0 = FSL_SIM_SCGC_BIT(2U, 20U), kSimClockGateEmvsim1 = FSL_SIM_SCGC_BIT(2U, 21U), kSimClockGateLpuart4 = FSL_SIM_SCGC_BIT(2U, 22U), kSimClockGateQspi0 = FSL_SIM_SCGC_BIT(2U, 26U), kSimClockGateFlexio0 = FSL_SIM_SCGC_BIT(2U, 31U), kSimClockGateTrng0 = FSL_SIM_SCGC_BIT(3U, 0U), kSimClockGateSpi2 = FSL_SIM_SCGC_BIT(3U, 12U), kSimClockGateSdhc0 = FSL_SIM_SCGC_BIT(3U, 17U), kSimClockGateFtxm2 = FSL_SIM_SCGC_BIT(3U, 24U), kSimClockGateFtm3 = FSL_SIM_SCGC_BIT(3U, 25U), kSimClockGateEwm0 = FSL_SIM_SCGC_BIT(4U, 1U), kSimClockGateCmt0 = FSL_SIM_SCGC_BIT(4U, 2U), kSimClockGateI2c0 = FSL_SIM_SCGC_BIT(4U, 6U), kSimClockGateI2c1 = FSL_SIM_SCGC_BIT(4U, 7U), kSimClockGateUsbfs0 = FSL_SIM_SCGC_BIT(4U, 18U), kSimClockGateCmp = FSL_SIM_SCGC_BIT(4U, 19U), kSimClockGateVref0 = FSL_SIM_SCGC_BIT(4U, 20U), kSimClockGateLptmr0 = FSL_SIM_SCGC_BIT(5U, 0U), kSimClockGateSecreg = FSL_SIM_SCGC_BIT(5U, 3U), kSimClockGateLptmr1 = FSL_SIM_SCGC_BIT(5U, 4U), kSimClockGateTsi0 = FSL_SIM_SCGC_BIT(5U, 5U), kSimClockGatePortA = FSL_SIM_SCGC_BIT(5U, 9U), kSimClockGatePortB = FSL_SIM_SCGC_BIT(5U, 10U), kSimClockGatePortC = FSL_SIM_SCGC_BIT(5U, 11U), kSimClockGatePortD = FSL_SIM_SCGC_BIT(5U, 12U), kSimClockGatePortE = FSL_SIM_SCGC_BIT(5U, 13U), kSimClockGateFtf0 = FSL_SIM_SCGC_BIT(6U, 0U), kSimClockGateDmamux0 = FSL_SIM_SCGC_BIT(6U, 1U), kSimClockGateSpi0 = FSL_SIM_SCGC_BIT(6U, 12U), kSimClockGateSpi1 = FSL_SIM_SCGC_BIT(6U, 13U), kSimClockGateSai0 = FSL_SIM_SCGC_BIT(6U, 15U), kSimClockGateCrc0 = FSL_SIM_SCGC_BIT(6U, 18U), kSimClockGateUsbdcd0 = FSL_SIM_SCGC_BIT(6U, 21U), kSimClockGatePdb0 = FSL_SIM_SCGC_BIT(6U, 22U), kSimClockGatePit0 = FSL_SIM_SCGC_BIT(6U, 23U), kSimClockGateFtm0 = FSL_SIM_SCGC_BIT(6U, 24U), kSimClockGateFtm1 = FSL_SIM_SCGC_BIT(6U, 25U), kSimClockGateFtm2 = FSL_SIM_SCGC_BIT(6U, 26U), kSimClockGateAdc0 = FSL_SIM_SCGC_BIT(6U, 27U), kSimClockGateRtc0 = FSL_SIM_SCGC_BIT(6U, 29U), kSimClockGateFlexbus0 = FSL_SIM_SCGC_BIT(7U, 0U), kSimClockGateDma0 = FSL_SIM_SCGC_BIT(7U, 1U), kSimClockGateMpu0 = FSL_SIM_SCGC_BIT(7U, 2U), kSimClockGateSdramc0 = FSL_SIM_SCGC_BIT(7U, 3U) } |
Clock gate name used for SIM_HAL_EnableClock/SIM_HAL_DisableClock. More... | |
Functions | |
static void | SIM_HAL_EnableClock (SIM_Type *base, sim_clock_gate_name_t name) |
Enable the clock for specific module. More... | |
static void | SIM_HAL_DisableClock (SIM_Type *base, sim_clock_gate_name_t name) |
Disable the clock for specific module. More... | |
static bool | SIM_HAL_GetGateCmd (SIM_Type *base, sim_clock_gate_name_t name) |
Get the the clock gate state for specific module. More... | |
static void | CLOCK_HAL_SetEmvsimSrc (SIM_Type *base, uint32_t instance, clock_emvsim_src_t setting) |
Set EMVSIM clock source. More... | |
static clock_emvsim_src_t | CLOCK_HAL_GetEmvsimSrc (SIM_Type *base, uint32_t instance) |
Get EMVSIM clock source. More... | |
static void | CLOCK_HAL_SetLpuartSrc (SIM_Type *base, uint32_t instance, clock_lpuart_src_t setting) |
Set LPUART clock source. More... | |
static clock_lpuart_src_t | CLOCK_HAL_GetLpuartSrc (SIM_Type *base, uint32_t instance) |
Get LPUART clock source. More... | |
static void | CLOCK_HAL_SetSdhcSrc (SIM_Type *base, uint32_t instance, clock_sdhc_src_t setting) |
Set the SDHC clock source selection. More... | |
static clock_sdhc_src_t | CLOCK_HAL_GetSdhcSrc (SIM_Type *base, uint32_t instance) |
Get the SDHC clock source selection. More... | |
static void | CLOCK_HAL_SetUsbfsSrc (SIM_Type *base, uint32_t instance, clock_usbfs_src_t setting) |
Set the selection of the clock source for the USB FS 48 MHz clock. More... | |
static clock_usbfs_src_t | CLOCK_HAL_GetUsbfsSrc (SIM_Type *base, uint32_t instance) |
Get the selection of the clock source for the USB FS 48 MHz clock. More... | |
void | CLOCK_HAL_SetUsbfsDiv (SIM_Type *base, uint8_t usbdiv, uint8_t usbfrac) |
Set USB FS divider setting. More... | |
void | CLOCK_HAL_GetUsbfsDiv (SIM_Type *base, uint8_t *usbdiv, uint8_t *usbfrac) |
Get USB FS divider setting. More... | |
void | CLOCK_HAL_SetPllFllDiv (SIM_Type *base, uint8_t pllflldiv, uint8_t pllfllfrac) |
Set PLL/FLL divider setting. More... | |
void | CLOCK_HAL_GetPllFllDiv (SIM_Type *base, uint8_t *pllflldiv, uint8_t *pllfllfrac) |
Gets PLL/FLL divider setting. More... | |
static void | CLOCK_HAL_SetTraceClkSrc (SIM_Type *base, clock_trace_src_t setting) |
Set debug trace clock selection. More... | |
static clock_trace_src_t | CLOCK_HAL_GetTraceClkSrc (SIM_Type *base) |
Get debug trace clock selection. More... | |
void | CLOCK_HAL_SetTraceDiv (SIM_Type *base, uint8_t tracediv, uint8_t tracefrac) |
Set TRACECLK divider setting. More... | |
void | CLOCK_HAL_GetTraceDiv (SIM_Type *base, uint8_t *tracediv, uint8_t *tracefrac) |
Gets TRACECLK setting. More... | |
static void | CLOCK_HAL_SetTpmSrc (SIM_Type *base, uint32_t instance, clock_tpm_src_t setting) |
Set the TPM clock source selection. More... | |
static clock_tpm_src_t | CLOCK_HAL_GetTpmSrc (SIM_Type *base, uint32_t instance) |
Get the TPM clock source selection. More... | |
static void | CLOCK_HAL_SetExternalRefClock32kSrc (SIM_Type *base, clock_er32k_src_t setting) |
Set the clock selection of ERCLK32K. More... | |
static clock_er32k_src_t | CLOCK_HAL_GetExternalRefClock32kSrc (SIM_Type *base) |
Get the clock selection of ERCLK32K. More... | |
static void | CLOCK_HAL_SetPllfllSel (SIM_Type *base, clock_pllfll_sel_t setting) |
Set PLL/FLL clock selection. More... | |
static clock_pllfll_sel_t | CLOCK_HAL_GetPllfllSel (SIM_Type *base) |
Get PLL/FLL clock selection. More... | |
static void | CLOCK_HAL_SetClkOutSel (SIM_Type *base, clock_clkout_src_t setting) |
Set CLKOUTSEL selection. More... | |
static clock_clkout_src_t | CLOCK_HAL_GetClkOutSel (SIM_Type *base) |
Get CLKOUTSEL selection. More... | |
static void | CLOCK_HAL_SetRtcClkOutSel (SIM_Type *base, clock_rtcout_src_t setting) |
Set RTCCLKOUTSEL selection. More... | |
static clock_rtcout_src_t | CLOCK_HAL_GetRtcClkOutSel (SIM_Type *base) |
Get RTCCLKOUTSEL selection. More... | |
static void | CLOCK_HAL_SetOutDiv1 (SIM_Type *base, uint8_t setting) |
Set OUTDIV1. More... | |
static uint8_t | CLOCK_HAL_GetOutDiv1 (SIM_Type *base) |
Get OUTDIV1. More... | |
static void | CLOCK_HAL_SetOutDiv2 (SIM_Type *base, uint8_t setting) |
Set OUTDIV2. More... | |
static uint8_t | CLOCK_HAL_GetOutDiv2 (SIM_Type *base) |
Get OUTDIV2. More... | |
static void | CLOCK_HAL_SetOutDiv3 (SIM_Type *base, uint8_t setting) |
Set OUTDIV3. More... | |
static uint8_t | CLOCK_HAL_GetOutDiv3 (SIM_Type *base) |
Get OUTDIV3. More... | |
static void | CLOCK_HAL_SetOutDiv4 (SIM_Type *base, uint8_t setting) |
Set OUTDIV4. More... | |
static uint8_t | CLOCK_HAL_GetOutDiv4 (SIM_Type *base) |
Get OUTDIV4. More... | |
static uint32_t | SIM_HAL_GetRamSize (SIM_Type *base) |
Gets RAM size. More... | |
static void | SIM_HAL_SetUsbVoltRegulatorCmd (SIM_Type *base, bool enable) |
Sets the USB voltage regulator enabled setting. More... | |
static bool | SIM_HAL_GetUsbVoltRegulatorCmd (SIM_Type *base) |
Gets the USB voltage regulator enabled setting. More... | |
static void | SIM_HAL_SetUsbVoltRegulatorInStdbyDuringStopMode (SIM_Type *base, sim_usbsstby_mode_t setting) |
Sets the USB voltage regulator in a standby mode setting during Stop, VLPS, LLS, and VLLS. More... | |
static sim_usbsstby_mode_t | SIM_HAL_GetUsbVoltRegulatorInStdbyDuringStopMode (SIM_Type *base) |
Gets the USB voltage regulator in a standby mode setting. More... | |
static void | SIM_HAL_SetUsbVoltRegulatorInStdbyDuringVlprwMode (SIM_Type *base, sim_usbvstby_mode_t setting) |
Sets the USB voltage regulator in a standby mode during the VLPR or the VLPW. More... | |
static sim_usbvstby_mode_t | SIM_HAL_GetUsbVoltRegulatorInStdbyDuringVlprwMode (SIM_Type *base) |
Gets the USB voltage regulator in a standby mode during the VLPR or the VLPW. More... | |
static void | SIM_HAL_SetUsbVoltRegulatorInStdbyDuringStopCmd (SIM_Type *base, bool enable) |
Sets the USB voltage regulator stop standby write enable setting. More... | |
static bool | SIM_HAL_GetUsbVoltRegulatorInStdbyDuringStopCmd (SIM_Type *base) |
Gets the USB voltage regulator stop standby write enable setting. More... | |
static void | SIM_HAL_SetUsbVoltRegulatorInStdbyDuringVlprwCmd (SIM_Type *base, bool enable) |
Sets the USB voltage regulator VLP standby write enable setting. More... | |
static bool | SIM_HAL_GetUsbVoltRegulatorInStdbyDuringVlprwCmd (SIM_Type *base) |
Gets the USB voltage regulator VLP standby write enable setting. More... | |
static void | SIM_HAL_SetUsbVoltRegulatorWriteCmd (SIM_Type *base, bool enable) |
Sets the USB voltage regulator enable write enable setting. More... | |
static bool | SIM_HAL_GetUsbVoltRegulatorWriteCmd (SIM_Type *base) |
Gets the USB voltage regulator enable write enable setting. More... | |
static void | SIM_HAL_SetFlexbusSecurityLevelMode (SIM_Type *base, sim_flexbus_security_level_t setting) |
Sets the FlexBus security level setting. More... | |
static sim_flexbus_security_level_t | SIM_HAL_GetFlexbusSecurityLevelMode (SIM_Type *base) |
Gets the FlexBus security level setting. More... | |
static void | SIM_HAL_SetLpuartRxSrcMode (SIM_Type *base, uint32_t instance, sim_lpuart_rxsrc_t select) |
Sets the LPUARTx receive data source select setting. More... | |
static sim_lpuart_rxsrc_t | SIM_HAL_GetLpuartRxSrcMode (SIM_Type *base, uint32_t instance) |
Gets the LPUARTx receive data source select setting. More... | |
static void | SIM_HAL_SetLpuartTxSrcMode (SIM_Type *base, uint32_t instance, sim_lpuart_txsrc_t select) |
Sets the LPUARTx transmit data source select setting. More... | |
static sim_lpuart_rxsrc_t | SIM_HAL_GetLpuartTxSrcMode (SIM_Type *base, uint32_t instance) |
Gets the LPUARTx transmit data source select setting. More... | |
static void | CLOCK_HAL_SetFlexioSrc (SIM_Type *base, uint32_t instance, clock_flexio_src_t setting) |
Select the clock source for FLEXIO. More... | |
static clock_flexio_src_t | CLOCK_HAL_GetFlexioSrc (SIM_Type *base, uint32_t instance) |
Get the clock source of FLEXIO. More... | |
void | SIM_HAL_SetFtmTriggerSrcMode (SIM_Type *base, uint32_t instance, uint8_t trigger, sim_ftm_trg_src_t select) |
Sets the FlexTimer x hardware trigger y source select setting. More... | |
sim_ftm_trg_src_t | SIM_HAL_GetFtmTriggerSrcMode (SIM_Type *base, uint32_t instance, uint8_t trigger) |
Gets the FlexTimer x hardware trigger y source select setting. More... | |
void | SIM_HAL_SetFtmExternalClkPinMode (SIM_Type *base, uint32_t instance, sim_ftm_clk_sel_t select) |
Sets the FlexTimer x external clock pin select setting. More... | |
sim_ftm_clk_sel_t | SIM_HAL_GetFtmExternalClkPinMode (SIM_Type *base, uint32_t instance) |
Gets the FlexTimer x external clock pin select setting. More... | |
void | SIM_HAL_SetFtmChSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel, sim_ftm_ch_src_t select) |
Sets the FlexTimer x channel y input capture source select setting. More... | |
sim_ftm_ch_src_t | SIM_HAL_GetFtmChSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel) |
Gets the FlexTimer x channel y input capture source select setting. More... | |
void | SIM_HAL_SetFtmChOutSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel, sim_ftm_ch_out_src_t select) |
Sets the FlexTimer x channel y output source select setting. More... | |
sim_ftm_ch_out_src_t | SIM_HAL_GetFtmChOutSrcMode (SIM_Type *base, uint32_t instance, uint8_t channel) |
Gets the FlexTimer x channel y output source select setting. More... | |
void | SIM_HAL_SetFtmSyncCmd (SIM_Type *base, uint32_t instance, bool sync) |
Set FlexTimer x hardware trigger 0 software synchronization. More... | |
static bool | SIM_HAL_GetFtmSyncCmd (SIM_Type *base, uint32_t instance) |
Get FlexTimer x hardware trigger 0 software synchronization setting. More... | |
void | SIM_HAL_SetFtmFaultSelMode (SIM_Type *base, uint32_t instance, uint8_t fault, sim_ftm_flt_sel_t select) |
Sets the FlexTimer x fault y select setting. More... | |
sim_ftm_flt_sel_t | SIM_HAL_GetFtmFaultSelMode (SIM_Type *base, uint32_t instance, uint8_t fault) |
Gets the FlexTimer x fault y select setting. More... | |
static uint32_t | SIM_HAL_GetFamilyId (SIM_Type *base) |
Gets the Kinetis Family ID in the System Device ID register (SIM_SDID). More... | |
static uint32_t | SIM_HAL_GetSubFamilyId (SIM_Type *base) |
Gets the Kinetis Sub-Family ID in the System Device ID register (SIM_SDID). More... | |
static uint32_t | SIM_HAL_GetSeriesId (SIM_Type *base) |
Gets the Kinetis SeriesID in the System Device ID register (SIM_SDID). More... | |
static uint32_t | SIM_HAL_GetFamId (SIM_Type *base) |
Gets the Kinetis Fam ID in System Device ID register (SIM_SDID). More... | |
static uint32_t | SIM_HAL_GetPinCntId (SIM_Type *base) |
Gets the Kinetis Pincount ID in System Device ID register (SIM_SDID). More... | |
static uint32_t | SIM_HAL_GetRevId (SIM_Type *base) |
Gets the Kinetis Revision ID in the System Device ID register (SIM_SDID). More... | |
static uint32_t | SIM_HAL_GetDieId (SIM_Type *base) |
Gets the Kinetis Die ID in the System Device ID register (SIM_SDID). More... | |
IP related clock feature APIs | |
void | CLOCK_HAL_SetOutDiv (SIM_Type *base, uint8_t outdiv1, uint8_t outdiv2, uint8_t outdiv3, uint8_t outdiv4) |
Sets the clock out dividers setting. More... | |
void | CLOCK_HAL_GetOutDiv (SIM_Type *base, uint8_t *outdiv1, uint8_t *outdiv2, uint8_t *outdiv3, uint8_t *outdiv4) |
Gets the clock out dividers setting. More... | |
void | SIM_HAL_SetAdcAlternativeTriggerCmd (SIM_Type *base, uint32_t instance, bool enable) |
Sets the ADCx alternate trigger enable setting. More... | |
bool | SIM_HAL_GetAdcAlternativeTriggerCmd (SIM_Type *base, uint32_t instance) |
Gets the ADCx alternate trigger enable setting. More... | |
void | SIM_HAL_SetAdcPreTriggerMode (SIM_Type *base, uint32_t instance, sim_adc_pretrg_sel_t select) |
Sets the ADCx pre-trigger select setting. More... | |
sim_adc_pretrg_sel_t | SIM_HAL_GetAdcPreTriggerMode (SIM_Type *base, uint32_t instance) |
Gets the ADCx pre-trigger select setting. More... | |
void | SIM_HAL_SetAdcTriggerMode (SIM_Type *base, uint32_t instance, sim_adc_trg_sel_t select) |
Sets the ADCx trigger select setting. More... | |
sim_adc_trg_sel_t | SIM_HAL_GetAdcTriggerMode (SIM_Type *base, uint32_t instance) |
Gets the ADCx trigger select setting. More... | |
void | SIM_HAL_SetAdcTriggerModeOneStep (SIM_Type *base, uint32_t instance, bool altTrigEn, sim_adc_pretrg_sel_t preTrigSel, sim_adc_trg_sel_t trigSel) |
Sets the ADCx trigger select setting in one function. More... | |
|
inlinestatic |
This function enables the clock for specific module.
base | Base address for current SIM instance. |
name | Name of the module to enable. |
|
inlinestatic |
This function disables the clock for specific module.
base | Base address for current SIM instance. |
name | Name of the module to disable. |
|
inlinestatic |
This function will get the clock gate state for specific module.
base | Base address for current SIM instance. |
name | Name of the module to get. |
|
inlinestatic |
This function sets emvsim clock source selection.
base | Base address for current SIM instance. |
instance | EMVSIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets emvsim clock source selection.
base | Base address for current SIM instance. |
instance | EMVSIM instance. |
|
inlinestatic |
This function sets lpuart clock source selection.
base | Base address for current SIM instance. |
instance | LPUART instance. |
setting | The value to set. |
|
inlinestatic |
This function gets lpuart clock source selection.
base | Base address for current SIM instance. |
instance | LPUART instance. |
|
inlinestatic |
This function sets the SDHC clock source selection.
base | Base address for current SIM instance. |
instance | IP instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the SDHC clock source selection.
base | Base address for current SIM instance. |
instance | IP instance. |
|
inlinestatic |
This function sets the selection of the clock source for the USB FS 48 MHz clock.
base | Base address for current SIM instance. |
instance | IP instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the selection of the clock source for the USB FS 48 MHz clock.
base | Base address for current SIM instance. |
instance | IP instance. |
|
inlinestatic |
This function sets debug trace clock selection.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets debug trace clock selection.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets the TPM clock source selection.
base | Base address for current SIM instance. |
instance | IP instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the TPM clock source selection.
base | Base address for current SIM instance. |
instance | IP instance. |
|
inlinestatic |
This function sets the clock selection of ERCLK32K.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the clock selection of ERCLK32K.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets the selection of the high frequency clock for various peripheral clocking options
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the selection of the high frequency clock for various peripheral clocking options
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets the selection of the clock to output on the CLKOUT pin.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the selection of the clock to output on the CLKOUT pin.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets the selection of the clock to output on the RTC_CLKOUT pin.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the selection of the clock to output on the RTC_CLKOUT pin.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets divide value OUTDIV1.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets divide value OUTDIV1.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets divide value OUTDIV2.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets divide value OUTDIV2.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets divide value OUTDIV3.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets divide value OUTDIV3.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets divide value OUTDIV4.
base | Base address for current SIM instance. |
setting | The value to set. |
|
inlinestatic |
This function gets divide value OUTDIV4.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the RAM size. The field specifies the amount of system RAM available on the device.
base | Base address for current SIM instance. |
|
inlinestatic |
This function controls whether the USB voltage regulator is enabled. This bit can only be written when the SOPT1CFG[URWE] bit is set.
base | Base address for current SIM instance. |
enable | USB voltage regulator enable setting
|
|
inlinestatic |
This function gets the USB voltage regulator enabled setting.
base | Base address for current SIM instance. |
|
inlinestatic |
This function controls whether the USB voltage regulator is placed in a standby mode during Stop, VLPS, LLS, and VLLS modes. This bit can only be written when the SOPT1CFG[USSWE] bit is set.
base | Base address for current SIM instance. |
setting | USB voltage regulator in standby mode setting
|
|
inlinestatic |
This function gets the USB voltage regulator in a standby mode setting.
base | Base address for current SIM instance. |
|
inlinestatic |
This function controls whether the USB voltage regulator is placed in a standby mode during the VLPR and the VLPW modes. This bit can only be written when the SOPT1CFG[UVSWE] bit is set.
base | Base address for current SIM instance. |
setting | USB voltage regulator in standby mode setting
|
|
inlinestatic |
This function gets the USB voltage regulator in a standby mode during the VLPR or the VLPW.
base | Base address for current SIM instance. |
|
inlinestatic |
This function controls whether the USB voltage regulator stop standby write feature is enabled. Writing one to this bit allows the SOPT1[USBSSTBY] bit to be written. This register bit clears after a write to SOPT1[USBSSTBY].
base | Base address for current SIM instance. |
enable | USB voltage regulator stop standby write enable setting
|
|
inlinestatic |
This function gets the USB voltage regulator stop standby write enable setting.
base | Base address for current SIM instance. |
|
inlinestatic |
This function controls whether USB voltage regulator VLP standby write feature is enabled. Writing one to this bit allows the SOPT1[USBVSTBY] bit to be written. This register bit clears after a write to SOPT1[USBVSTBY].
base | Base address for current SIM instance. |
enable | USB voltage regulator VLP standby write enable setting
|
|
inlinestatic |
This function gets the USB voltage regulator VLP standby write enable setting.
base | Base address for current SIM instance. |
|
inlinestatic |
This function controls whether the USB voltage regulator write enable feature is enabled. Writing one to this bit allows the SOPT1[USBREGEN] bit to be written. This register bit clears after a write to SOPT1[USBREGEN].
base | Base address for current SIM instance. |
enable | USB voltage regulator enable write enable setting
|
|
inlinestatic |
This function gets the USB voltage regulator enable write enable setting.
base | Base address for current SIM instance. |
|
inlinestatic |
This function sets the FlexBus security level setting. If the security is enabled, this field affects which CPU operations can access the off-chip via the FlexBus and DDR controller interfaces. This field has no effect if the security is not enabled.
base | Base address for current SIM instance. |
setting | FlexBus security level setting
|
|
inlinestatic |
This function gets the FlexBus security level setting.
base | Base address for current SIM instance. |
|
inlinestatic |
This function selects the clock source for FLEXIO.
base | Base address for current SIM instance. |
instance | IP instance. |
setting | The value to set. |
|
inlinestatic |
This function gets the clock source of FLEXIO.
base | Base address for current SIM instance. |
instance | IP instance. |
|
inlinestatic |
This function gets FlexTimer x hardware trigger 0 software synchronization. FTMxSYNCBIT.
base | Base address for current SIM instance. |
instance | device instance. |
|
inlinestatic |
This function gets the Kinetis Family ID in the System Device ID register.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the Kinetis Sub-Family ID in System Device ID register.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the Kinetis Series ID in System Device ID register.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the Kinetis Fam ID in System Device ID register.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the Kinetis Pincount ID in System Device ID register.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the Kinetis Revision ID in System Device ID register.
base | Base address for current SIM instance. |
|
inlinestatic |
This function gets the Kinetis Die ID in System Device ID register.
base | Base address for current SIM instance. |