Skip to content

Commit

Permalink
Built using latest SVD2rust
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbrendel committed Jul 20, 2020
1 parent 7a9f211 commit 487b7c6
Show file tree
Hide file tree
Showing 502 changed files with 13,474 additions and 24,207 deletions.
20 changes: 10 additions & 10 deletions src/can.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct RegisterBlock {
#[doc = "0x1cc - Module Interrupt Trigger Register"]
pub mitr: MITR,
}
#[doc = "CAN Clock Control Register\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 avaliable fields see [clc](clc) module"]
#[doc = "CAN Clock Control Register\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 [clc](clc) module"]
pub type CLC = crate::Reg<u32, _CLC>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -38,7 +38,7 @@ impl crate::Readable for CLC {}
impl crate::Writable for CLC {}
#[doc = "CAN Clock Control Register"]
pub mod clc;
#[doc = "Module Identification Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [id](id) module"]
#[doc = "Module Identification Register\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 [id](id) module"]
pub type ID = crate::Reg<u32, _ID>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -47,7 +47,7 @@ pub struct _ID;
impl crate::Readable for ID {}
#[doc = "Module Identification Register"]
pub mod id;
#[doc = "CAN Fractional Divider Register\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 avaliable fields see [fdr](fdr) module"]
#[doc = "CAN Fractional Divider Register\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 [fdr](fdr) module"]
pub type FDR = crate::Reg<u32, _FDR>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -58,7 +58,7 @@ impl crate::Readable for FDR {}
impl crate::Writable for FDR {}
#[doc = "CAN Fractional Divider Register"]
pub mod fdr;
#[doc = "List Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [list](list) module"]
#[doc = "List Register\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 [list](list) module"]
pub type LIST = crate::Reg<u32, _LIST>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -67,7 +67,7 @@ pub struct _LIST;
impl crate::Readable for LIST {}
#[doc = "List Register"]
pub mod list;
#[doc = "Message Pending Register\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 avaliable fields see [mspnd](mspnd) module"]
#[doc = "Message Pending Register\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 [mspnd](mspnd) module"]
pub type MSPND = crate::Reg<u32, _MSPND>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -78,7 +78,7 @@ impl crate::Readable for MSPND {}
impl crate::Writable for MSPND {}
#[doc = "Message Pending Register"]
pub mod mspnd;
#[doc = "Message Index Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [msid](msid) module"]
#[doc = "Message Index Register\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 [msid](msid) module"]
pub type MSID = crate::Reg<u32, _MSID>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -87,7 +87,7 @@ pub struct _MSID;
impl crate::Readable for MSID {}
#[doc = "Message Index Register"]
pub mod msid;
#[doc = "Message Index Mask Register\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 avaliable fields see [msimask](msimask) module"]
#[doc = "Message Index Mask Register\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 [msimask](msimask) module"]
pub type MSIMASK = crate::Reg<u32, _MSIMASK>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -98,7 +98,7 @@ impl crate::Readable for MSIMASK {}
impl crate::Writable for MSIMASK {}
#[doc = "Message Index Mask Register"]
pub mod msimask;
#[doc = "Panel Control Register\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 avaliable fields see [panctr](panctr) module"]
#[doc = "Panel Control Register\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 [panctr](panctr) module"]
pub type PANCTR = crate::Reg<u32, _PANCTR>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -109,7 +109,7 @@ impl crate::Readable for PANCTR {}
impl crate::Writable for PANCTR {}
#[doc = "Panel Control Register"]
pub mod panctr;
#[doc = "Module Control Register\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 avaliable fields see [mcr](mcr) module"]
#[doc = "Module Control Register\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 [mcr](mcr) module"]
pub type MCR = crate::Reg<u32, _MCR>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand All @@ -120,7 +120,7 @@ impl crate::Readable for MCR {}
impl crate::Writable for MCR {}
#[doc = "Module Control Register"]
pub mod mcr;
#[doc = "Module Interrupt Trigger Register\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 avaliable fields see [mitr](mitr) module"]
#[doc = "Module Interrupt Trigger Register\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 [mitr](mitr) module"]
pub type MITR = crate::Reg<u32, _MITR>;
#[allow(missing_docs)]
#[doc(hidden)]
Expand Down
7 changes: 3 additions & 4 deletions src/can/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ pub type R = crate::R<u32, super::ID>;
pub type MOD_REV_R = crate::R<u8, u8>;
#[doc = "Module Type\n\nValue on reset: 192"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum MOD_TYPE_A {
#[doc = "192: Define the module as a 32-bit module."]
VALUE1,
VALUE1 = 192,
}
impl From<MOD_TYPE_A> for u8 {
#[inline(always)]
fn from(variant: MOD_TYPE_A) -> Self {
match variant {
MOD_TYPE_A::VALUE1 => 192,
}
variant as _
}
}
#[doc = "Reader of field `MOD_TYPE`"]
Expand Down
9 changes: 3 additions & 6 deletions src/can/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ pub type SIZE_R = crate::R<u8, u8>;
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EMPTY_A {
#[doc = "0: At least one message object is allocated to list i."]
VALUE1,
VALUE1 = 0,
#[doc = "1: No message object is allocated to the list x. List x is empty."]
VALUE2,
VALUE2 = 1,
}
impl From<EMPTY_A> for bool {
#[inline(always)]
fn from(variant: EMPTY_A) -> Self {
match variant {
EMPTY_A::VALUE1 => false,
EMPTY_A::VALUE2 => true,
}
variant as u8 != 0
}
}
#[doc = "Reader of field `EMPTY`"]
Expand Down
3 changes: 2 additions & 1 deletion src/can/mspnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
pub type R = crate::R<u32, super::MSPND>;
#[doc = "Writer for register MSPND[%s]"]
pub type W = crate::W<u32, super::MSPND>;
#[doc = "Register MSPND[%s] `reset()`'s with value 0"]
#[doc = "Register MSPND[%s]
`reset()`'s with value 0"]
impl crate::ResetValue for super::MSPND {
type Type = u32;
#[inline(always)]
Expand Down
18 changes: 6 additions & 12 deletions src/can/panctr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@ impl<'a> PANCMD_W<'a> {
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BUSY_A {
#[doc = "0: Panel has finished command and is ready to accept a new command."]
VALUE1,
VALUE1 = 0,
#[doc = "1: Panel operation is in progress."]
VALUE2,
VALUE2 = 1,
}
impl From<BUSY_A> for bool {
#[inline(always)]
fn from(variant: BUSY_A) -> Self {
match variant {
BUSY_A::VALUE1 => false,
BUSY_A::VALUE2 => true,
}
variant as u8 != 0
}
}
#[doc = "Reader of field `BUSY`"]
Expand Down Expand Up @@ -67,17 +64,14 @@ impl BUSY_R {
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RBUSY_A {
#[doc = "0: No update of PANAR1 and PANAR2 is scheduled by the list controller."]
VALUE1,
VALUE1 = 0,
#[doc = "1: A list command is running (BUSY = 1) that will write results to PANAR1 and PANAR2, but the results are not yet available."]
VALUE2,
VALUE2 = 1,
}
impl From<RBUSY_A> for bool {
#[inline(always)]
fn from(variant: RBUSY_A) -> Self {
match variant {
RBUSY_A::VALUE1 => false,
RBUSY_A::VALUE2 => true,
}
variant as u8 != 0
}
}
#[doc = "Reader of field `RBUSY`"]
Expand Down
Loading

0 comments on commit 487b7c6

Please sign in to comment.