Home
last modified time | relevance | path

Searched refs:aos_adc_t (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/drivers/peripheral/adc/include/aos/
A Dadc_core.h37 } aos_adc_t; typedef
41 void (*unregister)(aos_adc_t *adc);
43 aos_status_t (*startup)(aos_adc_t *adc);
45 void (*shutdown)(aos_adc_t *adc);
47 aos_status_t (*read)(aos_adc_t *adc, int32_t channel, int32_t *data);
49 aos_status_t (*read_voltage)(aos_adc_t *adc, int32_t channel, int32_t *data);
51 aos_status_t (*set_channel)(aos_adc_t *adc, int32_t channel, bool enable);
53 aos_status_t (*set_sample_time)(aos_adc_t *adc, int32_t channel, uint32_t clock);
55 aos_status_t (*set_mode)(aos_adc_t *adc, aos_adc_mode_t clock);
57 aos_status_t (*get_range)(aos_adc_t *adc, int32_t channel, int32_t *range);
[all …]
A Dadc_csi.h12 aos_adc_t aos_adc; /* aos adc device */
/AliOS-Things-master/components/drivers/peripheral/adc/src/
A Dadc.c38 aos_adc_t *adc; in aos_adc_set_sample_time()
41 adc = aos_container_of(ref->dev, aos_adc_t, dev); in aos_adc_set_sample_time()
55 aos_adc_t *adc; in aos_adc_set_mode()
70 aos_adc_t *adc; in aos_adc_get_resolution()
85 aos_adc_t *adc; in aos_adc_get_range()
104 aos_adc_t *adc; in aos_adc_read()
121 aos_adc_t *adc; in aos_adc_read_voltage()
137 aos_adc_t *adc = aos_container_of(dev, aos_adc_t, dev); in dev_adc_unregister()
145 aos_adc_t *adc = aos_container_of(ref->dev, aos_adc_t, dev); in dev_adc_get()
155 aos_adc_t *adc = aos_container_of(ref->dev, aos_adc_t, dev); in dev_adc_put()
[all …]
A Dadc_csi.c10 static void adc_csi_unregister(aos_adc_t *adc) in adc_csi_unregister()
17 static aos_status_t adc_csi_startup(aos_adc_t *adc) in adc_csi_startup()
24 static void adc_csi_shutdown(aos_adc_t *adc) in adc_csi_shutdown()
31 static aos_status_t adc_csi_read(aos_adc_t *adc, int32_t channel, int32_t *data) in adc_csi_read()
49 static aos_status_t adc_csi_read_voltage(aos_adc_t *adc, int32_t channel, int32_t *data) in adc_csi_read_voltage()
67 static aos_status_t adc_csi_set_channel(aos_adc_t *adc, int32_t channel, bool enable) in adc_csi_set_channel()
74 static aos_status_t adc_csi_set_sample_time(aos_adc_t *adc, int32_t channel, uint32_t clock) in adc_csi_set_sample_time()
81 static aos_status_t adc_csi_set_mode(aos_adc_t *adc, aos_adc_mode_t mode) in adc_csi_set_mode()
89 static aos_status_t adc_csi_get_range(aos_adc_t *adc, int32_t channel, uint32_t *range) in adc_csi_get_range()

Completed in 4 milliseconds