Skip to content

Commit

Permalink
feat: updating from newer svd2rust (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: lucasbrendel <1765755+lucasbrendel@users.noreply.github.com>
  • Loading branch information
xmc-action-bot[bot] and lucasbrendel committed Apr 1, 2024
1 parent b5ecfd5 commit 1fd8b67
Show file tree
Hide file tree
Showing 243 changed files with 1,048 additions and 242 deletions.
1 change: 1 addition & 0 deletions src/can/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl From<ModType> for u8 {
impl crate::FieldSpec for ModType {
type Ux = u8;
}
impl crate::IsEnum for ModType {}
#[doc = "Field `MOD_TYPE` reader - Module Type"]
pub type ModTypeR = crate::FieldReader<ModType>;
impl ModTypeR {
Expand Down
3 changes: 2 additions & 1 deletion src/can_mo0/moar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl From<Pri> for u8 {
impl crate::FieldSpec for Pri {
type Ux = u8;
}
impl crate::IsEnum for Pri {}
#[doc = "Field `PRI` reader - Priority Class"]
pub type PriR = crate::FieldReader<Pri>;
impl PriR {
Expand Down Expand Up @@ -117,7 +118,7 @@ impl PriR {
}
}
#[doc = "Field `PRI` writer - Priority Class"]
pub type PriW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Pri>;
pub type PriW<'a, REG> = crate::FieldWriter<'a, REG, 2, Pri, crate::Safe>;
impl<'a, REG> PriW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down
1 change: 1 addition & 0 deletions src/can_mo0/mofcr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl From<Mmc> for u8 {
impl crate::FieldSpec for Mmc {
type Ux = u8;
}
impl crate::IsEnum for Mmc {}
#[doc = "Field `MMC` reader - Message Mode Control"]
pub type MmcR = crate::FieldReader<Mmc>;
impl MmcR {
Expand Down
2 changes: 2 additions & 0 deletions src/can_mo0/moipr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ impl From<Rxinp> for u8 {
impl crate::FieldSpec for Rxinp {
type Ux = u8;
}
impl crate::IsEnum for Rxinp {}
#[doc = "Field `RXINP` reader - Receive Interrupt Node Pointer"]
pub type RxinpR = crate::FieldReader<Rxinp>;
impl RxinpR {
Expand Down Expand Up @@ -94,6 +95,7 @@ impl From<Txinp> for u8 {
impl crate::FieldSpec for Txinp {
type Ux = u8;
}
impl crate::IsEnum for Txinp {}
#[doc = "Field `TXINP` reader - Transmit Interrupt Node Pointer"]
pub type TxinpR = crate::FieldReader<Txinp>;
impl TxinpR {
Expand Down
2 changes: 2 additions & 0 deletions src/can_node0/nfcr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ impl From<Cfsel> for u8 {
impl crate::FieldSpec for Cfsel {
type Ux = u8;
}
impl crate::IsEnum for Cfsel {}
#[doc = "Field `CFSEL` reader - CAN Frame Count Selection"]
pub type CfselR = crate::FieldReader<Cfsel>;
impl CfselR {
Expand Down Expand Up @@ -72,6 +73,7 @@ impl From<Cfmod> for u8 {
impl crate::FieldSpec for Cfmod {
type Ux = u8;
}
impl crate::IsEnum for Cfmod {}
#[doc = "Field `CFMOD` reader - CAN Frame Counter Mode"]
pub type CfmodR = crate::FieldReader<Cfmod>;
impl CfmodR {
Expand Down
4 changes: 4 additions & 0 deletions src/can_node0/nipr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ impl From<Alinp> for u8 {
impl crate::FieldSpec for Alinp {
type Ux = u8;
}
impl crate::IsEnum for Alinp {}
#[doc = "Field `ALINP` reader - Alert Interrupt Node Pointer"]
pub type AlinpR = crate::FieldReader<Alinp>;
impl AlinpR {
Expand Down Expand Up @@ -94,6 +95,7 @@ impl From<Lecinp> for u8 {
impl crate::FieldSpec for Lecinp {
type Ux = u8;
}
impl crate::IsEnum for Lecinp {}
#[doc = "Field `LECINP` reader - Last Error Code Interrupt Node Pointer"]
pub type LecinpR = crate::FieldReader<Lecinp>;
impl LecinpR {
Expand Down Expand Up @@ -166,6 +168,7 @@ impl From<Trinp> for u8 {
impl crate::FieldSpec for Trinp {
type Ux = u8;
}
impl crate::IsEnum for Trinp {}
#[doc = "Field `TRINP` reader - Transfer OK Interrupt Node Pointer"]
pub type TrinpR = crate::FieldReader<Trinp>;
impl TrinpR {
Expand Down Expand Up @@ -238,6 +241,7 @@ impl From<Cfcinp> for u8 {
impl crate::FieldSpec for Cfcinp {
type Ux = u8;
}
impl crate::IsEnum for Cfcinp {}
#[doc = "Field `CFCINP` reader - Frame Counter Interrupt Node Pointer"]
pub type CfcinpR = crate::FieldReader<Cfcinp>;
impl CfcinpR {
Expand Down
2 changes: 2 additions & 0 deletions src/ccu40/ecrd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl From<Sptr> for u8 {
impl crate::FieldSpec for Sptr {
type Ux = u8;
}
impl crate::IsEnum for Sptr {}
#[doc = "Field `SPTR` reader - Slice pointer"]
pub type SptrR = crate::FieldReader<Sptr>;
impl SptrR {
Expand Down Expand Up @@ -83,6 +84,7 @@ impl From<Vptr> for u8 {
impl crate::FieldSpec for Vptr {
type Ux = u8;
}
impl crate::IsEnum for Vptr {}
#[doc = "Field `VPTR` reader - Capture register pointer"]
pub type VptrR = crate::FieldReader<Vptr>;
impl VptrR {
Expand Down
8 changes: 6 additions & 2 deletions src/ccu40/gctrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl From<Prbc> for u8 {
impl crate::FieldSpec for Prbc {
type Ux = u8;
}
impl crate::IsEnum for Prbc {}
#[doc = "Field `PRBC` reader - Prescaler Clear Configuration"]
pub type PrbcR = crate::FieldReader<Prbc>;
impl PrbcR {
Expand Down Expand Up @@ -122,6 +123,7 @@ impl From<Pcis> for u8 {
impl crate::FieldSpec for Pcis {
type Ux = u8;
}
impl crate::IsEnum for Pcis {}
#[doc = "Field `PCIS` reader - Prescaler Input Clock Selection"]
pub type PcisR = crate::FieldReader<Pcis>;
impl PcisR {
Expand Down Expand Up @@ -158,7 +160,7 @@ impl PcisR {
}
}
#[doc = "Field `PCIS` writer - Prescaler Input Clock Selection"]
pub type PcisW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Pcis>;
pub type PcisW<'a, REG> = crate::FieldWriter<'a, REG, 2, Pcis, crate::Safe>;
impl<'a, REG> PcisW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -207,6 +209,7 @@ impl From<Suscfg> for u8 {
impl crate::FieldSpec for Suscfg {
type Ux = u8;
}
impl crate::IsEnum for Suscfg {}
#[doc = "Field `SUSCFG` reader - Suspend Mode Configuration"]
pub type SuscfgR = crate::FieldReader<Suscfg>;
impl SuscfgR {
Expand Down Expand Up @@ -243,7 +246,7 @@ impl SuscfgR {
}
}
#[doc = "Field `SUSCFG` writer - Suspend Mode Configuration"]
pub type SuscfgW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Suscfg>;
pub type SuscfgW<'a, REG> = crate::FieldWriter<'a, REG, 2, Suscfg, crate::Safe>;
impl<'a, REG> SuscfgW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -502,6 +505,7 @@ impl From<Msde> for u8 {
impl crate::FieldSpec for Msde {
type Ux = u8;
}
impl crate::IsEnum for Msde {}
#[doc = "Field `MSDE` reader - Multi Channel shadow transfer request configuration"]
pub type MsdeR = crate::FieldReader<Msde>;
impl MsdeR {
Expand Down
21 changes: 14 additions & 7 deletions src/ccu40_cc40/cmc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ impl From<Strts> for u8 {
impl crate::FieldSpec for Strts {
type Ux = u8;
}
impl crate::IsEnum for Strts {}
#[doc = "Field `STRTS` reader - External Start Functionality Selector"]
pub type StrtsR = crate::FieldReader<Strts>;
impl StrtsR {
Expand Down Expand Up @@ -60,7 +61,7 @@ impl StrtsR {
}
}
#[doc = "Field `STRTS` writer - External Start Functionality Selector"]
pub type StrtsW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Strts>;
pub type StrtsW<'a, REG> = crate::FieldWriter<'a, REG, 2, Strts, crate::Safe>;
impl<'a, REG> StrtsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -109,6 +110,7 @@ impl From<Ends> for u8 {
impl crate::FieldSpec for Ends {
type Ux = u8;
}
impl crate::IsEnum for Ends {}
#[doc = "Field `ENDS` reader - External Stop Functionality Selector"]
pub type EndsR = crate::FieldReader<Ends>;
impl EndsR {
Expand Down Expand Up @@ -145,7 +147,7 @@ impl EndsR {
}
}
#[doc = "Field `ENDS` writer - External Stop Functionality Selector"]
pub type EndsW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Ends>;
pub type EndsW<'a, REG> = crate::FieldWriter<'a, REG, 2, Ends, crate::Safe>;
impl<'a, REG> EndsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -194,6 +196,7 @@ impl From<Cap0s> for u8 {
impl crate::FieldSpec for Cap0s {
type Ux = u8;
}
impl crate::IsEnum for Cap0s {}
#[doc = "Field `CAP0S` reader - External Capture 0 Functionality Selector"]
pub type Cap0sR = crate::FieldReader<Cap0s>;
impl Cap0sR {
Expand Down Expand Up @@ -230,7 +233,7 @@ impl Cap0sR {
}
}
#[doc = "Field `CAP0S` writer - External Capture 0 Functionality Selector"]
pub type Cap0sW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Cap0s>;
pub type Cap0sW<'a, REG> = crate::FieldWriter<'a, REG, 2, Cap0s, crate::Safe>;
impl<'a, REG> Cap0sW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -279,6 +282,7 @@ impl From<Cap1s> for u8 {
impl crate::FieldSpec for Cap1s {
type Ux = u8;
}
impl crate::IsEnum for Cap1s {}
#[doc = "Field `CAP1S` reader - External Capture 1 Functionality Selector"]
pub type Cap1sR = crate::FieldReader<Cap1s>;
impl Cap1sR {
Expand Down Expand Up @@ -315,7 +319,7 @@ impl Cap1sR {
}
}
#[doc = "Field `CAP1S` writer - External Capture 1 Functionality Selector"]
pub type Cap1sW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Cap1s>;
pub type Cap1sW<'a, REG> = crate::FieldWriter<'a, REG, 2, Cap1s, crate::Safe>;
impl<'a, REG> Cap1sW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -364,6 +368,7 @@ impl From<Gates> for u8 {
impl crate::FieldSpec for Gates {
type Ux = u8;
}
impl crate::IsEnum for Gates {}
#[doc = "Field `GATES` reader - External Gate Functionality Selector"]
pub type GatesR = crate::FieldReader<Gates>;
impl GatesR {
Expand Down Expand Up @@ -400,7 +405,7 @@ impl GatesR {
}
}
#[doc = "Field `GATES` writer - External Gate Functionality Selector"]
pub type GatesW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Gates>;
pub type GatesW<'a, REG> = crate::FieldWriter<'a, REG, 2, Gates, crate::Safe>;
impl<'a, REG> GatesW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -449,6 +454,7 @@ impl From<Uds> for u8 {
impl crate::FieldSpec for Uds {
type Ux = u8;
}
impl crate::IsEnum for Uds {}
#[doc = "Field `UDS` reader - External Up/Down Functionality Selector"]
pub type UdsR = crate::FieldReader<Uds>;
impl UdsR {
Expand Down Expand Up @@ -485,7 +491,7 @@ impl UdsR {
}
}
#[doc = "Field `UDS` writer - External Up/Down Functionality Selector"]
pub type UdsW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Uds>;
pub type UdsW<'a, REG> = crate::FieldWriter<'a, REG, 2, Uds, crate::Safe>;
impl<'a, REG> UdsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down Expand Up @@ -538,6 +544,7 @@ impl From<Cnts> for u8 {
impl crate::FieldSpec for Cnts {
type Ux = u8;
}
impl crate::IsEnum for Cnts {}
#[doc = "Field `CNTS` reader - External Count Selector"]
pub type CntsR = crate::FieldReader<Cnts>;
impl CntsR {
Expand Down Expand Up @@ -574,7 +581,7 @@ impl CntsR {
}
}
#[doc = "Field `CNTS` writer - External Count Selector"]
pub type CntsW<'a, REG> = crate::FieldWriterSafe<'a, REG, 2, Cnts>;
pub type CntsW<'a, REG> = crate::FieldWriter<'a, REG, 2, Cnts, crate::Safe>;
impl<'a, REG> CntsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
Expand Down

0 comments on commit 1fd8b67

Please sign in to comment.