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.

CC1310 I2C通信发送停止命令

Other Parts Discussed in Thread: CC1310

大家好:

请教一个问题,请问CC1310如何发送一个停止位呢,系统SDK中封装好的API   I2C_transfer();已经帮我们弄好了 I2C的 Star 和 Stop ,但是现在我调试一个slave 比较特殊,初始化的时候要先给它发一个停止。这个该怎么操作。

slave参考代码如下

void init(void)				
{
	Delay(5);	
	I2C_Stop();						
	I2C_Start();					
	I2C_Send_Byte(0x7c);				
	I2C_Send_Byte(0xea);				
	I2C_Send_Byte(0xf0);				
	I2C_Send_Byte(0xbc);				
	I2C_Send_Byte(0xc8);				
	I2C_Stop();
}