#[doc = "Register `BC` writer"]
pub type W = crate::W<BcSpec>;
#[doc = "Port cleat bit 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Cr0w {
#[doc = "1: Resets the corresponding OCTLx bit"]
Reset = 1,
}
impl From<Cr0w> for bool {
#[inline(always)]
fn from(variant: Cr0w) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CR0` writer - Port cleat bit 0"]
pub type Cr0W<'a, REG> = crate::BitWriter<'a, REG, Cr0w>;
impl<'a, REG> Cr0W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "Resets the corresponding OCTLx bit"]
#[inline(always)]
pub fn reset(self) -> &'a mut crate::W<REG> {
self.variant(Cr0w::Reset)
}
}
#[doc = "Field `CR1` writer - Port cleat bit 1"]
pub use Cr0W as Cr1W;
#[doc = "Field `CR2` writer - Port cleat bit 2"]
pub use Cr0W as Cr2W;
#[doc = "Field `CR3` writer - Port cleat bit 3"]
pub use Cr0W as Cr3W;
#[doc = "Field `CR4` writer - Port cleat bit 4"]
pub use Cr0W as Cr4W;
#[doc = "Field `CR5` writer - Port cleat bit 5"]
pub use Cr0W as Cr5W;
#[doc = "Field `CR6` writer - Port cleat bit 6"]
pub use Cr0W as Cr6W;
#[doc = "Field `CR7` writer - Port cleat bit 7"]
pub use Cr0W as Cr7W;
#[doc = "Field `CR8` writer - Port cleat bit 8"]
pub use Cr0W as Cr8W;
#[doc = "Field `CR9` writer - Port cleat bit 9"]
pub use Cr0W as Cr9W;
#[doc = "Field `CR10` writer - Port cleat bit 10"]
pub use Cr0W as Cr10W;
#[doc = "Field `CR11` writer - Port cleat bit 11"]
pub use Cr0W as Cr11W;
#[doc = "Field `CR12` writer - Port cleat bit 12"]
pub use Cr0W as Cr12W;
#[doc = "Field `CR13` writer - Port cleat bit 13"]
pub use Cr0W as Cr13W;
#[doc = "Field `CR14` writer - Port cleat bit 14"]
pub use Cr0W as Cr14W;
#[doc = "Field `CR15` writer - Port cleat bit 15"]
pub use Cr0W as Cr15W;
impl W {
#[doc = "Bit 0 - Port cleat bit 0"]
#[inline(always)]
#[must_use]
pub fn cr0(&mut self) -> Cr0W<BcSpec> {
Cr0W::new(self, 0)
}
#[doc = "Bit 1 - Port cleat bit 1"]
#[inline(always)]
#[must_use]
pub fn cr1(&mut self) -> Cr1W<BcSpec> {
Cr1W::new(self, 1)
}
#[doc = "Bit 2 - Port cleat bit 2"]
#[inline(always)]
#[must_use]
pub fn cr2(&mut self) -> Cr2W<BcSpec> {
Cr2W::new(self, 2)
}
#[doc = "Bit 3 - Port cleat bit 3"]
#[inline(always)]
#[must_use]
pub fn cr3(&mut self) -> Cr3W<BcSpec> {
Cr3W::new(self, 3)
}
#[doc = "Bit 4 - Port cleat bit 4"]
#[inline(always)]
#[must_use]
pub fn cr4(&mut self) -> Cr4W<BcSpec> {
Cr4W::new(self, 4)
}
#[doc = "Bit 5 - Port cleat bit 5"]
#[inline(always)]
#[must_use]
pub fn cr5(&mut self) -> Cr5W<BcSpec> {
Cr5W::new(self, 5)
}
#[doc = "Bit 6 - Port cleat bit 6"]
#[inline(always)]
#[must_use]
pub fn cr6(&mut self) -> Cr6W<BcSpec> {
Cr6W::new(self, 6)
}
#[doc = "Bit 7 - Port cleat bit 7"]
#[inline(always)]
#[must_use]
pub fn cr7(&mut self) -> Cr7W<BcSpec> {
Cr7W::new(self, 7)
}
#[doc = "Bit 8 - Port cleat bit 8"]
#[inline(always)]
#[must_use]
pub fn cr8(&mut self) -> Cr8W<BcSpec> {
Cr8W::new(self, 8)
}
#[doc = "Bit 9 - Port cleat bit 9"]
#[inline(always)]
#[must_use]
pub fn cr9(&mut self) -> Cr9W<BcSpec> {
Cr9W::new(self, 9)
}
#[doc = "Bit 10 - Port cleat bit 10"]
#[inline(always)]
#[must_use]
pub fn cr10(&mut self) -> Cr10W<BcSpec> {
Cr10W::new(self, 10)
}
#[doc = "Bit 11 - Port cleat bit 11"]
#[inline(always)]
#[must_use]
pub fn cr11(&mut self) -> Cr11W<BcSpec> {
Cr11W::new(self, 11)
}
#[doc = "Bit 12 - Port cleat bit 12"]
#[inline(always)]
#[must_use]
pub fn cr12(&mut self) -> Cr12W<BcSpec> {
Cr12W::new(self, 12)
}
#[doc = "Bit 13 - Port cleat bit 13"]
#[inline(always)]
#[must_use]
pub fn cr13(&mut self) -> Cr13W<BcSpec> {
Cr13W::new(self, 13)
}
#[doc = "Bit 14 - Port cleat bit 14"]
#[inline(always)]
#[must_use]
pub fn cr14(&mut self) -> Cr14W<BcSpec> {
Cr14W::new(self, 14)
}
#[doc = "Bit 15 - Port cleat bit 15"]
#[inline(always)]
#[must_use]
pub fn cr15(&mut self) -> Cr15W<BcSpec> {
Cr15W::new(self, 15)
}
}
#[doc = "Port bit reset register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`bc::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BcSpec;
impl crate::RegisterSpec for BcSpec {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`bc::W`](W) writer structure"]
impl crate::Writable for BcSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets BC to value 0"]
impl crate::Resettable for BcSpec {
const RESET_VALUE: u32 = 0;
}