Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
dmt.h
1
19/*
20© [2024] Microchip Technology Inc. and its subsidiaries.
21
22 Subject to your compliance with these terms, you may use Microchip
23 software and any derivatives exclusively with Microchip products.
24 You are responsible for complying with 3rd party license terms
25 applicable to your use of 3rd party software (including open source
26 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
27 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
28 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
29 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
30 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
31 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
32 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
33 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
34 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
35 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
36 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
37 THIS SOFTWARE.
38*/
39
40#ifndef DMT_H
41#define DMT_H
42
43// Section: Included Files
44#include <stdbool.h>
45#include <stdint.h>
46
47// Section: DMT APIs
48
55void DMT_Initialize ( void );
56
64void DMT_PreClear(void);
65
72void DMT_Enable(void);
73
81void DMT_Clear(void);
82
90bool DMT_IsWindowOpen(void);
91
100bool DMT_IsPreCleared(void);
101
108uint32_t DMT_TimeoutCounterGet(void);
109
116uint32_t DMT_WindowTimeoutCounterGet(void);
117
124uint16_t DMT_StatusGet(void);
125
134uint32_t DMT_CounterGet(void);
135
145
153void DMT_EventCallbackRegister(void (*handler)(void));
154
163void DMT_EventCallback(void);
164
165#endif // DMT.h
166
167
168
169
uint16_t DMT_StatusGet(void)
Gets the DMT status.
Definition dmt.c:120
void DMT_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
Definition dmt.c:142
void DMT_Initialize(void)
Initializes the DMT module.
Definition dmt.c:54
void DMT_PreClear(void)
Writes the PreClear Pattern for DMTPRECLR register.
Definition dmt.c:71
bool DMT_IsPreCleared(void)
Checks for the PreClear sequence was initiated and done before the Clear sequence is done.
Definition dmt.c:101
bool DMT_IsWindowOpen(void)
Returns the Window Open status.
Definition dmt.c:89
uint32_t DMT_CalibratedCounterGet(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 ev...
Definition dmt.c:134
uint32_t DMT_WindowTimeoutCounterGet(void)
Reads the DMT Window Interval Counter.
Definition dmt.c:113
uint32_t DMT_CounterGet(void)
Returns the current counter value.
Definition dmt.c:127
void DMT_Enable(void)
Enables the DMT module.
Definition dmt.c:65
uint32_t DMT_TimeoutCounterGet(void)
Reads the DMT counter register.
Definition dmt.c:106
void DMT_Clear(void)
Checks the PreClear Status and clears the DMT Fetch Counter.
Definition dmt.c:79