S32 SDK
lpit_driver.c File Reference
#include "lpit_driver.h"

Go to the source code of this file.

Functions

void LPIT_DRV_Init (uint32_t instance, const lpit_user_config_t *userConfig)
 Initializes the LPIT module. More...
 
void LPIT_DRV_Deinit (uint32_t instance)
 De-Initializes the LPIT module. More...
 
status_t LPIT_DRV_InitChannel (uint32_t instance, uint32_t channel, const lpit_user_channel_config_t *userChannelConfig)
 Initializes the LPIT channel. More...
 
void LPIT_DRV_StartTimerChannels (uint32_t instance, uint32_t mask)
 Starts the timer channel counting. More...
 
void LPIT_DRV_StopTimerChannels (uint32_t instance, uint32_t mask)
 Stops the timer channel counting. More...
 
status_t LPIT_DRV_SetTimerPeriodByUs (uint32_t instance, uint32_t channel, uint32_t periodUs)
 Sets the timer channel period in microseconds. More...
 
status_t LPIT_DRV_SetTimerPeriodInDual16ModeByUs (uint32_t instance, uint32_t channel, uint16_t periodHigh, uint16_t periodLow)
 Sets the timer channel period in microseconds. More...
 
uint64_t LPIT_DRV_GetTimerPeriodByUs (uint32_t instance, uint32_t channel)
 Gets the timer channel period in microseconds. More...
 
uint64_t LPIT_DRV_GetCurrentTimerUs (uint32_t instance, uint32_t channel)
 Gets the current timer channel counting value in microseconds. More...
 
void LPIT_DRV_SetTimerPeriodByCount (uint32_t instance, uint32_t channel, uint32_t count)
 Sets the timer channel period in count unit. More...
 
void LPIT_DRV_SetTimerPeriodInDual16ModeByCount (uint32_t instance, uint32_t channel, uint16_t periodHigh, uint16_t periodLow)
 Sets the timer channel period in count unit. More...
 
uint32_t LPIT_DRV_GetTimerPeriodByCount (uint32_t instance, uint32_t channel)
 Gets the current timer channel period in count unit. More...
 
uint32_t LPIT_DRV_GetCurrentTimerCount (uint32_t instance, uint32_t channel)
 Gets the current timer channel counting value in count. More...
 
uint32_t LPIT_DRV_GetInterruptFlagTimerChannels (uint32_t instance, uint32_t mask)
 Gets the current interrupt flag of timer channels. More...
 
void LPIT_DRV_ClearInterruptFlagTimerChannels (uint32_t instance, uint32_t mask)
 Clears the interrupt flag of timer channels. More...
 

Variables

static LPIT_Type *const s_lpitBase [] = LPIT_BASE_PTRS
 
static const clock_names_t s_lpitClkNames [LPIT_INSTANCE_COUNT] = {PCC_LPIT0_CLOCK}
 
static uint32_t s_lpitSourceClockFrequency [LPIT_INSTANCE_COUNT] = {0}
 

Variable Documentation

LPIT_Type* const s_lpitBase[] = LPIT_BASE_PTRS
static

Definition at line 64 of file lpit_driver.c.

const clock_names_t s_lpitClkNames[LPIT_INSTANCE_COUNT] = {PCC_LPIT0_CLOCK}
static

Definition at line 66 of file lpit_driver.c.

uint32_t s_lpitSourceClockFrequency[LPIT_INSTANCE_COUNT] = {0}
static

Definition at line 68 of file lpit_driver.c.