atsamd51p/icm/
uihval.rs
1#[doc = "Register `UIHVAL[%s]` writer"]
2pub type W = crate::W<UihvalSpec>;
3#[doc = "Field `VAL` writer - Initial Hash Value"]
4pub type ValW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
5impl W {
6 #[doc = "Bits 0:31 - Initial Hash Value"]
7 #[inline(always)]
8 #[must_use]
9 pub fn val(&mut self) -> ValW<UihvalSpec> {
10 ValW::new(self, 0)
11 }
12}
13#[doc = "User Initial Hash Value n\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`uihval::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct UihvalSpec;
15impl crate::RegisterSpec for UihvalSpec {
16 type Ux = u32;
17}
18#[doc = "`write(|w| ..)` method takes [`uihval::W`](W) writer structure"]
19impl crate::Writable for UihvalSpec {
20 type Safety = crate::Unsafe;
21 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
22 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
23}
24#[doc = "`reset()` method sets UIHVAL[%s]
25to value 0"]
26impl crate::Resettable for UihvalSpec {
27 const RESET_VALUE: u32 = 0;
28}