#[repr(C)]
#[derive(Debug)]
///Register block
pub struct RegisterBlock {
    power: POWER,
    clkcr: CLKCR,
    arg: ARG,
    cmd: CMD,
    respcmd: RESPCMD,
    resp: [RESP; 4],
    dtimer: DTIMER,
    dlen: DLEN,
    dctrl: DCTRL,
    dcount: DCOUNT,
    sta: STA,
    icr: ICR,
    mask: MASK,
    _reserved13: [u8; 0x08],
    fifocnt: FIFOCNT,
    _reserved14: [u8; 0x34],
    fifo: FIFO,
}
impl RegisterBlock {
    ///0x00 - Bits 1:0 = PWRCTRL: Power supply control bits
    #[inline(always)]
    pub const fn power(&self) -> &POWER {
        &self.power
    }
    ///0x04 - SDI clock control register (SDIO_CLKCR)
    #[inline(always)]
    pub const fn clkcr(&self) -> &CLKCR {
        &self.clkcr
    }
    ///0x08 - Bits 31:0 = : Command argument
    #[inline(always)]
    pub const fn arg(&self) -> &ARG {
        &self.arg
    }
    ///0x0c - SDIO command register (SDIO_CMD)
    #[inline(always)]
    pub const fn cmd(&self) -> &CMD {
        &self.cmd
    }
    ///0x10 - SDIO command register
    #[inline(always)]
    pub const fn respcmd(&self) -> &RESPCMD {
        &self.respcmd
    }
    ///0x14..0x24 - SDIO response %s register
    ///
    ///<div class="warning">`n` is the index of register in the array. `n == 0` corresponds to `RESP1` register.</div>
    #[inline(always)]
    pub const fn resp(&self, n: usize) -> &RESP {
        &self.resp[n]
    }
    ///Iterator for array of:
    ///0x14..0x24 - SDIO response %s register
    #[inline(always)]
    pub fn resp_iter(&self) -> impl Iterator<Item = &RESP> {
        self.resp.iter()
    }
    ///0x14 - SDIO response 1 register
    #[inline(always)]
    pub const fn resp1(&self) -> &RESP {
        self.resp(0)
    }
    ///0x18 - SDIO response 2 register
    #[inline(always)]
    pub const fn resp2(&self) -> &RESP {
        self.resp(1)
    }
    ///0x1c - SDIO response 3 register
    #[inline(always)]
    pub const fn resp3(&self) -> &RESP {
        self.resp(2)
    }
    ///0x20 - SDIO response 4 register
    #[inline(always)]
    pub const fn resp4(&self) -> &RESP {
        self.resp(3)
    }
    ///0x24 - Bits 31:0 = DATATIME: Data timeout period
    #[inline(always)]
    pub const fn dtimer(&self) -> &DTIMER {
        &self.dtimer
    }
    ///0x28 - Bits 24:0 = DATALENGTH: Data length value
    #[inline(always)]
    pub const fn dlen(&self) -> &DLEN {
        &self.dlen
    }
    ///0x2c - SDIO data control register (SDIO_DCTRL)
    #[inline(always)]
    pub const fn dctrl(&self) -> &DCTRL {
        &self.dctrl
    }
    ///0x30 - Bits 24:0 = DATACOUNT: Data count value
    #[inline(always)]
    pub const fn dcount(&self) -> &DCOUNT {
        &self.dcount
    }
    ///0x34 - SDIO status register (SDIO_STA)
    #[inline(always)]
    pub const fn sta(&self) -> &STA {
        &self.sta
    }
    ///0x38 - SDIO interrupt clear register (SDIO_ICR)
    #[inline(always)]
    pub const fn icr(&self) -> &ICR {
        &self.icr
    }
    ///0x3c - SDIO mask register (SDIO_MASK)
    #[inline(always)]
    pub const fn mask(&self) -> &MASK {
        &self.mask
    }
    ///0x48 - Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO
    #[inline(always)]
    pub const fn fifocnt(&self) -> &FIFOCNT {
        &self.fifocnt
    }
    ///0x80 - bits 31:0 = FIFOData: Receive and transmit FIFO data
    #[inline(always)]
    pub const fn fifo(&self) -> &FIFO {
        &self.fifo
    }
}
/**POWER (rw) register accessor: Bits 1:0 = PWRCTRL: Power supply control bits

You can [`read`](crate::Reg::read) this register and get [`power::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`power::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:POWER)

For information about available fields see [`mod@power`]
module*/
pub type POWER = crate::Reg<power::POWERrs>;
///Bits 1:0 = PWRCTRL: Power supply control bits
pub mod power;
/**CLKCR (rw) register accessor: SDI clock control register (SDIO_CLKCR)

You can [`read`](crate::Reg::read) this register and get [`clkcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clkcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:CLKCR)

For information about available fields see [`mod@clkcr`]
module*/
pub type CLKCR = crate::Reg<clkcr::CLKCRrs>;
///SDI clock control register (SDIO_CLKCR)
pub mod clkcr;
/**ARG (rw) register accessor: Bits 31:0 = : Command argument

You can [`read`](crate::Reg::read) this register and get [`arg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`arg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:ARG)

For information about available fields see [`mod@arg`]
module*/
pub type ARG = crate::Reg<arg::ARGrs>;
///Bits 31:0 = : Command argument
pub mod arg;
/**CMD (rw) register accessor: SDIO command register (SDIO_CMD)

You can [`read`](crate::Reg::read) this register and get [`cmd::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:CMD)

For information about available fields see [`mod@cmd`]
module*/
pub type CMD = crate::Reg<cmd::CMDrs>;
///SDIO command register (SDIO_CMD)
pub mod cmd;
/**RESPCMD (r) register accessor: SDIO command register

You can [`read`](crate::Reg::read) this register and get [`respcmd::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:RESPCMD)

For information about available fields see [`mod@respcmd`]
module*/
pub type RESPCMD = crate::Reg<respcmd::RESPCMDrs>;
///SDIO command register
pub mod respcmd;
/**RESP (r) register accessor: SDIO response %s register

You can [`read`](crate::Reg::read) this register and get [`resp::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:RESP[1])

For information about available fields see [`mod@resp`]
module*/
pub type RESP = crate::Reg<resp::RESPrs>;
///SDIO response %s register
pub mod resp;
/**DTIMER (rw) register accessor: Bits 31:0 = DATATIME: Data timeout period

You can [`read`](crate::Reg::read) this register and get [`dtimer::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dtimer::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:DTIMER)

For information about available fields see [`mod@dtimer`]
module*/
pub type DTIMER = crate::Reg<dtimer::DTIMERrs>;
///Bits 31:0 = DATATIME: Data timeout period
pub mod dtimer;
/**DLEN (rw) register accessor: Bits 24:0 = DATALENGTH: Data length value

You can [`read`](crate::Reg::read) this register and get [`dlen::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dlen::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:DLEN)

For information about available fields see [`mod@dlen`]
module*/
pub type DLEN = crate::Reg<dlen::DLENrs>;
///Bits 24:0 = DATALENGTH: Data length value
pub mod dlen;
/**DCTRL (rw) register accessor: SDIO data control register (SDIO_DCTRL)

You can [`read`](crate::Reg::read) this register and get [`dctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:DCTRL)

For information about available fields see [`mod@dctrl`]
module*/
pub type DCTRL = crate::Reg<dctrl::DCTRLrs>;
///SDIO data control register (SDIO_DCTRL)
pub mod dctrl;
/**DCOUNT (r) register accessor: Bits 24:0 = DATACOUNT: Data count value

You can [`read`](crate::Reg::read) this register and get [`dcount::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:DCOUNT)

For information about available fields see [`mod@dcount`]
module*/
pub type DCOUNT = crate::Reg<dcount::DCOUNTrs>;
///Bits 24:0 = DATACOUNT: Data count value
pub mod dcount;
/**STA (r) register accessor: SDIO status register (SDIO_STA)

You can [`read`](crate::Reg::read) this register and get [`sta::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:STA)

For information about available fields see [`mod@sta`]
module*/
pub type STA = crate::Reg<sta::STArs>;
///SDIO status register (SDIO_STA)
pub mod sta;
/**ICR (rw) register accessor: SDIO interrupt clear register (SDIO_ICR)

You can [`read`](crate::Reg::read) this register and get [`icr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:ICR)

For information about available fields see [`mod@icr`]
module*/
pub type ICR = crate::Reg<icr::ICRrs>;
///SDIO interrupt clear register (SDIO_ICR)
pub mod icr;
/**MASK (rw) register accessor: SDIO mask register (SDIO_MASK)

You can [`read`](crate::Reg::read) this register and get [`mask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mask::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:MASK)

For information about available fields see [`mod@mask`]
module*/
pub type MASK = crate::Reg<mask::MASKrs>;
///SDIO mask register (SDIO_MASK)
pub mod mask;
/**FIFOCNT (r) register accessor: Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO

You can [`read`](crate::Reg::read) this register and get [`fifocnt::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:FIFOCNT)

For information about available fields see [`mod@fifocnt`]
module*/
pub type FIFOCNT = crate::Reg<fifocnt::FIFOCNTrs>;
///Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO
pub mod fifocnt;
/**FIFO (rw) register accessor: bits 31:0 = FIFOData: Receive and transmit FIFO data

You can [`read`](crate::Reg::read) this register and get [`fifo::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fifo::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:FIFO)

For information about available fields see [`mod@fifo`]
module*/
pub type FIFO = crate::Reg<fifo::FIFOrs>;
///bits 31:0 = FIFOData: Receive and transmit FIFO data
pub mod fifo;
