original_docstring: Reads a signed 16-bit value from the I2C device
docstring: Reads a signed 16-bit value from the I2C device
docstring_tokens: Reads a signed 16 - bit value from the I2C device
code: def readS16(self, reg, little_endian=True):
      "Reads a signed 16-bit value from the I2C device"
      try:
        result = self.readU16(reg,little_endian)
        if result > 32767: result -= 65536
        return result
      except IOError, err:
        return self.errMsg()
code_tokens: def readS16 ( self , reg , little_endian = True ) : try : result = self . readU16 ( reg , little_endian ) if result > 32767 : result -= 65536 return result except IOError , err : return self . errMsg ( )
short_docstring: Reads a signed 16-bit value from the I2C device
short_docstring_tokens: Reads a signed 16 - bit value from the I2C device
comment: "Reads a signed 16-bit value from the I2C device"