HPM APP
HPMicro Application solution
adc16.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef ADC16_H
9 #define ADC16_H
10 
11 
12 
21 /***********************************************************************************************************************
22  *
23  * Definitions
24  *
25  **********************************************************************************************************************/
26 #define API_VERSION "V0.1.0"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
45 hpm_stat_t init_common_config(adc16_conversion_mode_t conv_mode);
46 
47 
53 void init_preemption_config(void);
54 
55 
63 void init_trigger_mux(TRGM_Type *ptr);
64 
65 
74 void init_trigger_source(PWM_Type *ptr);
75 
76 
77 
87 void init_trigger_target(ADC16_Type *ptr, uint8_t trig_ch, bool inten);
88 
89 
90 
96 void spi_init(void);
97 
98 
99 
100 
112 void hdma_spi_tx_chain_config(void);
113 
114 
115 
116 
117 
118 
124 #ifdef __cplusplus
125 }
126 #endif
127 
128 #endif //MP_API_H
void init_trigger_target(ADC16_Type *ptr, uint8_t trig_ch, bool inten)
Initialize trigger target ;初始化触发目标
Definition: adc16.c:419
void init_trigger_mux(TRGM_Type *ptr)
Initialize TRGM ;初始化互联管理器
Definition: adc16.c:224
void hdma_spi_tx_chain_config(void)
HDMA chain transmission configuration;HDMA链式传输配置 task 1:SPI->TRANSCTRL configuration; ;SPI数据格式配置 task...
Definition: adc16.c:238
void init_trigger_source(PWM_Type *ptr)
Initialize trigger source ;初始化触发源PWM.
Definition: adc16.c:183
hpm_stat_t init_common_config(adc16_conversion_mode_t conv_mode)
Initialize ADC common configuration ;初始化ADC通用配置
Definition: adc16.c:438
void init_preemption_config(void)
Initialize preemption conversion mode.Including trigger source initialization, trigger target initial...
Definition: adc16.c:469
void spi_init(void)
set SPI sclk frequency, format config, control config for master ;配置成主模式传输,SPI时钟频率,数据格式,传输控制,控制配置
Definition: adc16.c:359