Files
yanghaizhou 7bb1798788 rename hdf_platform.h to platform_if.h
Signed-off-by: yanghaizhou <yanghaizhou1@huawei.com>
2021-12-23 16:29:13 +08:00

38 lines
687 B
C

/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
*
* HDF is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
* See the LICENSE file in the root of this repository for complete details.
*/
#ifndef ADC_IF_H
#define ADC_IF_H
#include "platform_if.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
struct AdcIoMsg {
uint32_t number;
uint32_t channel;
};
DevHandle AdcOpen(uint32_t number);
void AdcClose(DevHandle handle);
int32_t AdcRead(DevHandle handle, uint32_t channel, uint32_t *val);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* ADC_IF_H */