PHiLIP
tmr.h
1 /*
2  * Copyright 2020 Kevin Weiss for HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the MIT License. See the
5  * file LICENSE in the top level directory for more details.
6  * SPDX-License-Identifier: MIT
7  */
8 
19 #ifndef TMR_H_
20 #define TMR_H_
21 
28 };
29 
30 #define DMA_HOLDOFF_NS 200
31 #define INT_HOLDOFF_NS 1000
33 #define OVERFLOW_TICK_VAL 0x10000
34 /* Function prototypes -------------------------------------------------------*/
35 
41 void init_dut_ic(map_t *reg);
42 
46 void init_dut_ic_msp();
47 
51 void deinit_dut_ic_msp();
52 
61 error_t commit_dut_ic();
62 
70 void poll_dut_ic();
71 
76 
77 #endif /* TMR_H_ */
78 
void init_dut_ic(map_t *reg)
Initializes timer registers and peripheral.
Definition: tmr.c:69
DUT_IC_EDGE
Edge select for DUT_IC.
Definition: tmr.h:24
error_t commit_dut_ic()
Commits the adc registers and executes operations.
Definition: tmr.c:168
void init_dut_ic_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: tmr.c:113
Definition: tmr.h:26
Definition: tmr.h:27
The memory map.
Definition: PHiLIP_typedef.h:340
void update_dut_ic_inputs()
Updates the dut_ic input level.
Definition: tmr.c:314
Definition: tmr.h:25
void deinit_dut_ic_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: tmr.c:154
void poll_dut_ic()
Polls for high speed input capture values.
Definition: tmr.c:233