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

Function rt_dac_disable

components/drivers/misc/dac.c:130–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130rt_err_t rt_dac_disable(rt_dac_device_t dev, rt_uint32_t channel)
131{
132 rt_err_t result = RT_EOK;
133
134 RT_ASSERT(dev);
135 if (dev->ops->disabled != RT_NULL)
136 {
137 result = dev->ops->disabled(dev, channel);
138 }
139 else
140 {
141 result = -RT_ENOSYS;
142 }
143
144 return result;
145}
146
147#ifdef RT_USING_FINSH
148

Callers 2

dacFunction · 0.85
dac_vol_sampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected