#[doc = "Register `PRCLR0` writer"]
pub type W = crate::W<Prclr0Spec>;
#[doc = "VADC Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Vadcrs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Vadcrs> for bool {
#[inline(always)]
fn from(variant: Vadcrs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `VADCRS` writer - VADC Reset Clear"]
pub type VadcrsW<'a, REG> = crate::BitWriter<'a, REG, Vadcrs>;
impl<'a, REG> VadcrsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Vadcrs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Vadcrs::Value2)
}
}
#[doc = "DSD Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Dsdrs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Dsdrs> for bool {
#[inline(always)]
fn from(variant: Dsdrs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `DSDRS` writer - DSD Reset Clear"]
pub type DsdrsW<'a, REG> = crate::BitWriter<'a, REG, Dsdrs>;
impl<'a, REG> DsdrsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Dsdrs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Dsdrs::Value2)
}
}
#[doc = "CCU40 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ccu40rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Ccu40rs> for bool {
#[inline(always)]
fn from(variant: Ccu40rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CCU40RS` writer - CCU40 Reset Clear"]
pub type Ccu40rsW<'a, REG> = crate::BitWriter<'a, REG, Ccu40rs>;
impl<'a, REG> Ccu40rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Ccu40rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Ccu40rs::Value2)
}
}
#[doc = "CCU41 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ccu41rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Ccu41rs> for bool {
#[inline(always)]
fn from(variant: Ccu41rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CCU41RS` writer - CCU41 Reset Clear"]
pub type Ccu41rsW<'a, REG> = crate::BitWriter<'a, REG, Ccu41rs>;
impl<'a, REG> Ccu41rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Ccu41rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Ccu41rs::Value2)
}
}
#[doc = "CCU42 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ccu42rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Ccu42rs> for bool {
#[inline(always)]
fn from(variant: Ccu42rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CCU42RS` writer - CCU42 Reset Clear"]
pub type Ccu42rsW<'a, REG> = crate::BitWriter<'a, REG, Ccu42rs>;
impl<'a, REG> Ccu42rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Ccu42rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Ccu42rs::Value2)
}
}
#[doc = "CCU80 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ccu80rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Ccu80rs> for bool {
#[inline(always)]
fn from(variant: Ccu80rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CCU80RS` writer - CCU80 Reset Clear"]
pub type Ccu80rsW<'a, REG> = crate::BitWriter<'a, REG, Ccu80rs>;
impl<'a, REG> Ccu80rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Ccu80rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Ccu80rs::Value2)
}
}
#[doc = "CCU81 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Ccu81rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Ccu81rs> for bool {
#[inline(always)]
fn from(variant: Ccu81rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `CCU81RS` writer - CCU81 Reset Clear"]
pub type Ccu81rsW<'a, REG> = crate::BitWriter<'a, REG, Ccu81rs>;
impl<'a, REG> Ccu81rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Ccu81rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Ccu81rs::Value2)
}
}
#[doc = "POSIF0 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Posif0rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Posif0rs> for bool {
#[inline(always)]
fn from(variant: Posif0rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `POSIF0RS` writer - POSIF0 Reset Clear"]
pub type Posif0rsW<'a, REG> = crate::BitWriter<'a, REG, Posif0rs>;
impl<'a, REG> Posif0rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Posif0rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Posif0rs::Value2)
}
}
#[doc = "POSIF1 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Posif1rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Posif1rs> for bool {
#[inline(always)]
fn from(variant: Posif1rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `POSIF1RS` writer - POSIF1 Reset Clear"]
pub type Posif1rsW<'a, REG> = crate::BitWriter<'a, REG, Posif1rs>;
impl<'a, REG> Posif1rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Posif1rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Posif1rs::Value2)
}
}
#[doc = "USIC0 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Usic0rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Usic0rs> for bool {
#[inline(always)]
fn from(variant: Usic0rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `USIC0RS` writer - USIC0 Reset Clear"]
pub type Usic0rsW<'a, REG> = crate::BitWriter<'a, REG, Usic0rs>;
impl<'a, REG> Usic0rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Usic0rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Usic0rs::Value2)
}
}
#[doc = "ERU1 Reset Clear\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Eru1rs {
#[doc = "0: No effect"]
Value1 = 0,
#[doc = "1: De-assert reset"]
Value2 = 1,
}
impl From<Eru1rs> for bool {
#[inline(always)]
fn from(variant: Eru1rs) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `ERU1RS` writer - ERU1 Reset Clear"]
pub type Eru1rsW<'a, REG> = crate::BitWriter<'a, REG, Eru1rs>;
impl<'a, REG> Eru1rsW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[doc = "No effect"]
#[inline(always)]
pub fn value1(self) -> &'a mut crate::W<REG> {
self.variant(Eru1rs::Value1)
}
#[doc = "De-assert reset"]
#[inline(always)]
pub fn value2(self) -> &'a mut crate::W<REG> {
self.variant(Eru1rs::Value2)
}
}
impl W {
#[doc = "Bit 0 - VADC Reset Clear"]
#[inline(always)]
#[must_use]
pub fn vadcrs(&mut self) -> VadcrsW<Prclr0Spec> {
VadcrsW::new(self, 0)
}
#[doc = "Bit 1 - DSD Reset Clear"]
#[inline(always)]
#[must_use]
pub fn dsdrs(&mut self) -> DsdrsW<Prclr0Spec> {
DsdrsW::new(self, 1)
}
#[doc = "Bit 2 - CCU40 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn ccu40rs(&mut self) -> Ccu40rsW<Prclr0Spec> {
Ccu40rsW::new(self, 2)
}
#[doc = "Bit 3 - CCU41 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn ccu41rs(&mut self) -> Ccu41rsW<Prclr0Spec> {
Ccu41rsW::new(self, 3)
}
#[doc = "Bit 4 - CCU42 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn ccu42rs(&mut self) -> Ccu42rsW<Prclr0Spec> {
Ccu42rsW::new(self, 4)
}
#[doc = "Bit 7 - CCU80 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn ccu80rs(&mut self) -> Ccu80rsW<Prclr0Spec> {
Ccu80rsW::new(self, 7)
}
#[doc = "Bit 8 - CCU81 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn ccu81rs(&mut self) -> Ccu81rsW<Prclr0Spec> {
Ccu81rsW::new(self, 8)
}
#[doc = "Bit 9 - POSIF0 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn posif0rs(&mut self) -> Posif0rsW<Prclr0Spec> {
Posif0rsW::new(self, 9)
}
#[doc = "Bit 10 - POSIF1 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn posif1rs(&mut self) -> Posif1rsW<Prclr0Spec> {
Posif1rsW::new(self, 10)
}
#[doc = "Bit 11 - USIC0 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn usic0rs(&mut self) -> Usic0rsW<Prclr0Spec> {
Usic0rsW::new(self, 11)
}
#[doc = "Bit 16 - ERU1 Reset Clear"]
#[inline(always)]
#[must_use]
pub fn eru1rs(&mut self) -> Eru1rsW<Prclr0Spec> {
Eru1rsW::new(self, 16)
}
}
#[doc = "RCU Peripheral 0 Reset Clear\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 [`prclr0::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Prclr0Spec;
impl crate::RegisterSpec for Prclr0Spec {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`prclr0::W`](W) writer structure"]
impl crate::Writable for Prclr0Spec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets PRCLR0 to value 0"]
impl crate::Resettable for Prclr0Spec {
const RESET_VALUE: u32 = 0;
}