src/AS5600.cpp
word AMS_5600::readTwoBytesSeparately(int addr_in)
{
  int highByte = readOneByte(addr_in  );
  int lowByte  = readOneByte(addr_in+1);
  return ( highByte << 8 ) | lowByte;
}
/*******************************************************
  Method: readTwoBytes
  In: two registers to read
  Out: data read from i2c as a word
  Description: reads two bytes register from i2c
*******************************************************/
readTwoBytes
In: two registers to read
Out: data read from i2c as a word
Description: reads two bytes register from i2c
readTwoBytes In : two registers to read Out : data read from i2c as a word Description : reads two bytes register from i2c
word AMS_5600::readTwoBytesSeparately(int addr_in)
{
  int highByte = readOneByte(addr_in  );
  int lowByte  = readOneByte(addr_in+1);
  return ( highByte << 8 ) | lowByte;
}
word AMS_5600 :: readTwoBytesSeparately ( int addr_in ) { int highByte = readOneByte ( addr_in ) ; int lowByte = readOneByte ( addr_in + 1 ) ; return ( highByte << 8 ) | lowByte ; }
Method: readTwoBytes
In: two registers to read
Out: data read from i2c as a word
Description: reads two bytes register from i2c
Method : readTwoBytes In : two registers to read Out : data read from i2c as a word Description : reads two bytes register from i2c