MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_dac_enable

Function rt_dac_enable

components/drivers/misc/dac.c:113–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113rt_err_t rt_dac_enable(rt_dac_device_t dev, rt_uint32_t channel)
114{
115 rt_err_t result = RT_EOK;
116
117 RT_ASSERT(dev);
118 if (dev->ops->enabled != RT_NULL)
119 {
120 result = dev->ops->enabled(dev, channel);
121 }
122 else
123 {
124 result = -RT_ENOSYS;
125 }
126
127 return result;
128}
129
130rt_err_t rt_dac_disable(rt_dac_device_t dev, rt_uint32_t channel)
131{

Callers 3

dacFunction · 0.85
dac_vol_sampleFunction · 0.85
dac_vol_sampleFunction · 0.85

Calls

no outgoing calls

Tested by 1

dac_vol_sampleFunction · 0.68