pub const DEFAULT_ADDRESS: u8 = 0x61;
pub const I2C_WRITE_FLAG: u8 = 0x00;
pub const I2C_READ_FLAG: u8 = 0x01;
pub const CRC_POLY: u8 = 0x31;
pub const CRC_INIT: u8 = 0xff;
pub const CRC_XOR: u8 = 0x00;
#[derive(PartialEq, Clone, Debug)]
pub enum Command {
StartContinuousMode = 0x0010,
StopContinuousMode = 0x0104,
SetMeasurementInterval = 0x4600,
GetDataReady = 0x0202,
ReadMeasurement = 0x0300,
SetAfc = 0x5306,
SetFrc = 0x5204,
SetTempOffset = 0x5403,
SetAltComp = 0x5102,
SoftReset = 0xd304,
GetFirmwareVersion = 0xD100,
}