/* Master sends single byte through the I2Cx peripheral according to the set of the upper layer.  */
void I2C_MasterSendNullData(I2C_TypeDef *I2Cx, u8 *pBuf, u8 I2CCmd, u8 I2CStop, u8 I2CReSTR)
/* Master sends single byte through the I2Cx peripheral according to the set of the upper layer.  */
void I2C_MasterSendNullData(I2C_TypeDef *I2Cx, u8 *pBuf, u8 I2CCmd, u8 I2CStop, u8 I2CReSTR)
{
	assert_param(IS_I2C_ALL_PERIPH(I2Cx));
	I2Cx->IC_DATA_CMD = *(pBuf) |
		(1 << 11) |
		(I2CReSTR << 10) |
		(I2CCmd << 8) |
		(I2CStop << 9);    
}