|  | Dual Active Bridge Development Board (Part-No. ) |
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
144uint32_t DMT_CalibratedCounterGet(void);
145
153void DMT_EventCallbackRegister(void (*handler)(void));
154
163 void DMT_EventCallback(void);
164
165#endif // DMT.h
166
167
168
169
DMT_StatusGet
uint16_t DMT_StatusGet(void)
Gets the DMT status.
Definition dmt.c:120
DMT_EventCallback
void DMT_EventCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
DMT_Initialize
void DMT_Initialize(void)
Initializes the DMT module.
Definition dmt.c:54
DMT_PreClear
void DMT_PreClear(void)
Writes the PreClear Pattern for DMTPRECLR register.
Definition dmt.c:71
DMT_IsPreCleared
bool DMT_IsPreCleared(void)
Checks for the PreClear sequence was initiated and done before the Clear sequence is done.
Definition dmt.c:101
DMT_IsWindowOpen
bool DMT_IsWindowOpen(void)
Returns the Window Open status.
Definition dmt.c:89
DMT_CalibratedCounterGet
uint32_t DMT_CalibratedCounterGet(void)
Returns the current counter value.
DMT_EventCallbackRegister
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
DMT_WindowTimeoutCounterGet
uint32_t DMT_WindowTimeoutCounterGet(void)
Reads the DMT Window Interval Counter.
Definition dmt.c:113
DMT_CounterGet
uint32_t DMT_CounterGet(void)
Returns the current counter value.
Definition dmt.c:127
DMT_Enable
void DMT_Enable(void)
Enables the DMT module.
Definition dmt.c:65
DMT_TimeoutCounterGet
uint32_t DMT_TimeoutCounterGet(void)
Reads the DMT counter register.
Definition dmt.c:106
DMT_Clear
void DMT_Clear(void)
Checks the PreClear Status and clears the DMT Fetch Counter.
Definition dmt.c:79