You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: i2c.rs
    path of file: ./repos/tock/chips/msp432/src
    
    the code of the file until where you have to start completion: // Licensed under the Apache License, Version 2.0 or the M
    
    fn setup(&self) {
        self.set_module_to_reset();

        // Use 7 bit addresses
        // Setup to master mode
        // Setup to single master environment
        // Configure USCI module to I2C mode
        // Enable Synchronous mode
        // Set clock source to SMCLK (1.5MHz)
        self.registers.ctlw0.modify(
            usci::UCBxCTLW0::UCSLA10::AddressSlaveWith7BitAddress
                + usci::UCBxCTLW0::UCMST::MasterMode
                + usci::UCBxCTLW0::UCMM::SingleMasterEnvironment
                + usci::UCBxCTLW0::UCMODE::I2CMode
                + usci::UCBxCTLW0::UCSYNC::SynchronousMode
                + usci::UCBxCTLW0::UCSSEL::SMCLK,
        );

        // Disable clock low timeout
        // Send a NACK before a stop condition
        // Generate the ACK bit by hardware
        // Set glitch filtering to 50ns (according to I2C standard)
        self.registers.ctlw1.modify(
            usci::UCBxCTLW1::UCCLTO::CLEAR
                + usci::UCBxCTLW1::UCSTPNACK::NackBeforeStop
                + usci::UCBxCTLW1::UCSWACK::HardwareTriggered
                + usci::UCBxCTLW1::UCGLIT::_50ns,
        );

        // Don't clear the module reset here since we set the state to Disabled
        self.mode.set(OperatingMode::Disabled);
    }