ch423手冊(cè)上說(shuō)的系統(tǒng)參數(shù)設(shè)置 命令,共兩個(gè)字節(jié),第一字節(jié)48H,第二字節(jié)xxH;現(xiàn)在我用stm32的硬件I2c去發(fā)送這個(gè)命令。stm32自帶的庫(kù)函數(shù):
HAL_I2C_Master_Transmit(&I2cHandle, (uint16_t)I2C_ADDRESS, (uint8_t*)aTxBuffer, TXBUFFERSIZE, 10000);
(uint16_t)I2C_ADDRESS是指從機(jī)的地址;
(uint8_t*)aTxBuffer是指要發(fā)送的數(shù)據(jù);
TXBUFFERSIZE是指要發(fā)送的數(shù)據(jù)長(zhǎng)度;
那我發(fā)送這個(gè)系統(tǒng)參數(shù)設(shè)置命令,上面的三個(gè)參數(shù)我都應(yīng)該是多少呢?