FXOS8700CQ i2c functionality failure on Beaglebone

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FXOS8700CQ i2c functionality failure on Beaglebone

1,724件の閲覧回数
priyanks
Contributor I

Hi,

Forgive my lack of expert knowledge on this subject. I am working on interfacing the FRDM-STBC-AGM01 (FXOS8700CQ and FXAS21002). Due to this setup type with beaglebone I am unable to get any of the toolbars to work. I am trying to get started by reading the WHO_AM_I and writing to CTRL_REG1 on the board using i2c. The program only prints zero value for both cases. Can an expert suggest what I am doing wrong?

int main(void)
{
  char rxBuffer[32];  // receive buffer
  char txBuffer[32];  // transmit buffer
  int gyroAddress = 0x20; // gyro device address
  int xlAddress = 0x1E// accelerometer device address
  int tenBitAddress = 0// is the device's address 10-bit? Usually not.
  int opResult = 0// for error checking of operations

  // Create a file descriptor for the I2C bus
  int i2cHandle = open("/dev/i2c-1", O_RDWR);

  // Tell the I2C peripheral that the device address is (or isn't) a 10-bit
  opResult = ioctl(i2cHandle, I2C_TENBIT, tenBitAddress);

  // Tell the I2C peripheral what the address of the device is
  opResult = ioctl(i2cHandle, I2C_SLAVE, gyroAddress);

  // Clear our buffers
  memset(rxBuffer, 0, sizeof(rxBuffer));
  memset(txBuffer, 0, sizeof(txBuffer));

  //We're going to ask the gyro to read back its "WHO_AM_I"
  txBuffer[0] = 0x0C; // This is the address we want to read from.
  opResult = write(i2cHandle, txBuffer, 1);
  if (opResult != 1) printf("No ACK bit!\n");
  opResult = read(i2cHandle, rxBuffer, 1);
  printf("Part ID: %d\n", (int)rxBuffer[0]);
 
  // we need to change the slave address!
  opResult = ioctl(i2cHandle, I2C_SLAVE, xlAddress);
  txBuffer[0] = 0x0D// This is the address to read from.
  opResult = write(i2cHandle, txBuffer, 1);
  if (opResult != 1) printf("No ACK bit!\n");
  opResult = read(i2cHandle, rxBuffer, 1);
  printf("Part ID: %d\n", (int)rxBuffer[0]);
}

I can read values from the sensor using i2cget/dump commands. Program seems simple but still does not function. Any hints?

Thank you.

0 件の賞賛
1 返信

1,399件の閲覧回数
michaelestanley
NXP Employee
NXP Employee

Priyank,

I've moved your question to the general Sensors community, as I think we're more likely to get you a good answer here.  The sensorfusion team has no experience with the BeagleBoard, so can't be much help.

Mike

