pub fn new_kxcj9_1008(i2c: I2C, address: SlaveAddr) -> Self {
        Kxcj9 {
            i2c,
            address: address.addr(DEVICE_BASE_ADDRESS),
            ctrl1: Config::default(),
            ctrl2: Config::default(),
            int_ctrl1: Config {
                bits: INT_CTRL1_DEFAULT,
            },
            data_ctrl: DATA_CTRL_DEFAULT,
            was_reset_started: false,
            _ic: PhantomData,
        }
    }
/// Create new instance of the KXCJ9-1008 device.
Create new instance of the KXCJ9-1008 device.
Create new instance of the KXCJ9 - 1008 device .
pub fn new_kxcj9_1008(i2c: I2C, address: SlaveAddr) -> Self {
        Kxcj9 {
            i2c,
            address: address.addr(DEVICE_BASE_ADDRESS),
            ctrl1: Config::default(),
            ctrl2: Config::default(),
            int_ctrl1: Config {
                bits: INT_CTRL1_DEFAULT,
            },
            data_ctrl: DATA_CTRL_DEFAULT,
            was_reset_started: false,
            _ic: PhantomData,
        }
    }
pub fn new_kxcj9_1008 ( i2c : I2C , address : SlaveAddr ) -> Self { Kxcj9 { i2c , address : address . addr ( DEVICE_BASE_ADDRESS ) , ctrl1 : Config :: default ( ) , ctrl2 : Config :: default ( ) , int_ctrl1 : Config { bits : INT_CTRL1_DEFAULT , } , data_ctrl : DATA_CTRL_DEFAULT , was_reset_started : false , _ic : PhantomData , } }
Create new instance of the KXCJ9-1008 device.
Create new instance of the KXCJ9 - 1008 device .
i2c
I2C
address
SlaveAddr
i2c
I2C
address
SlaveAddr