Solved
This topic has been closed for replies.
thanks angelo,
in solved due to this changes
I2C_16_BIT_REG_ADDRESS changed before it is I2C_8_BIT_REG_ADDRESS
i2c_result_t i2c_lld_write(I2CDriver *i2cd, uint8_t dev_addr, uint16_t reg_addr, uint8_t *data, uint8_t ndata_bytes) {
if (ndata_bytes == 0U) {
return I2C_NO_ERROR;
}
/* Check for valid address */
if ((dev_addr == 0U) || ((dev_addr & 1U) == 1U)) {
return I2C_ERROR_INVALID_ADDRESS;
}
if (data == NULL) {
return I2C_ERROR_INVALID_ARGUMENT;
}
return (i2cd->ops.write != NULL) ? i2cd->ops.write(i2cd->ops.priv, dev_addr, reg_addr, I2C_16_BIT_REG_ADDRESS, data, ndata_bytes) : I2C_ERROR_INVALID_ARGUMENT;
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