0 件の賞賛
%3CLINGO-SUB%20id%3D%22lingo-sub-425351%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBeaglebone%20%E3%81%A7%E3%81%AE%20FXOS8700CQ%20i2c%20%E6%A9%9F%E8%83%BD%E9%9A%9C%E5%AE%B3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-425351%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E4%BB%B6%E3%81%AB%E9%96%A2%E3%81%97%E3%81%A6%E7%A7%81%E3%81%8C%E5%B0%82%E9%96%80%E7%9F%A5%E8%AD%98%E3%81%AB%E6%AC%A0%E3%81%91%E3%81%A6%E3%81%84%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E3%81%8A%E8%A8%B1%E3%81%97%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82FRDM-STBC-AGM01%20(FXOS8700CQ%20%E3%81%8A%E3%82%88%E3%81%B3%20FXAS21002)%20%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%95%E3%82%A7%E3%82%A4%E3%82%B9%E3%81%AB%E5%8F%96%E3%82%8A%E7%B5%84%E3%82%93%E3%81%A7%E3%81%84%E3%81%BE%E3%81%99%E3%80%82beaglebone%20%E3%81%AE%E3%81%93%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97%20%E3%82%BF%E3%82%A4%E3%83%97%E3%81%8C%E5%8E%9F%E5%9B%A0%E3%81%A7%E3%80%81%E3%81%84%E3%81%9A%E3%82%8C%E3%81%AE%E3%83%84%E3%83%BC%E3%83%AB%E3%83%90%E3%83%BC%E3%82%82%E5%8B%95%E4%BD%9C%E3%81%95%E3%81%9B%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%E7%A7%81%E3%81%AF%E3%80%81WHO_AM_I%20%E3%82%92%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E3%80%81i2c%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%9C%E3%83%BC%E3%83%89%E4%B8%8A%E3%81%AE%20CTRL_REG1%20%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%82%80%E3%81%93%E3%81%A8%E3%81%8B%E3%82%89%E5%A7%8B%E3%82%81%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%AF%E3%81%A9%E3%81%A1%E3%82%89%E3%81%AE%E5%A0%B4%E5%90%88%E3%82%82%E3%82%BC%E3%83%AD%E5%80%A4%E3%81%AE%E3%81%BF%E3%82%92%E5%87%BA%E5%8A%9B%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E5%B0%82%E9%96%80%E5%AE%B6%E3%81%AF%E7%A7%81%E3%81%8C%E4%BD%95%E3%82%92%E9%96%93%E9%81%95%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%8B%E6%8C%87%E6%91%98%E3%81%97%E3%81%A6%E3%82%82%E3%82%89%E3%81%88%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CCODE%20class%3D%22rainbow%22%20style%3D%22font-family%3A%20Consolas%2C%20'Liberation%20Mono'%2C%20Courier%2C%20monospace%3B%20color%3A%20inherit%3B%20background%3A%20transparent%3B%22%3E%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22call%20function%22%3Emain%3C%2FSPAN%3E%20(%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Evoid%3C%2FSPAN%3E%20)%3CBR%20%2F%3E%20%7B%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Echar%3C%2FSPAN%3E%20rxBuffer%5B%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E32%3C%2FSPAN%3E%20%5D%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E5%8F%97%E4%BF%A1%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Echar%3C%2FSPAN%3E%20txBuffer%5B%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E32%3C%2FSPAN%3E%20%5D%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E9%80%81%E4%BF%A1%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20gyroAddress%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0x20%3C%2FSPAN%3E%20%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E3%82%B8%E3%83%A3%E3%82%A4%E3%83%AD%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20xlAddress%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0x1E%3C%2FSPAN%3E%20%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E5%8A%A0%E9%80%9F%E5%BA%A6%E3%82%BB%E3%83%B3%E3%82%B5%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AE%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20tenBitAddress%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AE%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%AF%2010%20%E3%83%93%E3%83%83%E3%83%88%E3%81%A7%E3%81%99%E3%81%8B%3F%20%E9%80%9A%E5%B8%B8%E3%81%AF%E3%81%9D%E3%81%86%E3%81%A7%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20opResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E6%93%8D%E4%BD%9C%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E7%94%A8%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20I2C%E3%83%90%E3%82%B9%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E8%A8%98%E8%BF%B0%E5%AD%90%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20i2cHandle%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22call%20function%22%3E%E3%82%AA%E3%83%BC%E3%83%97%E3%83%B3%3C%2FSPAN%3E(%20%3CSPAN%20class%3D%22string%22%20style%3D%22color%3A%20%23dd1144%3B%22%3E%22%2Fdev%2Fi2c-1%22%3C%2FSPAN%3E%20%E3%80%81%20O_RDWR)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20I2C%E3%83%9A%E3%83%AA%E3%83%95%E3%82%A7%E3%83%A9%E3%83%AB%E3%81%AB%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%8C10%E3%83%93%E3%83%83%E3%83%88%E3%81%A7%E3%81%82%E3%82%8B%E3%81%8B%E3%81%9D%E3%81%86%E3%81%A7%E3%81%AA%E3%81%84%E3%81%8B%E3%82%92%E4%BC%9D%E3%81%88%E3%81%BE%E3%81%99%3C%2FSPAN%3E%3CBR%20%2F%3EopResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22call%20function%22%3Eioctl%3C%2FSPAN%3E%20(i2cHandle%E3%80%81I2C_TENBIT%E3%80%81tenBitAddress)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20I2C%E3%83%9A%E3%83%AA%E3%83%95%E3%82%A7%E3%83%A9%E3%83%AB%E3%81%AB%E3%83%87%E3%83%90%E3%82%A4%E3%82%B9%E3%81%AE%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92%E4%BC%9D%E3%81%88%E3%82%8B%3C%2FSPAN%3E%3CBR%20%2F%3EopResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22call%20function%22%3Eioctl%3C%2FSPAN%3E%20(i2cHandle%E3%80%81I2C_SLAVE%E3%80%81gyroAddress)%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E3%83%90%E3%83%83%E3%83%95%E3%82%A1%E3%82%92%E3%82%AF%E3%83%AA%E3%82%A2%E3%81%99%E3%82%8B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22call%20function%22%3Ememset%3C%2FSPAN%3E%20(rxBuffer%2C%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%2C%20%3CSPAN%20class%3D%22call%20function%22%3Esizeof%3C%2FSPAN%3E%20(rxBuffer))%3B%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22call%20function%22%3Ememset%3C%2FSPAN%3E%20(txBuffer%2C%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%2C%20%3CSPAN%20class%3D%22call%20function%22%3Esizeof%3C%2FSPAN%3E%20(txBuffer))%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%20%2F%2F%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%E3%82%B8%E3%83%A3%E3%82%A4%E3%83%AD%E3%81%AB%E3%80%8CWHO_AM_I%E3%80%8D%E3%82%92%E8%AA%AD%E3%81%BF%E4%B8%8A%E3%81%92%E3%81%A6%E3%82%82%E3%82%89%E3%81%86%3C%2FSPAN%3E%3CBR%20%2F%3EtxBuffer%5B%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%5D%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0x0C%3C%2FSPAN%3E%20%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E3%81%93%E3%82%8C%E3%81%AF%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E5%85%83%E3%81%AE%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%A7%E3%81%99%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3EopResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22call%20function%22%3E%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%3C%2FSPAN%3E(i2cHandle%E3%80%81txBuffer%E3%80%81%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E1%3C%2FSPAN%3E%20)%3B%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eif%3C%2FSPAN%3E%20(opResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E!%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E1%3C%2FSPAN%3E%20)%20%3CSPAN%20class%3D%22call%20function%22%3Eprintf%3C%2FSPAN%3E%20(%20%3CSPAN%20class%3D%22string%22%20style%3D%22color%3A%20%23dd1144%3B%22%3E%22ACK%E3%83%93%E3%83%83%E3%83%88%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93!%5Cn%22%3C%2FSPAN%3E%20)%3B%3CBR%20%2F%3E%20opResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22call%20function%22%3E%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%3C%2FSPAN%3E(i2cHandle%E3%80%81rxBuffer%E3%80%81%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E1%3C%2FSPAN%3E%20)%3B%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22call%20function%22%3Eprintf%3C%2FSPAN%3E%20(%20%3CSPAN%20class%3D%22string%22%20style%3D%22color%3A%20%23dd1144%3B%22%3E%22%E3%83%91%E3%83%BC%E3%83%84ID%3A%20%25d%5Cn%22%3C%2FSPAN%3E%20%2C%20(%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20)rxBuffer%5B%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%5D)%3B%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E3%82%B9%E3%83%AC%E3%83%BC%E3%83%96%20%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3E%20opResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22call%20function%22%3Eioctl%3C%2FSPAN%3E%20(i2cHandle%E3%80%81I2C_SLAVE%E3%80%81xlAddress)%3B%3CBR%20%2F%3E%20txBuffer%5B%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%5D%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0x0D%3C%2FSPAN%3E%20%3B%20%3CSPAN%20class%3D%22comment%22%20style%3D%22color%3A%20%23999988%3B%22%3E%2F%2F%20%E3%81%93%E3%82%8C%E3%81%AF%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%E5%85%83%E3%81%AE%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%A7%E3%81%99%E3%80%82%3C%2FSPAN%3E%3CBR%20%2F%3EopResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22call%20function%22%3E%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%3C%2FSPAN%3E(i2cHandle%E3%80%81txBuffer%E3%80%81%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E1%3C%2FSPAN%3E%20)%3B%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eif%3C%2FSPAN%3E%20(opResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E!%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E1%3C%2FSPAN%3E%20)%20%3CSPAN%20class%3D%22call%20function%22%3Eprintf%3C%2FSPAN%3E%20(%20%3CSPAN%20class%3D%22string%22%20style%3D%22color%3A%20%23dd1144%3B%22%3E%22ACK%E3%83%93%E3%83%83%E3%83%88%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93!%5Cn%22%3C%2FSPAN%3E%20)%3B%3CBR%20%2F%3E%20opResult%20%3CSPAN%20class%3D%22keyword%20operator%22%20style%3D%22font-weight%3A%20bold%3B%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22call%20function%22%3E%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8A%3C%2FSPAN%3E(i2cHandle%E3%80%81rxBuffer%E3%80%81%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E1%3C%2FSPAN%3E%20)%3B%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22call%20function%22%3Eprintf%3C%2FSPAN%3E%20(%20%3CSPAN%20class%3D%22string%22%20style%3D%22color%3A%20%23dd1144%3B%22%3E%22%E3%83%91%E3%83%BC%E3%83%84ID%3A%20%25d%5Cn%22%3C%2FSPAN%3E%20%2C%20(%20%3CSPAN%20class%3D%22keyword%22%20style%3D%22font-weight%3A%20bold%3B%22%3Eint%3C%2FSPAN%3E%20)rxBuffer%5B%20%3CSPAN%20class%3D%22numeric%20constant%22%20style%3D%22color%3A%20%23009999%3B%22%3E0%3C%2FSPAN%3E%20%5D)%3B%3CBR%20%2F%3E%20%7D%3C%2FCODE%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Ei2cget%2Fdump%20%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%82%BB%E3%83%B3%E3%82%B5%E3%81%8B%E3%82%89%E5%80%A4%E3%82%92%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%AF%E5%8D%98%E7%B4%94%E3%81%AB%E8%A6%8B%E3%81%88%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%81%BE%E3%81%A0%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%E4%BD%95%E3%81%8B%E3%83%92%E3%83%B3%E3%83%88%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-425352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FXOS8700CQ%20i2c%20functionality%20failure%20on%20Beaglebone%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-425352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E3%83%97%E3%83%AA%E3%83%A4%E3%83%B3%E3%82%AF%E3%80%81%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%93%E3%81%A7%E3%81%AE%E6%96%B9%E3%81%8C%E9%81%A9%E5%88%87%E3%81%AA%E5%9B%9E%E7%AD%94%E3%81%8C%E5%BE%97%E3%82%89%E3%82%8C%E3%82%8B%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E9%AB%98%E3%81%84%E3%81%A8%E6%80%9D%E3%82%8F%E3%82%8C%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E8%B3%AA%E5%95%8F%E3%82%92%E4%B8%80%E8%88%AC%E7%9A%84%E3%81%AA%E3%82%BB%E3%83%B3%E3%82%B5%20%E3%82%B3%E3%83%9F%E3%83%A5%E3%83%8B%E3%83%86%E3%82%A3%E3%81%AB%E7%A7%BB%E5%8B%95%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82Sensorfusion%20%E3%83%81%E3%83%BC%E3%83%A0%E3%81%AB%E3%81%AF%20BeagleBoard%20%E3%81%AE%E7%B5%8C%E9%A8%93%E3%81%8C%E3%81%AA%E3%81%84%E3%81%AE%E3%81%A7%E3%80%81%E3%81%82%E3%81%BE%E3%82%8A%E5%BD%B9%E3%81%AB%E7%AB%8B%E3%81%A1%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3CP%3EMike%3C%2FP%3E%3C%2FLINGO-BODY%3E