85 #if defined(__cplusplus)
252 base->
TMR[channel].
TVAL = count;
268 return (base->
TMR[channel].
TVAL);
286 return (base->
TMR[channel].
CVAL);
354 return (base->
MSR) & mask;
461 uint32_t triggerChannelSelect)
499 bool isReloadOnTrigger)
519 bool isStopOnInterrupt)
540 bool isStartOnTrigger)
560 bool isChannelChained)
609 #if defined(__cplusplus)
#define LPIT_MCR_DBG_EN_MASK
#define LPIT_MCR_DOZE_EN_MASK
static void LPIT_HAL_SetStartOnTriggerCmd(LPIT_Type *const base, uint32_t channel, bool isStartOnTrigger)
Sets timer channel start on trigger.
static void LPIT_HAL_SetStopOnInterruptCmd(LPIT_Type *const base, uint32_t channel, bool isStopOnInterrupt)
Sets timer channel stop on interrupt.
#define LPIT_TMR_TCTRL_TROT(x)
#define LPIT_TMR_TCTRL_CHAIN_MASK
lpit_timer_modes_t
Mode options available for the LPIT timer Implements : lpit_timer_modes_t_Class.
#define LPIT_MCR_M_CEN_MASK
static void LPIT_HAL_SetReloadOnTriggerCmd(LPIT_Type *const base, uint32_t channel, bool isReloadOnTrigger)
Sets timer channel reload on trigger.
static void LPIT_HAL_SetTimerChannelModeCmd(LPIT_Type *const base, uint32_t channel, lpit_timer_modes_t mode)
Sets operation mode of timer channel.
static uint32_t LPIT_HAL_GetInterruptFlagTimerChannels(const LPIT_Type *base, uint32_t mask)
Gets the interrupt flag of timer channels.
static void LPIT_HAL_SetTriggerSourceCmd(LPIT_Type *const base, uint32_t channel, lpit_trigger_source_t triggerSource)
Sets trigger source of timer channel.
#define LPIT_TMR_TCTRL_TSOI_MASK
#define LPIT_TMR_TCTRL_MODE(x)
static void LPIT_HAL_EnableInterruptTimerChannels(LPIT_Type *const base, uint32_t mask)
Enables the interrupt generation for timer channels.
#define LPIT_MCR_SW_RST_MASK
static void LPIT_HAL_SetTimerRunInDebugCmd(LPIT_Type *const base, bool isRunInDebug)
Sets operation of LPIT in debug mode.
#define LPIT_MCR_DOZE_EN(x)
static void LPIT_HAL_DisableInterruptTimerChannels(LPIT_Type *const base, uint32_t mask)
Disables the interrupt generation for timer channels.
#define LPIT_TMR_TCTRL_T_EN_MASK
#define LPIT_TMR_TCTRL_CHAIN(x)
static uint32_t LPIT_HAL_GetCurrentTimerCount(const LPIT_Type *base, uint32_t channel)
Gets the current timer channel counting value.
static void LPIT_HAL_StopTimerChannels(LPIT_Type *const base, uint32_t mask)
Stops the timer channel from counting.
#define LPIT_TMR_TCTRL_MODE_SHIFT
static void LPIT_HAL_SetTriggerSelectCmd(LPIT_Type *const base, uint32_t channel, uint32_t triggerChannelSelect)
Sets internal trigger source for timer channel.
#define LPIT_TMR_TCTRL_TRG_SRC(x)
#define LPIT_TMR_TCTRL_T_EN_SHIFT
#define LPIT_MCR_DBG_EN(x)
static void LPIT_HAL_SetTimerChannelChainCmd(LPIT_Type *const base, uint32_t channel, bool isChannelChained)
Sets timer channel chaining.
#define LPIT_TMR_TCTRL_TRG_SEL_MASK
#define LPIT_TMR_TCTRL_TRG_SRC_MASK
static void LPIT_HAL_Enable(LPIT_Type *const base)
Enables the LPIT module.
#define LPIT_TMR_TCTRL_TSOT_MASK
void LPIT_HAL_GetModuleInformation(const LPIT_Type *base, lpit_module_information_t *moduleInfomation)
Gets the information of LPIT module.
lpit_trigger_source_t
Trigger source options.
static void LPIT_HAL_Disable(LPIT_Type *const base)
Disables the LPIT module.
static uint32_t LPIT_HAL_GetTimerPeriodByCount(const LPIT_Type *base, uint32_t channel)
Gets the timer channel period in count unit.
#define LPIT_TMR_TCTRL_TROT_MASK
#define LPIT_TMR_TCTRL_TSOT(x)
#define LPIT_TMR_TCTRL_MODE_MASK
static void LPIT_HAL_SetTimerRunInDozeCmd(LPIT_Type *const base, bool isRunInDoze)
Sets operation of LPIT in DOZE mode.
#define LPIT_TMR_TCTRL_TRG_SEL(x)
static void LPIT_HAL_ClearInterruptFlagTimerChannels(LPIT_Type *const base, uint32_t mask)
Clears the interrupt flag of timer channels.
static void LPIT_HAL_StartTimerChannels(LPIT_Type *const base, uint32_t mask)
Starts the timer channel counting.
static void LPIT_HAL_Reset(LPIT_Type *const base)
Resets the LPIT module.
static lpit_timer_modes_t LPIT_HAL_GetTimerChannelModeCmd(const LPIT_Type *base, uint32_t channel)
Gets current operation mode of timer channel.
static void LPIT_HAL_SetTimerPeriodByCount(LPIT_Type *const base, uint32_t channel, uint32_t count)
Sets the timer channel period in count unit.
#define LPIT_TMR_TCTRL_TSOI(x)
static bool LPIT_HAL_IsTimerChannelRunning(const LPIT_Type *base, uint32_t channel)
Checks timer channel operation status.
struct LPIT_Type::@13 TMR[LPIT_TMR_COUNT]