为什么我通过以下方式读取data的数据都是0,是读取的方式有错吗?请问如何正确的使用ICP命令?谢谢
write_dpp2600_i2c(DPP2600_DEV_ADDR, 0x3A, 1, 0);
write_dpp2600_i2c(DPP2600_DEV_ADDR, 0x38, cmd, 0);
read_dpp2600_i2c(DPP2600_DEV_ADDR, 0x39, &data);
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.
为什么我通过以下方式读取data的数据都是0,是读取的方式有错吗?请问如何正确的使用ICP命令?谢谢
write_dpp2600_i2c(DPP2600_DEV_ADDR, 0x3A, 1, 0);
write_dpp2600_i2c(DPP2600_DEV_ADDR, 0x38, cmd, 0);
read_dpp2600_i2c(DPP2600_DEV_ADDR, 0x39, &data);
Write Cmd:CMD_CPU_handshake_flag_wr, addr:36, subAddr:3a 00 00 00 01 Write(OK) Write Cmd:CMD_CPU_register_read2_wr, addr:36, subAddr:38 00 00 00 c4 Write(OK) Write Cmd:cmd_write_rdaddr, addr:36, subAddr:15 39 Write(OK) Read Cmd:CMD_CPU_READ_SYSTEM_rd, addr:37, Read(OK) Rcvd: 00 00 00 08