HPM APP
HPMicro Application solution
mp_adc.h File Reference
#include "mp_common.h"

Go to the source code of this file.

Functions

uint8_t mp_adc_get_mapindex (uint8_t adc_index)
 Get ADC MAP index ;获取ADC MAP数组序号 More...
 
void mp_adc_get_default (uint8_t adc_index, hpm_adc_t *adc_t)
 Get the default value of the ADC data structure ;获取ADC数据结构默认值 More...
 
int mp_adc_init (uint8_t type, void *handle)
 MP ADC init ;MP ADC初始化 More...
 
int mp_adc_trigger_config (uint8_t type, void *handle)
 MP ADC trigger the preemption sampling configuration ;MP ADC触发抢占采样配置 More...
 
int mp_adc_interrupt_enable (uint8_t type, void *handle, bool enable)
 MP ADC enable interrupt ;MP ADC中断使能 More...
 
int mp_hdma_init_config (uint8_t type, void *handle, hpm_mp_hdma_over_callback cb)
 MP HDMA init(HDMA is used to transmit ADC sampling values. It can be used to continuously sample multiple adc values, and HDMA automatically carries the sampling results to the specified memory area) Note: After configuration, mp_hdma_transfer_start needs to be triggered to initiate the transfer ;MP HDMA初始配置(HDMA搬用ADC采样值; 常用于连续采样多个adc值,HDMA自动搬用到指定内存区域) 注意:配置完后需要 mp_hdma_transfer_start 触发开始传输 More...
 
int mp_hdma_transfer_start (uint32_t size)
 MP HDMA trigger and start transmission ;MP HDMA触发开始传输 More...
 
int mp_dma_chained_transfer_config (uint32_t size)
 MP HDMA chain transmission config, double buffered mode(In HDMA chain mode, multiple tasks are configured. In dual-buffer mode, the PING/PONG dual-buffer switching task is automatically performed without CPU intervention) ;MP HDMA链式传输配置,双缓冲模式(HDMA链式配置多任务,双缓冲模式下,自动PING/PONG双缓冲切换搬用,无需CPU干预) More...