luca020400

Untitled

Dec 13th, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <------>int comres = 0;
  2. <------>unsigned char data1, data2;
  3.  
  4. <------>comres = bma2x2_smbus_read_byte(client, BMA2X2_MODE_CTRL_REG, &data1);
  5. <------>comres = bma2x2_smbus_read_byte(client, BMA2X2_LOW_NOISE_CTRL_REG,
  6. <------><------><------>&data2);
  7.  
  8. <------>data1 = (data1 & 0xE0) >> 5;
  9. <------>data2 = (data2 & 0x40) >> 6;
Advertisement
Add Comment
Please, Sign In to add comment