PHiLIP
adc.h
Go to the documentation of this file.
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 ADC_H_
20 #define ADC_H_
21 
22 /* Function prototypes ********************************************************/
29 void init_dut_adc(map_t *reg);
30 
34 void init_dut_adc_msp();
35 
39 void deinit_dut_adc_msp();
40 
50 error_t commit_dut_adc();
51 
58 void poll_dut_adc();
59 
60 #endif /* ADC_H_ */
61 
void init_dut_adc(map_t *reg)
Initializes adc registers and peripheral.
Definition: adc.c:53
error_t commit_dut_adc()
Commits the adc registers and executes operations.
Definition: adc.c:103
void poll_dut_adc()
Updated the map with ADC values.
Definition: adc.c:165
The memory map.
Definition: PHiLIP_typedef.h:340
void deinit_dut_adc_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: adc.c:92
void init_dut_adc_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: adc.c:76