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: bmp280.rs
    path of file: ./repos/tock/boards/components/src
    
    the code of the file until where you have to start completion: // Licensed under the Apache License, Version 2.0 or the MIT License.
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright Tock Contributors 2022.

//! Component for the BMP280 Temperature and Pressure Sensor.
//!
//! Based off the SHT3x code.
//!
//! I2C Interface
//!
//! Usage
//! -----
//!
//! With the default i2c add
    
    fn finalize(self, s: Self::StaticInput) -> Self::Output {
        let bmp280_i2c = s.0.write(I2CDevice::new(self.i2c_mux, self.i2c_address));
        let bmp280_alarm = s.1.write(VirtualMuxAlarm::new(self.alarm_mux));
        bmp280_alarm.setup();

        let buffer = s.2.write([0; capsules_extra::bmp280::BUFFER_SIZE]);

        let bmp280 = s.3.write(Bmp280::new(bmp280_i2c, buffer, bmp280_alarm));
        bmp280_i2c.set_client(bmp280);
        bmp280_alarm.set_alarm_client(bmp280);

        bmp280
    }