This is the generated driver source file for DMT driver. More...
#include <xc.h>
#include <stddef.h>
#include "../dmt.h"
#include "../interrupt.h"
Go to the source code of this file.
Functions | |
void | DMT_Calibrate (void) |
void | DMT_Initialize (void) |
Initializes the DMT module. | |
void | DMT_Enable (void) |
Enables the DMT module. | |
void | DMT_PreClear (void) |
Writes the PreClear Pattern for DMTPRECLR register. | |
void | DMT_Clear (void) |
Checks the PreClear Status and clears the DMT Fetch Counter. | |
bool | DMT_IsWindowOpen (void) |
Returns the Window Open status. | |
bool | DMT_IsPreCleared (void) |
Checks for the PreClear sequence was initiated and done before the Clear sequence is done. | |
uint32_t | DMT_TimeoutCounterGet (void) |
Reads the DMT counter register. | |
uint32_t | DMT_WindowTimeoutCounterGet (void) |
Reads the DMT Window Interval Counter. | |
uint16_t | DMT_StatusGet (void) |
Gets the DMT status. | |
uint32_t | DMT_CounterGet (void) |
Returns the current counter value. | |
void | DMT_EventCallbackRegister (void(*handler)(void)) |
This function can be used to override default callback and to define custom callback for DMT Event event. | |
void | DMT_EventCallback (void) |
This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using DMT_EventCallbackRegister. | |
void | _DMTInterrupt (void) |
Variables | |
static bool | bPreCleared = false |
uint32_t | calibOffset = 0 |
static void(* | DMT_EventHandler )(void) = NULL |
DMT Generated Driver Source File
Definition in file dmt.c.
void DMT_Calibrate | ( | void | ) |