|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "chip_core_irq.h"#include "common_def.h"#include "lpm_dev_ops.h"#include "soc_osal.h"#include "pinctrl_porting.h"#include "pinctrl.h"#include "debug_print.h"#include "hal_adc_v154.h"#include "efuse_porting.h"#include "adc_porting.h"
宏定义 | |
| #define | ADC_BASE_ADDR 0x4400C000 |
| #define | CLDO_BASE_ADDR 0X44001138 |
函数 | |
| uintptr_t | adc_porting_base_addr_get (void) |
| 获取指定ADC的基地址。 | |
| uintptr_t | cldo_addr_get (void) |
| 获取指定ADC复位寄存器的基地址。 | |
| void | adc_port_clock_enable (bool on) |
| Set the divider number of the peripheral device clock. | |
| void | adc_port_init_clock (adc_clock_t clock) |
| Set the divider number of the peripheral device clock. | |
| void | adc_port_register_hal_funcs (void) |
| Register hal funcs objects into hal_adc module. | |
| void | adc_port_register_irq (void) |
| Register the interrupt of adc. | |
| void | adc_port_unregister_hal_funcs (void) |
| Unregister hal funcs objects from hal_adc module. | |
| void | adc_port_unregister_irq (void) |
| Unregister the interrupt of adc. | |
| void | adc_port_power_on (bool on) |
| Power on or power off the peripheral device. | |
| hal_adc_type_info_t * | adc_port_get_cfg (void) |
| adc获取通道配置。 | |
| errcode_t | adc_port_get_cali_param (uint8_t *data_s, uint8_t *data_b, uint8_t *data_k) |
| errcode_t | adc_port_read (uint8_t channel, uint16_t *data) |
变量 | |
| uint16_t | g_voltage = 0 |
| #define ADC_BASE_ADDR 0x4400C000 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides adc port
History:
2022-09-16, Create file.
| #define CLDO_BASE_ADDR 0X44001138 |
| uint16_t g_voltage = 0 |