use crate::svd::register::create_cluster;
use crate::Result;
pub mod axi_id;
pub mod axi_qos;
pub mod blk_tr_resume_req;
pub mod block_ts;
pub mod cfg;
pub mod cfg2;
pub mod ctl;
pub mod dar;
pub mod int;
pub mod llp;
pub mod reserved;
pub mod sar;
pub mod stat;
pub mod statar;
pub mod status;
pub mod swhs;
pub fn create() -> Result<svd::RegisterCluster> {
Ok(svd::RegisterCluster::Cluster(create_cluster(
"ch",
"DesignWare DMAC Channel registers",
0x100,
&[
sar::create()?,
dar::create()?,
block_ts::create()?,
ctl::create()?,
cfg::create()?,
cfg2::create()?,
llp::create()?,
status::create()?,
swhs::create()?,
blk_tr_resume_req::create()?,
axi_id::create()?,
axi_qos::create()?,
stat::create()?,
statar::create()?,
int::create()?,
reserved::create()?,
],
Some(
svd::DimElement::builder()
.dim(32)
.dim_increment(0x100)
.dim_index(Some(
[
String::from("1"),
String::from("2"),
String::from("3"),
String::from("4"),
String::from("5"),
String::from("6"),
String::from("7"),
String::from("8"),
String::from("9"),
String::from("10"),
String::from("11"),
String::from("12"),
String::from("13"),
String::from("14"),
String::from("15"),
String::from("16"),
String::from("17"),
String::from("18"),
String::from("19"),
String::from("20"),
String::from("21"),
String::from("22"),
String::from("23"),
String::from("24"),
String::from("25"),
String::from("26"),
String::from("27"),
String::from("28"),
String::from("29"),
String::from("30"),
String::from("31"),
String::from("32"),
]
.into(),
))
.build(svd::ValidateLevel::Strict)?,
),
)?))
}