efm32gg11b/gpio/
pl_ovtdis.rs1#[doc = "Reader of register PL_OVTDIS"]
2pub type R = crate::R<u32, super::PL_OVTDIS>;
3#[doc = "Writer for register PL_OVTDIS"]
4pub type W = crate::W<u32, super::PL_OVTDIS>;
5#[doc = "Register PL_OVTDIS `reset()`'s with value 0"]
6impl crate::ResetValue for super::PL_OVTDIS {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type { 0 }
10}
11#[doc = "Reader of field `OVTDIS`"]
12pub type OVTDIS_R = crate::R<u16, u16>;
13#[doc = "Write proxy for field `OVTDIS`"]
14pub struct OVTDIS_W<'a> {
15 w: &'a mut W,
16}
17impl<'a> OVTDIS_W<'a> {
18 #[doc = r"Writes raw bits to the field"]
19 #[inline(always)]
20 pub unsafe fn bits(self, value: u16) -> &'a mut W {
21 self.w.bits = (self.w.bits & !0xffff) | ((value as u32) & 0xffff);
22 self.w
23 }
24}
25impl R {
26 #[doc = "Bits 0:15 - Disable Over Voltage Capability"]
27 #[inline(always)]
28 pub fn ovtdis(&self) -> OVTDIS_R { OVTDIS_R::new((self.bits & 0xffff) as u16) }
29}
30impl W {
31 #[doc = "Bits 0:15 - Disable Over Voltage Capability"]
32 #[inline(always)]
33 pub fn ovtdis(&mut self) -> OVTDIS_W { OVTDIS_W { w: self } }
34}