1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Control"] pub ctrla: CTRLA, _reserved1: [u8; 3usize], #[doc = "0x04 - Software Event"] pub swevt: SWEVT, #[doc = "0x08 - Priority Control"] pub prictrl: PRICTRL, _reserved3: [u8; 7usize], #[doc = "0x10 - Channel Pending Interrupt"] pub intpend: INTPEND, _reserved4: [u8; 2usize], #[doc = "0x14 - Interrupt Status"] pub intstatus: INTSTATUS, #[doc = "0x18 - Busy Channels"] pub busych: BUSYCH, #[doc = "0x1c - Ready Users"] pub readyusr: READYUSR, #[doc = "0x20 - CHANNEL\\[%s\\]"] pub channel: [CHANNEL; 32], #[doc = "0x120 - User Multiplexer n"] pub user: [USER; 67], } #[doc = r"Register block"] #[repr(C)] pub struct CHANNEL { #[doc = "0x00 - Channel n Control"] pub channel: self::channel::CHANNEL, #[doc = "0x04 - Channel n Interrupt Enable Clear"] pub chintenclr: self::channel::CHINTENCLR, #[doc = "0x05 - Channel n Interrupt Enable Set"] pub chintenset: self::channel::CHINTENSET, #[doc = "0x06 - Channel n Interrupt Flag Status and Clear"] pub chintflag: self::channel::CHINTFLAG, #[doc = "0x07 - Channel n Status"] pub chstatus: self::channel::CHSTATUS, } #[doc = r"Register block"] #[doc = "CHANNEL\\[%s\\]"] pub mod channel; #[doc = "Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctrla](ctrla) module"] pub type CTRLA = crate::Reg<u8, _CTRLA>; #[allow(missing_docs)] #[doc(hidden)] pub struct _CTRLA; #[doc = "`read()` method returns [ctrla::R](ctrla::R) reader structure"] impl crate::Readable for CTRLA {} #[doc = "`write(|w| ..)` method takes [ctrla::W](ctrla::W) writer structure"] impl crate::Writable for CTRLA {} #[doc = "Control"] pub mod ctrla; #[doc = "Software Event\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [swevt](swevt) module"] pub type SWEVT = crate::Reg<u32, _SWEVT>; #[allow(missing_docs)] #[doc(hidden)] pub struct _SWEVT; #[doc = "`write(|w| ..)` method takes [swevt::W](swevt::W) writer structure"] impl crate::Writable for SWEVT {} #[doc = "Software Event"] pub mod swevt; #[doc = "Priority Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [prictrl](prictrl) module"] pub type PRICTRL = crate::Reg<u8, _PRICTRL>; #[allow(missing_docs)] #[doc(hidden)] pub struct _PRICTRL; #[doc = "`read()` method returns [prictrl::R](prictrl::R) reader structure"] impl crate::Readable for PRICTRL {} #[doc = "`write(|w| ..)` method takes [prictrl::W](prictrl::W) writer structure"] impl crate::Writable for PRICTRL {} #[doc = "Priority Control"] pub mod prictrl; #[doc = "Channel Pending Interrupt\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intpend](intpend) module"] pub type INTPEND = crate::Reg<u16, _INTPEND>; #[allow(missing_docs)] #[doc(hidden)] pub struct _INTPEND; #[doc = "`read()` method returns [intpend::R](intpend::R) reader structure"] impl crate::Readable for INTPEND {} #[doc = "`write(|w| ..)` method takes [intpend::W](intpend::W) writer structure"] impl crate::Writable for INTPEND {} #[doc = "Channel Pending Interrupt"] pub mod intpend; #[doc = "Interrupt Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intstatus](intstatus) module"] pub type INTSTATUS = crate::Reg<u32, _INTSTATUS>; #[allow(missing_docs)] #[doc(hidden)] pub struct _INTSTATUS; #[doc = "`read()` method returns [intstatus::R](intstatus::R) reader structure"] impl crate::Readable for INTSTATUS {} #[doc = "Interrupt Status"] pub mod intstatus; #[doc = "Busy Channels\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [busych](busych) module"] pub type BUSYCH = crate::Reg<u32, _BUSYCH>; #[allow(missing_docs)] #[doc(hidden)] pub struct _BUSYCH; #[doc = "`read()` method returns [busych::R](busych::R) reader structure"] impl crate::Readable for BUSYCH {} #[doc = "Busy Channels"] pub mod busych; #[doc = "Ready Users\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [readyusr](readyusr) module"] pub type READYUSR = crate::Reg<u32, _READYUSR>; #[allow(missing_docs)] #[doc(hidden)] pub struct _READYUSR; #[doc = "`read()` method returns [readyusr::R](readyusr::R) reader structure"] impl crate::Readable for READYUSR {} #[doc = "Ready Users"] pub mod readyusr; #[doc = "User Multiplexer n\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [user](user) module"] pub type USER = crate::Reg<u32, _USER>; #[allow(missing_docs)] #[doc(hidden)] pub struct _USER; #[doc = "`read()` method returns [user::R](user::R) reader structure"] impl crate::Readable for USER {} #[doc = "`write(|w| ..)` method takes [user::W](user::W) writer structure"] impl crate::Writable for USER {} #[doc = "User Multiplexer n"] pub mod user;