Deadman Timer (DMT) driver using dsPIC MCUs. The functionality is to interrupt the processor in the event of a software malfunction.
More...
|
file | dmt.c |
| This is the generated driver source file for DMT driver.
|
|
file | dmt.c |
| This is the generated driver source file for DMT driver.
|
|
◆ DMT_CalibratedCounterGet()
uint32_t DMT_CalibratedCounterGet |
( |
void | | ) |
|
- Precondition
- Value will be compensated for the instructions involved in call-stack-push, reading SFR and call-stack-pop operations.
- Parameters
-
- Returns
- Returns the 32 bit counter value
◆ DMT_Clear()
- Precondition
- DMT_PreClear() should be called for the associated function to work
- Parameters
-
- Returns
- none
Definition at line 79 of file dmt.c.
◆ DMT_CounterGet()
uint32_t DMT_CounterGet |
( |
void | | ) |
|
- Precondition
- Value will not be compensated for the instructions involved in call-stack-push, reading SFR and call-stack-pop operations.
- Parameters
-
- Returns
- Returns the 32 bit counter value
Definition at line 127 of file dmt.c.
◆ DMT_Enable()
- Parameters
-
- Returns
- none
Definition at line 65 of file dmt.c.
◆ DMT_EventCallback()
void DMT_EventCallback |
( |
void | | ) |
|
- Parameters
-
- Returns
- none
Definition at line 142 of file dmt.c.
◆ DMT_EventCallbackRegister()
void DMT_EventCallbackRegister |
( |
void(*)(void) | handler | ) |
|
- Parameters
-
[in] | handler | - Address of the callback function.
|
- Returns
- none
Definition at line 134 of file dmt.c.
◆ DMT_Initialize()
void DMT_Initialize |
( |
void | | ) |
|
- Parameters
-
- Returns
- none
Definition at line 54 of file dmt.c.
◆ DMT_IsPreCleared()
bool DMT_IsPreCleared |
( |
void | | ) |
|
- Parameters
-
- Returns
- true - PreClear sequence performed successfully
-
false - PreClear sequence failed
Definition at line 101 of file dmt.c.
◆ DMT_IsWindowOpen()
bool DMT_IsWindowOpen |
( |
void | | ) |
|
- Parameters
-
- Returns
- true - Window Open status bit is set
-
false - Window Open status bit is not set
Definition at line 89 of file dmt.c.
◆ DMT_PreClear()
void DMT_PreClear |
( |
void | | ) |
|
- Precondition
- This function should be called before calling DMT_Clear
- Parameters
-
- Returns
- none
Definition at line 71 of file dmt.c.
◆ DMT_StatusGet()
uint16_t DMT_StatusGet |
( |
void | | ) |
|
- Parameters
-
- Returns
- status value of DMT
Definition at line 120 of file dmt.c.
◆ DMT_TimeoutCounterGet()
uint32_t DMT_TimeoutCounterGet |
( |
void | | ) |
|
- Parameters
-
- Returns
- 32 bit timeout counter value
Definition at line 106 of file dmt.c.
◆ DMT_WindowTimeoutCounterGet()
uint32_t DMT_WindowTimeoutCounterGet |
( |
void | | ) |
|
- Parameters
-
- Returns
- 32-bit window interval counter value
Definition at line 113 of file dmt.c.