Documentation ¶
Index ¶
- Constants
- func ReadCoeff(d string, a int) error
- func ReadPressurePa(d string, a int, accuracy string) (uint32, error)
- func ReadUncompPressure(d string, a int, accuracy string) (int32, error)
- func ReadUncompTemprature(d string, a int, accuracy string) (int32, error)
- func VerifiySensorID(d string, a int) bool
- type BMP280COEFF
Constants ¶
View Source
const ( // BMP280 general registers BMP280_ID_REG = 0xD0 BMP280_STATUS_REG = 0xF3 BMP280_CNTR_MEAS_REG = 0xF4 BMP280_CONFIG = 0xF5 BMP280_RESET = 0xE0 // BMP280 specific compensation register's block BMP280_COEF_START = 0x88 BMP280_COEF_BYTES = 12 * 2 // BMP280 specific 3-byte reading out temprature and preassure BMP280_PRES_3BYTES = 0xF7 BMP280_TEMP_3BYTES = 0xFA )
BMP280 sensors memory map
Variables ¶
This section is empty.
Functions ¶
func ReadPressurePa ¶
Read Pressure Multple by 10 in unit Pa .
func ReadUncompPressure ¶
Read Pressure from ADC.
func ReadUncompTemprature ¶
Read Temprature from ADC.
Types ¶
Click to show internal directories.
Click to hide internal directories.