We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HI,在此文件中drivers/adc/ad7689/ad7689.c 121行这个位置是否有误? 根据芯片手册只有14bit 控制位.为什么取到了spi第二个字节的数据? 是否需要删除这个if判断,只保留spi第三个字节和第四个字节.
The text was updated successfully, but these errors were encountered:
7949在这个repo里的读取是用4个字节完成的,而adc返回的4字节数据并没有分割(14bit adc值+14bit 寄存器值),所以第一个字节和第二个字节的前6位是该通道的adc值,第二个字节后2位、第三个字节和第四个字节的前4位是寄存器的数据,第四个字节的后4位是无关数据,所以在121行的操作里将这三个字节的数据取出放到了一个uint32_t数cfg里,且在121和124行分别对cfg进行了右移2位,因此后4位无关数据都被从cfg中去除,且cfg的bit13-bit0为14位寄存器的数据。
而且cfg的bit19-bit14实际上是adc值的后六位,但是因为对后续的no_os_field_get不影响,所以没有处理。
no_os_field_get
Sorry, something went wrong.
No branches or pull requests
HI,在此文件中drivers/adc/ad7689/ad7689.c
121行这个位置是否有误?
根据芯片手册只有14bit 控制位.为什么取到了spi第二个字节的数据?
是否需要删除这个if判断,只保留spi第三个字节和第四个字节.
The text was updated successfully, but these errors were encountered: