Files
luban-lite-t3e-pro/bsp/artinchip/include/hal/hal_adcim.h

28 lines
646 B
C
Raw Normal View History

2023-08-30 16:21:18 +08:00
/*
2024-09-03 11:16:08 +08:00
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
2023-08-30 16:21:18 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
* Authors: matteo <duanmt@artinchip.com>
*/
#ifndef _ARTINCHIP_HAL_ADCIM_H_
#define _ARTINCHIP_HAL_ADCIM_H_
#include "aic_common.h"
int hal_adcim_calibration_set(unsigned int val);
s32 hal_adcim_probe(void);
2024-04-03 16:40:57 +08:00
u32 hal_adcim_auto_calibration(void);
2024-09-03 11:16:08 +08:00
int hal_adcim_adc2voltage(u16 *val, u32 cal_data, int scale, float def_voltage);
2023-08-30 16:21:18 +08:00
2023-11-09 20:19:51 +08:00
#ifdef AIC_ADCIM_DM_DRV
2023-08-30 16:21:18 +08:00
void hal_dm_chan_show(void);
s32 hal_dm_chan_store(u32 val);
void hal_adcdm_rtp_down_store(u32 val);
2023-11-09 20:19:51 +08:00
ssize_t hal_adcdm_sram_write(int *buf, u32 offset, size_t count);
2023-08-30 16:21:18 +08:00
#endif
#endif