|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "common_def.h"#include "tcxo.h"#include "hal_adc.h"#include "debug_print.h"#include "osal_debug.h"#include "pinctrl_porting.h"#include "pinctrl.h"#include "gpio.h"#include "adc_porting.h"#include "hal_adc_v154.h"
宏定义 | |
| #define | DELAY_500US 500 |
| #define | DELAY_300US 300 |
| #define | FIFO_DATA_LENS 2 |
| #define | MANUAL_CALI_LOW_LIMIT1 0 |
| #define | MANUAL_CALI_UPPER_LIMIT1 2 |
| #define | MANUAL_CALI_LOW_LIMIT2 3 |
| #define | MANUAL_CALI_UPPER_LIMIT2 31 |
| #define | MANUAL_CALI_LOW_LIMIT3 32 |
| #define | MANUAL_CALI_UPPER_LIMIT3 60 |
| #define | MANUAL_CALI_LOW_LIMIT4 61 |
| #define | MANUAL_CALI_UPPER_LIMIT4 63 |
| #define | MANUAL_CALI_GAIN 3 |
| #define | MANUAL_CALI_THRESHOLD 63 |
| #define | COUNT_THRESHOLD 1000 |
| #define | VOLTAGE_UPPER_LIMIT 3600 |
| #define | CH_NUM 6 |
函数 | |
| void | adc_port_calibration (void) |
| ADC calibratio. | |
| errcode_t | hal_adc_v154_channel_set (adc_channel_t ch, bool on) |
| void | hal_adc_irq_handler (void) |
| adc中断处理函数。 | |
| hal_adc_funcs_t * | hal_adc_v154_funcs_get (void) |
| 获取v154实例。 | |
变量 | |
| uint32_t | g_fifo_data [2] |
| uint32_t | g_ch_output_data [6][2] |
| uint32_t | g_ch_data_cnt [6] |
| #define CH_NUM 6 |
| #define COUNT_THRESHOLD 1000 |
| #define DELAY_300US 300 |
| #define DELAY_500US 500 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2024-2024. All rights reserved.
Description: Provides V154 HAL adc
History:
2024-02-01, Create file.
| #define FIFO_DATA_LENS 2 |
| #define MANUAL_CALI_GAIN 3 |
| #define MANUAL_CALI_LOW_LIMIT1 0 |
| #define MANUAL_CALI_LOW_LIMIT2 3 |
| #define MANUAL_CALI_LOW_LIMIT3 32 |
| #define MANUAL_CALI_LOW_LIMIT4 61 |
| #define MANUAL_CALI_THRESHOLD 63 |
| #define MANUAL_CALI_UPPER_LIMIT1 2 |
| #define MANUAL_CALI_UPPER_LIMIT2 31 |
| #define MANUAL_CALI_UPPER_LIMIT3 60 |
| #define MANUAL_CALI_UPPER_LIMIT4 63 |
| #define VOLTAGE_UPPER_LIMIT 3600 |
| uint32_t g_ch_data_cnt[6] |
| uint32_t g_ch_output_data[6][2] |
| uint32_t g_fifo_data[2] |