Monorepo for Rust support of VA416XX family of radiation hardened MCUs
This commit is contained in:
19
va416xx/src/porta/datainbyte.rs
Normal file
19
va416xx/src/porta/datainbyte.rs
Normal file
@ -0,0 +1,19 @@
|
||||
#[doc = "Register `DATAINBYTE[%s]` reader"]
|
||||
pub type R = crate::R<DatainbyteSpec>;
|
||||
impl core::fmt::Debug for R {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
||||
write!(f, "{}", self.bits())
|
||||
}
|
||||
}
|
||||
#[doc = "Data In Register by Byte\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`datainbyte::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
||||
pub struct DatainbyteSpec;
|
||||
impl crate::RegisterSpec for DatainbyteSpec {
|
||||
type Ux = u8;
|
||||
}
|
||||
#[doc = "`read()` method returns [`datainbyte::R`](R) reader structure"]
|
||||
impl crate::Readable for DatainbyteSpec {}
|
||||
#[doc = "`reset()` method sets DATAINBYTE[%s]
|
||||
to value 0"]
|
||||
impl crate::Resettable for DatainbyteSpec {
|
||||
const RESET_VALUE: u8 = 0;
|
||||
}
|
Reference in New Issue
Block a user