error = 1; config[0] = 0x10; error = i2c_burst_write(dev_i2c,i2c_dt_ldc2114.addr,LDC_REG_RESET,config, sizeof(config)); if(error != 0){ printk("LDC_REG_RESET: Failed to write 0x%x to address 0x0%x. \n\r", config[0],LDC_REG_RESET); } else{ error = 1; printk("LDC_REG_RESET: Successful write 0x%x to address 0x0%x. \n\r", config[0],LDC_REG_RESET); } printk("size of config=%d\n",sizeof(config)); printk("1: config[0]=%x\n",config[0]); k_sleep(K_MSEC(100)); error = i2c_burst_read(dev_i2c,i2c_dt_ldc2114.addr,LDC_REG_RESET,config_read, sizeof(config_read)); if(error != 0){ printk("LDC_REG_STATUS: Failed to read data at address 0x0%x. \n\r", LDC_REG_RESET); } else{ error = 1; printk("LDC_REG_STATUS: Successful read value %x at address 0x0%x. \n\r", config_read[0],LDC_REG_RESET); } printk("2: config_read[0]=%x\n",config_read[0]); output: LDC_REG_RESET: Successful write 0x10 to address 0x0a. size of config=1 1: config[0]=10 LDC_REG_STATUS: Successful read value 0 at address 0x0a. 2: config_read[0]=0