Kinetis SDK v.1.3 API Reference Manual
Rev. 0
Freescale Semiconductor, Inc.
|
This section describes the programming interface of the LPTMR HAL driver.
Data Structures | |
struct | lptmr_prescaler_user_config_t |
Define LPTMR prescaler user configure. More... | |
struct | lptmr_working_mode_user_config_t |
Define LPTMR working mode user configure. More... | |
LPTMR HAL. | |
static void | LPTMR_HAL_Enable (LPTMR_Type *base) |
Enables the LPTMR module operation. More... | |
static void | LPTMR_HAL_Disable (LPTMR_Type *base) |
Disables the LPTMR module operation. More... | |
static void | LPTMR_HAL_ClearIntFlag (LPTMR_Type *base) |
Clears the LPTMR interrupt flag if set. More... | |
static bool | LPTMR_HAL_IsIntPending (LPTMR_Type *base) |
Returns the current LPTMR interrupt flag. More... | |
static void | LPTMR_HAL_SetIntCmd (LPTMR_Type *base, bool enable) |
Enables or disables the LPTMR interrupt. More... | |
void | LPTMR_HAL_SetTimerWorkingMode (LPTMR_Type *base, lptmr_working_mode_user_config_t timerMode) |
Configures the LPTMR working mode. More... | |
void | LPTMR_HAL_SetPrescalerMode (LPTMR_Type *base, lptmr_prescaler_user_config_t prescaler_config) |
Sets the LPTMR prescaler mode. More... | |
static void | LPTMR_HAL_SetCompareValue (LPTMR_Type *base, uint32_t compareValue) |
Sets the LPTMR compare value. More... | |
static uint32_t | LPTMR_HAL_GetCompareValue (LPTMR_Type *base) |
Gets the LPTMR compare value. More... | |
uint32_t | LPTMR_HAL_GetCounterValue (LPTMR_Type *base) |
Gets the LPTMR counter value. More... | |
void | LPTMR_HAL_Init (LPTMR_Type *base) |
Restores the LPTMR module to reset state. More... | |
struct lptmr_prescaler_user_config_t |
Data Fields | |
bool | prescalerBypass |
Set this value will by pass the prescaler or glitch filter. More... | |
lptmr_prescaler_clock_select_t | prescalerClockSelect |
Selects the clock to be used by the LPTMR prescaler/glitch filter. More... | |
lptmr_prescaler_value_t | prescalerValue |
Configures the size of the prescaler in time counter mode or width of the glitch filter in pulse counter mode. More... | |
bool lptmr_prescaler_user_config_t::prescalerBypass |
lptmr_prescaler_clock_select_t lptmr_prescaler_user_config_t::prescalerClockSelect |
lptmr_prescaler_value_t lptmr_prescaler_user_config_t::prescalerValue |
struct lptmr_working_mode_user_config_t |
Data Fields | |
lptmr_timer_mode_t | timerModeSelect |
Selects the LPTMR working mode: Timer or Pulse Counter. More... | |
bool | freeRunningEnable |
Enables or disables the LPTMR free running. More... | |
lptmr_pin_polarity_t | pinPolarity |
Specifies LPTMR pulse input pin polarity. More... | |
lptmr_pin_select_t | pinSelect |
Specifies LPTMR pulse input pin select. More... | |
lptmr_timer_mode_t lptmr_working_mode_user_config_t::timerModeSelect |
bool lptmr_working_mode_user_config_t::freeRunningEnable |
lptmr_pin_polarity_t lptmr_working_mode_user_config_t::pinPolarity |
lptmr_pin_select_t lptmr_working_mode_user_config_t::pinSelect |
enum lptmr_pin_select_t |
enum lptmr_pin_polarity_t |
enum lptmr_timer_mode_t |
enum lptmr_status_t |
|
inlinestatic |
base | The LPTMR peripheral base address. |
|
inlinestatic |
base | The LPTMR peripheral base address. |
|
inlinestatic |
base | The LPTMR peripheral base address. |
|
inlinestatic |
base | The LPTMR peripheral base address |
true | An interrupt is pending. |
false | No interrupt is pending. |
|
inlinestatic |
base | The LPTMR peripheral base address |
enable | Pass true to enable LPTMR interrupt |
void LPTMR_HAL_SetTimerWorkingMode | ( | LPTMR_Type * | base, |
lptmr_working_mode_user_config_t | timerMode | ||
) |
base | The LPTMR peripheral base address. |
timerMode | Specifies LPTMR working mode configure, see lptmr_working_mode_user_config_t |
void LPTMR_HAL_SetPrescalerMode | ( | LPTMR_Type * | base, |
lptmr_prescaler_user_config_t | prescaler_config | ||
) |
base | The LPTMR peripheral base address. |
prescaler_config | Specifies LPTMR prescaler configure, see lptmr_prescaler_user_config_t |
|
inlinestatic |
base | The LPTMR peripheral base address. |
compareValue | Specifies LPTMR compare value, less than 0xFFFFU |
|
inlinestatic |
base | The LPTMR peripheral base address. |
uint32_t LPTMR_HAL_GetCounterValue | ( | LPTMR_Type * | base | ) |
base | The LPTMR peripheral base address. |
void LPTMR_HAL_Init | ( | LPTMR_Type * | base | ) |
base | The LPTMR peripheral base address |