dps310 0.1.5

A platform agnostic driver to interface with the DPS310 barometric pressure & temp sensor through I2C
Documentation
//! DPS310 register addresses
//!
//! See datasheet <https://www.infineon.com/dgdl/Infineon-DPS310-DataSheet-v01_01-EN.pdf?fileId=5546d462576f34750157750826c42242>

#[allow(non_camel_case_types)]
#[allow(dead_code)]
#[repr(u8)]
pub enum Register {
    PSR_B2 = 0x00,
    PSR_B1 = 0x01,
    PSR_B0 = 0x02,
    TMP_B2 = 0x03,
    TMP_B1 = 0x04,
    TMP_B0 = 0x05,
    PRS_CFG = 0x06,
    TEMP_CFG = 0x07,
    MEAS_CFG = 0x08,
    CFG_REG = 0x09,
    INT_STS = 0x0A,
    FIFO_STS = 0x0B,
    RESET = 0x0C,
    PROD_ID = 0x0D,

    COEFF_REG_1 = 0x10,
    COEFF_REG_2 = 0x11,
    COEFF_REG_3 = 0x12,
    COEFF_REG_4 = 0x13,
    COEFF_REG_5 = 0x14,
    COEFF_REG_6 = 0x15,
    COEFF_REG_7 = 0x16,
    COEFF_REG_8 = 0x17,
    COEFF_REG_9 = 0x18,
    COEFF_REG_10 = 0x19,
    COEFF_REG_11 = 0x20,
    COEFF_REG_12 = 0x21,

    TMP_COEF_SRCE = 0x28,
}

impl Register {
    /// Get register address
    pub fn addr(self) -> u8 {
        self as u8
    }
}