📄 slavewritei2c.c
字号:
#include <i2c.h>
#include <p30fxxxx.h>
/****************************************************************************
* Function Name: SlaveWriteI2C
* Description: This routine is used to write a byte to the I2C bus.
* The input parameter data_out is written to the
* I2CTRN register.
* Parameters: unsigned char : data_out
* Return Value: None
******************************************************************************/
void SlaveWriteI2C(unsigned char data_out)
{
I2CTRN = data_out; /* data transferred to I2CTRN reg */
I2CCONbits.SCLREL = 1; /* Release the clock */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -