svd-generator 0.4.3

Converts device information from flattened device tree into an SVD description
Documentation
use crate::svd::register::{
    create_bit_range, create_field, create_register, create_register_properties,
};
use crate::Result;

/// Creates ARM PL080 DMA Controller Enabled Channels register.
pub fn create() -> Result<svd::RegisterCluster> {
    Ok(svd::RegisterCluster::Register(create_register(
        "enbld_chns",
        "DMA Enabled Channels register - indicates the DMA channels that are enabled, as indicated by the Enable bit in the DMACCxConfiguration Register. A HIGH bit indicates that a DMA channel is enabled. A bit is cleared on completion of the DMA transfer.",
        0x1c,
        create_register_properties(32, 0)?,
        Some(&[
            create_field(
                "enabled_channels",
                "Channel enable status.",
                create_bit_range("[7:0]")?,
                svd::Access::ReadOnly,
                None,
            )?,
        ]),
        None,
    )?))
}