We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
uint16_t MCHF_I2C_WriteRegister(I2C_HandleTypeDef* hi2c, uchar I2CAddr,uint16_t addr,uint16_t addr_size, uchar RegisterValue) { HAL_StatusTypeDef i2cRet = HAL_I2C_Mem_Write(hi2c,I2CAddr,addr,addr_size,&RegisterValue,1,100); return i2cRet != HAL_OK?0xFF00:0; }