Home
last modified time | relevance | path

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

/components/drivers/misc/
A Ddac.c152 static rt_dac_device_t dac_device = RT_NULL; in dac() local
161 dac_device = (rt_dac_device_t)rt_device_find(argv[2]); in dac()
162 result_str = (dac_device == RT_NULL) ? "failure" : "success"; in dac()
172 if (dac_device == RT_NULL) in dac()
181 result = rt_dac_enable(dac_device, atoi(argv[2])); in dac()
183 …rt_kprintf("%s channel %d enables %s \n", dac_device->parent.parent.name, atoi(argv[2]), result_st… in dac()
194 rt_dac_write(dac_device, atoi(argv[2]), atoi(argv[3])); in dac()
195 …rt_kprintf("%s channel %d write value is %d \n", dac_device->parent.parent.name, atoi(argv[2]), at… in dac()
206 result = rt_dac_disable(dac_device, atoi(argv[2])); in dac()
208 …rt_kprintf("%s channel %d disable %s \n", dac_device->parent.parent.name, atoi(argv[2]), result_st… in dac()

Completed in 2 milliseconds