Home
last modified time | relevance | path

Searched refs:AdcDevice (Results 1 – 5 of 5) sorted by relevance

/drivers/hdf_core/framework/support/platform/include/adc/
Dadc_core.h25 struct AdcDevice;
29 struct AdcDevice { struct
39 int32_t (*read)(struct AdcDevice *device, uint32_t channel, uint32_t *val); argument
40 int32_t (*start)(struct AdcDevice *device);
41 int32_t (*stop)(struct AdcDevice *device);
45 int32_t (*lock)(struct AdcDevice *device);
46 void (*unlock)(struct AdcDevice *device);
49 int32_t AdcDeviceAdd(struct AdcDevice *device);
51 void AdcDeviceRemove(struct AdcDevice *device);
53 struct AdcDevice *AdcDeviceGet(uint32_t number);
[all …]
/drivers/hdf_core/framework/support/platform/src/adc/
Dadc_core.c27 struct AdcDevice *devices[ADC_DEVICES_MAX];
33 static int32_t AdcDeviceLockDefault(struct AdcDevice *device) in AdcDeviceLockDefault()
42 static void AdcDeviceUnlockDefault(struct AdcDevice *device) in AdcDeviceUnlockDefault()
56 static inline int32_t AdcDeviceLock(struct AdcDevice *device) in AdcDeviceLock()
65 static inline void AdcDeviceUnlock(struct AdcDevice *device) in AdcDeviceUnlock()
72 int32_t AdcDeviceStart(struct AdcDevice *device) in AdcDeviceStart()
104 int32_t AdcDeviceStop(struct AdcDevice *device) in AdcDeviceStop()
137 static int32_t AdcManagerAddDevice(struct AdcDevice *device) in AdcManagerAddDevice()
169 static void AdcManagerRemoveDevice(struct AdcDevice *device) in AdcManagerRemoveDevice()
197 static struct AdcDevice *AdcManagerFindDevice(uint32_t number) in AdcManagerFindDevice()
[all …]
Dadc_if.c20 struct AdcDevice *device = NULL; in AdcOpen()
39 struct AdcDevice *device = (struct AdcDevice *)handle; in AdcClose()
56 return AdcDeviceRead((struct AdcDevice *)handle, channel, val); in AdcRead()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dadc_virtual.c22 struct AdcDevice device;
29 static int32_t VirtualAdcStart(struct AdcDevice *device) in VirtualAdcStart()
44 static int32_t VirtualAdcRead(struct AdcDevice *device, uint32_t channel, uint32_t *val) in VirtualAdcRead()
63 static int32_t VirtualAdcStop(struct AdcDevice *device) in VirtualAdcStop()
150 struct AdcDevice *dev = NULL; in VirtualAdcRelease()
/drivers/hdf_core/adapter/khdf/linux/platform/adc/
Dadc_iio_adapter.c35 struct AdcDevice device;
53 static int32_t AdcIioRead(struct AdcDevice *device, uint32_t channel, uint32_t *val) in AdcIioRead()
82 static int32_t AdcIioStop(struct AdcDevice *device) in AdcIioStop()
107 static int32_t AdcIioStart(struct AdcDevice *device) in AdcIioStart()
253 struct AdcDevice *device = NULL; in AdcIioRemoveByNode()