请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
https://e2e.ti.com/support/amplifiers-group/amplifiers/f/amplifiers-forum/826059/ina260-ina-260
器件型号:INA260Peter、i2cset -m 命令的语法是什么。 如何指定要从值中屏蔽的位?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
https://e2e.ti.com/support/amplifiers-group/amplifiers/f/amplifiers-forum/826059/ina260-ina-260
器件型号:INA260Peter、i2cset -m 命令的语法是什么。 如何指定要从值中屏蔽的位?
您好、Alan、
此处说明了此参数的语法:
https://linux.die.net/man/8/i2cset
我希望您的命令看起来类似于:
i2cset -y -m 0000111111111111 2 0x40 [值] w
掩码的前4个零意味着[value]的前4位不会写入配置寄存器。
最棒的
Peter