<providerclass="org.eclipse.cdt.core.language.settings.providers.LanguageSettingsGenericProvider"id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"name="CDT User Setting Entries"prefer-non-shared="true"/>
dev_err(dev,"Requires at least 2 parameters: class name, page. Optional: slave address (7 bit), high reg address byte, bytes to write (1..10), SCL freq. (kHz)\n");
return-EINVAL;
}
dc=xi2c_dev_get(name);
if(!dc){
dev_err(dev,"I2c class name %s is not defined\n",name);
dev_err(dev,"Requires 4 parameters: page, two byte addr (0 - 8bit,1 - 16 bit reg. addr), number of bytes to read, bytes to write (1..10), 1/4 scl period in mclk\n");
return-EINVAL;
set_sensor_i2c_rd(chn,
page&0xff,// index in lookup table
two_byte_addr&1,// Number of address bytes (0 - one byte, 1 - two bytes)
num_bytes&7,// Number of bytes to read (1..8, 0 means 8)
bit_delay&0xff);// Bit delay - number of mclk periods in 1/4 of the SCL period