tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/bmp180/registers.go (about) 1 package bmp180 2 3 // Constants/addresses used for I2C. 4 5 // The I2C address which this device listens to. 6 const Address = 0x77 7 8 // Registers. Names, addresses and comments copied from the datasheet. 9 const ( 10 AC1_MSB = 0xAA // Calibration coefficients start at 0xAA ends at 0xBF 11 CMD_TEMP = 0x2E 12 CMD_PRESSURE = 0x34 13 REG_CTRL = 0xF4 14 REG_TEMP_MSB = 0xF6 15 REG_PRESSURE_MSB = 0xF6 16 17 WHO_AM_I = 0xD0 18 CHIP_ID = 0x55 19 ) 20 21 const ( 22 // ULTRALOWPOWER is the lowest oversampling mode of the pressure measurement. 23 ULTRALOWPOWER OversamplingMode = iota 24 // BSTANDARD is the standard oversampling mode of the pressure measurement. 25 STANDARD 26 // HIGHRESOLUTION is a high oversampling mode of the pressure measurement. 27 HIGHRESOLUTION 28 // ULTRAHIGHRESOLUTION is the highest oversampling mode of the pressure measurement. 29 ULTRAHIGHRESOLUTION 30 ) 31 32 const ( 33 SEALEVEL_PRESSURE float32 = 1013.25 // in hPa 34 )