var searchIndex = {}; searchIndex["i2cdev"] = {"doc":"# i2cdev","items":[[0,"core","i2cdev","",null,null],[4,"I2CError","i2cdev::core","Error that occured while performing and I2C Operation",null,null],[13,"NotSupported","","",0,null],[13,"Other","","",0,null],[6,"I2CResult","","Result of an I2C Operation",null,null],[8,"I2CDevice","","Interface to an I2C Slave Device from an I2C Master",null,null],[10,"read","","Read data from the device to fill the provided slice",1,null],[10,"write","","Write the provided buffer to the device",1,null],[11,"smbus_write_quick","","This sends a single bit to the device, at the place of the Rd/Wr bit",1,null],[11,"smbus_read_byte","","Read a single byte from a device, without specifying a device register",1,null],[11,"smbus_write_byte","","Write a single byte to a device, without specifying a device register",1,null],[11,"smbus_read_byte_data","","Read a single byte from a device, from a designated register",1,null],[11,"smbus_write_byte_data","","Write a single byte to a specific register on a device",1,null],[11,"smbus_read_word_data","","Read 2 bytes form a given register on a device (lsb first)",1,null],[11,"smbus_write_word_data","","Write 2 bytes to a given register on a device (lsb first)",1,null],[11,"smbus_process_word","","Select a register, send 16 bits of data to it, and read 16 bits of data",1,null],[11,"smbus_read_block_data","","Read a block of up to 32 bytes from a device",1,null],[11,"smbus_write_block_data","","Write a block of up to 32 bytes to a device",1,null],[11,"smbus_process_block","","Select a register, send 1 to 31 bytes of data to it, and reads\n1 to 31 bytes of data from it.",1,null],[11,"fmt","","",0,null],[0,"linux","i2cdev","",null,null],[3,"LinuxI2CDevice","i2cdev::linux","",null,null],[11,"from","i2cdev::core","",0,{"inputs":[{"name":"error"}],"output":{"name":"i2cerror"}}],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"i2cerror"}}],[11,"as_raw_fd","i2cdev::linux","",2,null],[11,"new","","Create a new I2CDevice for the specified path",2,{"inputs":[{"name":"p"},{"name":"u16"}],"output":{"name":"i2cresult"}}],[11,"read","","Read data from the device to fill the provided slice",2,null],[11,"write","","Write the provided buffer to the device",2,null],[11,"smbus_write_quick","","This sends a single bit to the device, at the place of the Rd/Wr bit",2,null],[11,"smbus_read_byte","","Read a single byte from a device, without specifying a device register",2,null],[11,"smbus_write_byte","","Write a single byte to a sdevice, without specifying a device register",2,null],[11,"smbus_read_byte_data","","Read a single byte from a device, from a designated register",2,null],[11,"smbus_write_byte_data","","Write a single byte to a specific register on a device",2,null],[11,"smbus_read_word_data","","Read 2 bytes form a given register on a device",2,null],[11,"smbus_write_word_data","","Write 2 bytes to a given register on a device",2,null],[11,"smbus_process_word","","Select a register, send 16 bits of data to it, and read 16 bits of data",2,null],[11,"smbus_read_block_data","","Read a block of up to 32 bytes from a device",2,null],[11,"smbus_write_block_data","","Write a block of up to 32 bytes to a device",2,null],[11,"smbus_process_block","","Select a register, send 1 to 31 bytes of data to it, and reads\n1 to 31 bytes of data from it.",2,null],[0,"sensors","i2cdev","",null,null],[3,"AccelerometerSample","i2cdev::sensors","",null,null],[12,"x","","x-axis G's",3,null],[12,"y","","y-axis G's",3,null],[12,"z","","z-axis G's",3,null],[0,"adxl345_accelerometer","","",null,null],[3,"ADXL345Accelerometer","i2cdev::sensors::adxl345_accelerometer","",null,null],[17,"SLAVE_ADDR_PRIMARY","","",null,null],[17,"SLAVE_ADDR_ALT","","",null,null],[11,"new","","Create a new accelerometer handle for the given path/addr",4,{"inputs":[{"name":"t"}],"output":{"name":"i2cresult"}}],[11,"device_id","","Get the device id",4,null],[11,"accelerometer_sample","","",4,null],[0,"mpl115a2_barometer","i2cdev::sensors","",null,null],[3,"MPL115A2BarometerThermometer","i2cdev::sensors::mpl115a2_barometer","Provides access to the MPL115A2 Temperature and Pressure Sensor",null,null],[12,"i2cdev","","",5,null],[12,"coeff","","",5,null],[3,"MPL115A2RawReading","","In order to get either the temperature or humdity it is\nnecessary to read several different values from the chip.",null,null],[3,"MPL115A2Coefficients","","The sensors has several coefficients that must be used in order\nto calculate a correct value for pressure/temperature.",null,null],[17,"MPL115A2_I2C_ADDR","","",null,null],[11,"fmt","","",6,null],[11,"fmt","","",7,null],[11,"new","","Convert a slice of data values of length 8 to coefficients",7,{"inputs":[{"name":"i2cdevice"}],"output":{"name":"i2cresult"}}],[11,"new","","Create a new reading from the provided I2C Device",6,{"inputs":[{"name":"i2cdevice"}],"output":{"name":"i2cresult"}}],[11,"temperature_celsius","","Calculate the temperature in centrigrade for this reading",6,null],[11,"pressure_kpa","","Calculate the pressure in pascals for this reading",6,null],[11,"new","","Create sensor accessor for MPL115A2 on the provided i2c bus path",5,{"inputs":[{"name":"t"}],"output":{"name":"i2cresult"}}],[11,"pressure_kpa","","",5,null],[11,"temperature_celsius","","",5,null],[0,"nunchuck","i2cdev::sensors","",null,null],[3,"NunchuckReading","i2cdev::sensors::nunchuck","",null,null],[3,"Nunchuck","","",null,null],[17,"NUNCHUCK_SLAVE_ADDR","","",null,null],[11,"fmt","","",8,null],[11,"from_data","","",8,null],[11,"new","","Create a new Wii Nunchuck",9,{"inputs":[{"name":"t"}],"output":{"name":"i2cresult"}}],[11,"init","","Send the init sequence to the Wii Nunchuck",9,null],[11,"read","","",9,null],[8,"Accelerometer","i2cdev::sensors","Trait for sensors that provide access to accelerometer readings (3-axis)",null,null],[10,"accelerometer_sample","","Grab an accelerometer sample from the device",10,null],[8,"Thermometer","","Trait for sensors that provide access to temperature readings",null,null],[10,"temperature_celsius","","Get na temperature from the sensor in degrees celsisus",11,null],[8,"Barometer","","Trait for sensors that provide access to pressure readings",null,null],[10,"pressure_kpa","","Get a pressure reading from the sensor in kPa",12,null],[11,"fmt","","",3,null]],"paths":[[4,"I2CError"],[8,"I2CDevice"],[3,"LinuxI2CDevice"],[3,"AccelerometerSample"],[3,"ADXL345Accelerometer"],[3,"MPL115A2BarometerThermometer"],[3,"MPL115A2RawReading"],[3,"MPL115A2Coefficients"],[3,"NunchuckReading"],[3,"Nunchuck"],[8,"Accelerometer"],[8,"Thermometer"],[8,"Barometer"]]}; initSearch(searchIndex);