This is the generated driver source file for DMT driver. More...
#include <xc.h>#include <stddef.h>#include "../dmt.h"#include "../interrupt.h"
Include dependency graph for dmt.c: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 | __attribute__ ((weak)) |
| void | __attribute__ ((interrupt, no_auto_psv)) |
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 | ) |
Here is the caller graph for this function: