SARADC常用接口
1.可以通过用户态接口获取adc值,其中*表示adc第多少通道:
cat /sys/bus/iio/devices/iio\:device0/in_voltage*_raw
例如 channle0:
cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
2.内核常用接口:
获取adc值: iio_read_channel_raw()
获取电压: iio_read_channel_processed() |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 15:07
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.