pub fn split(self) -> Sets {
        let analog = Analog {
        //     a0: self.a0,
        //     a1: self.a1,
        //     a2: self.a2,
        //     a3: self.a3,
        //     a4: self.a4,
        //     a5: self.a5,
        //     a6: self.a6,
        //     a7: self.a7,
        //     a8: self.a8,
        //     a9: self.a9,
        //     a10: self.a10,
        //     a11: self.a11,
        //     a12: self.a12,
        //     a13: self.a13,
        //     a14: self.a14,
        //     a15: self.a15,
        };

        let flash = QSPIFlash {
            sck: self.flash_sck,
            cs: self.flash_cs,
            data0: self.flash_io0,
            data1: self.flash_io1,
            data2: self.flash_io2,
            data3: self.flash_io3,
        };

        let spi = SPI {
            sck: self.sck,
            mosi: self.mosi,
            miso: self.miso,
        };

        let sdcard = SdCard {
            d0: self.sd_d0,
            d1: self.sd_d1,
            d2: self.sd_d2,
            d3: self.sd_d3,
            clk: self.sd_clk_i2s_sdo,
            cmd: self.sd_cmd_i2s_fs0,
            cd: self.sd_cd,
            wp: self.sd_wp,
        };

        let i2c = I2C {
            sda: self.sda,
            scl: self.scl,
        };

        let usb = USB {
            dm: self.usb_dm,
            dp: self.usb_dp,
        };

        let uart = UART_ {
            rx: self.rx,
            tx: self.tx,
        };

        Sets {
            port: self.port,
            analog,
            spi,
            usb,
            flash,
            sdcard,
            i2c,
            uart,
            led: self.led,
            sw0: self.sw0,
        }
    }
/// Split the device pins into subsets
Split the device pins into subsets
Split the device pins into subsets
pub fn split(self) -> Sets {
        let analog = Analog {
        //     a0: self.a0,
        //     a1: self.a1,
        //     a2: self.a2,
        //     a3: self.a3,
        //     a4: self.a4,
        //     a5: self.a5,
        //     a6: self.a6,
        //     a7: self.a7,
        //     a8: self.a8,
        //     a9: self.a9,
        //     a10: self.a10,
        //     a11: self.a11,
        //     a12: self.a12,
        //     a13: self.a13,
        //     a14: self.a14,
        //     a15: self.a15,
        };
        let flash = QSPIFlash {
            sck: self.flash_sck,
            cs: self.flash_cs,
            data0: self.flash_io0,
            data1: self.flash_io1,
            data2: self.flash_io2,
            data3: self.flash_io3,
        };
        let spi = SPI {
            sck: self.sck,
            mosi: self.mosi,
            miso: self.miso,
        };
        let sdcard = SdCard {
            d0: self.sd_d0,
            d1: self.sd_d1,
            d2: self.sd_d2,
            d3: self.sd_d3,
            clk: self.sd_clk_i2s_sdo,
            cmd: self.sd_cmd_i2s_fs0,
            cd: self.sd_cd,
            wp: self.sd_wp,
        };
        let i2c = I2C {
            sda: self.sda,
            scl: self.scl,
        };
        let usb = USB {
            dm: self.usb_dm,
            dp: self.usb_dp,
        };
        let uart = UART_ {
            rx: self.rx,
            tx: self.tx,
        };
        Sets {
            port: self.port,
            analog,
            spi,
            usb,
            flash,
            sdcard,
            i2c,
            uart,
            led: self.led,
            sw0: self.sw0,
        }
    }
pub fn split ( self ) -> Sets { let analog = Analog { //     a0: self.a0, //     a1: self.a1, //     a2: self.a2, //     a3: self.a3, //     a4: self.a4, //     a5: self.a5, //     a6: self.a6, //     a7: self.a7, //     a8: self.a8, //     a9: self.a9, //     a10: self.a10, //     a11: self.a11, //     a12: self.a12, //     a13: self.a13, //     a14: self.a14, //     a15: self.a15, } ; let flash = QSPIFlash { sck : self . flash_sck , cs : self . flash_cs , data0 : self . flash_io0 , data1 : self . flash_io1 , data2 : self . flash_io2 , data3 : self . flash_io3 , } ; let spi = SPI { sck : self . sck , mosi : self . mosi , miso : self . miso , } ; let sdcard = SdCard { d0 : self . sd_d0 , d1 : self . sd_d1 , d2 : self . sd_d2 , d3 : self . sd_d3 , clk : self . sd_clk_i2s_sdo , cmd : self . sd_cmd_i2s_fs0 , cd : self . sd_cd , wp : self . sd_wp , } ; let i2c = I2C { sda : self . sda , scl : self . scl , } ; let usb = USB { dm : self . usb_dm , dp : self . usb_dp , } ; let uart = UART_ { rx : self . rx , tx : self . tx , } ; Sets { port : self . port , analog , spi , usb , flash , sdcard , i2c , uart , led : self . led , sw0 : self . sw0 , } }
Split the device pins into subsets
Split the device pins into subsets
self
self