| PDL for FM0+ Version1.0 Peripheral Driverl Library for FM0+

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
C:/pdl_v10/library/driver/dt/dt.c File Reference
`#include "dt.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.
static void | Dt_InitIrq (void)
| Device dependent initialization of interrupts according CMSIS with level defined in pdl.h.
static void | Dt_DeInitIrq (void)
| Device dependent de-initialization of interrupts according CMSIS.
void | DtIrqHandler (uint8_t u8Ch)
| ISR callback for DT (channel 0 and 1)
en_result_t | Dt_Init (stc_dt_channel_config_t *pstcConfig, uint8_t u8Ch)
| Initialize DT.
en_result_t | Dt_DeInit (uint8_t u8Ch)
| De-Initialize DT.
en_result_t | Dt_EnableCount (uint8_t u8Ch)
| Enable Timer Counter.
en_result_t | Dt_DisableCount (uint8_t u8Ch)
| Disable Timer Counter.
en_result_t | Dt_EnableInt (dt_cb_func_ptr_t pfnIntCallback, uint8_t u8Ch)
| Enable Interrupt.
en_result_t | Dt_DisableInt (uint8_t u8Ch)
| Disable Interrupt.
boolean_t | Dt_GetIntFlag (uint8_t u8Ch)
| Get interrupt status The Function can return the interrupt status (TimerXRIS)
boolean_t | Dt_GetMaskIntFlag (uint8_t u8Ch)
| Get mask interrupt status The Function can return the mask interrupt status (TimerXMIS)
en_result_t | Dt_ClrIntFlag (uint8_t u8Ch)
| Clear interrupt status The Function clears the interrupt status.
en_result_t | Dt_WriteLoadVal (uint32_t u32LoadVal, uint8_t u8Ch)
| Write load value The Function writes the load value to load register.
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.
uint32_t | Dt_ReadCurCntVal (uint8_t u8Ch)
| Read current count value The Function reads the value from value register.
## Variables
static stc_dt_instance_data_t | m_astcDtInstanceDataLut [DtInstanceIndexMax]
| Look-up table for all enabled DT instances and their internal data.

## Detailed Description

A detailed description is available at DT Module description

History:

- 2014-04-01 1.0 Edison Zhang First version.

Definition in file dt.c.