PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
dt.c File Reference
#include "pdl.h"
Include dependency graph for dt.c:

Go to the source code of this file.

Functions

static stc_dt_intern_data_t * DtGetInternDataPtr (volatile stc_dtn_t **ppstcDt, uint8_t u8Ch)
 Check pointer to Dual Timer instance and enable channel. More...
 
static void Dt_InitIrq (void)
 Device dependent initialization of interrupts according CMSIS with level defined in l3.h. More...
 
static void Dt_DeInitIrq (void)
 Device dependent de-initialization of interrupts according CMSIS. More...
 
void DtIrqHandler (uint8_t u8Ch)
 ISR callback for DT (channel 0 and 1) More...
 
en_result_t Dt_Init (stc_dt_channel_config_t *pstcConfig, uint8_t u8Ch)
 Initialize DT. More...
 
en_result_t Dt_DeInit (uint8_t u8Ch)
 De-Initialize DT. More...
 
en_result_t Dt_EnableCount (uint8_t u8Ch)
 Enable Timer Counter. More...
 
en_result_t Dt_DisableCount (uint8_t u8Ch)
 Disable Timer Counter. More...
 
en_result_t Dt_EnableInt (dt_cb_func_ptr_t pfnIntCallback, uint8_t u8Ch)
 Enable Interrupt. More...
 
en_result_t Dt_DisableInt (uint8_t u8Ch)
 Disable Interrupt. More...
 
boolean_t Dt_GetIntFlag (uint8_t u8Ch)
 Get interrupt status The Function can return the interrupt status (TimerXRIS) More...
 
boolean_t Dt_GetMaskIntFlag (uint8_t u8Ch)
 Get mask interrupt status The Function can return the mask interrupt status (TimerXMIS) More...
 
en_result_t Dt_ClrIntFlag (uint8_t u8Ch)
 Clear interrupt status The Function clears the interrupt status. More...
 
en_result_t Dt_WriteLoadVal (uint32_t u32LoadVal, uint8_t u8Ch)
 Write load value The Function writes the load value to load register. More...
 
en_result_t Dt_WriteBgLoadVal (uint32_t u32BgLoadVal, uint8_t u8Ch)
 Write back-ground load value The Function writes the load value to back-ground load register. More...
 
uint32_t Dt_ReadCurCntVal (uint8_t u8Ch)
 Read current count value The Function reads the value from value register. More...
 

Variables

static stc_dt_instance_data_t m_astcDtInstanceDataLut [DtInstanceIndexMax]
 Look-up table for all enabled DT instances and their internal data. More...
 

Detailed Description

A detailed description is available at DT Module description

History:

  • 2013-04-01 1.0 NT First version.

Definition in file dt.c.