1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
24
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* ... */
#pragma once
#include "driver/dac_types.h"
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
#if SOC_DAC_SUPPORTED
typedef struct dac_oneshot_s *dac_oneshot_handle_t;
/* ... */
typedef struct {
dac_channel_t chan_id;
}{ ... } dac_oneshot_config_t;
/* ... */
esp_err_t dac_oneshot_new_channel(const dac_oneshot_config_t *oneshot_cfg, dac_oneshot_handle_t *ret_handle);
/* ... */
esp_err_t dac_oneshot_del_channel(dac_oneshot_handle_t handle);
/* ... */
esp_err_t dac_oneshot_output_voltage(dac_oneshot_handle_t handle, uint8_t digi_value);
/* ... */
#endif
#ifdef __cplusplus
}{...}
#endif