锐蓝3D打印wiki

聚高协议

2018-01-08
/
Song Lei
/

聚高协议

//byte14 Tmp1_H
	i2cBufferTx[idx++] = (0x00ff)&((e5cc_cur_temperature[0]>>8)&0xFF);
	//byte15 Tmp2_L
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_cur_temperature[1]&0xFF);
	//byte16 Tmp2_H
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_cur_temperature[1]>>8);
	//byte17 Tmp3_L
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_cur_temperature[2]&0xFF);
	//byte18 Tmp3_H
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_cur_temperature[2]>>8);
	//byte19 Tmp4_L
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_set_temperature[0]&0xff);
	//byte20 Tmp4_H
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_set_temperature[0]>>8);
	//byte21 Tmp5_L
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_set_temperature[1]&0xff);
	//byte22 Tmp5_H
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_set_temperature[1]>>8);

e5cc_cur_temperature[0~2]分别表示当前的设计温度

e5cc_set_temperature[0~2]分别表示当前的设计温度

因为现在I2C的协议长度不够,又增加了30和31两个byte

//byte30 Tmp6_L
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_set_temperature[2]&0xff);
	//byte31 Tmp6_H
	i2cBufferTx[idx++] = (0x00ff)&(e5cc_set_temperature[2]>>8);

Similar Posts

Comments