#[doc = "Register `DBIAS_CHANNEL_SEL0` reader"]
pub type R = crate::R<DBIAS_CHANNEL_SEL0_SPEC>;
#[doc = "Register `DBIAS_CHANNEL_SEL0` writer"]
pub type W = crate::W<DBIAS_CHANNEL_SEL0_SPEC>;
#[doc = "Field `DBIAS_CHANNEL3_SEL` reader - needs field desc"]
pub type DBIAS_CHANNEL3_SEL_R = crate::FieldReader;
#[doc = "Field `DBIAS_CHANNEL3_SEL` writer - needs field desc"]
pub type DBIAS_CHANNEL3_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
#[doc = "Field `DBIAS_CHANNEL2_SEL` reader - needs field desc"]
pub type DBIAS_CHANNEL2_SEL_R = crate::FieldReader;
#[doc = "Field `DBIAS_CHANNEL2_SEL` writer - needs field desc"]
pub type DBIAS_CHANNEL2_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
#[doc = "Field `DBIAS_CHANNEL1_SEL` reader - needs field desc"]
pub type DBIAS_CHANNEL1_SEL_R = crate::FieldReader;
#[doc = "Field `DBIAS_CHANNEL1_SEL` writer - needs field desc"]
pub type DBIAS_CHANNEL1_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
#[doc = "Field `DBIAS_CHANNEL0_SEL` reader - needs field desc"]
pub type DBIAS_CHANNEL0_SEL_R = crate::FieldReader;
#[doc = "Field `DBIAS_CHANNEL0_SEL` writer - needs field desc"]
pub type DBIAS_CHANNEL0_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
impl R {
#[doc = "Bits 4:10 - needs field desc"]
#[inline(always)]
pub fn dbias_channel3_sel(&self) -> DBIAS_CHANNEL3_SEL_R {
DBIAS_CHANNEL3_SEL_R::new(((self.bits >> 4) & 0x7f) as u8)
}
#[doc = "Bits 11:17 - needs field desc"]
#[inline(always)]
pub fn dbias_channel2_sel(&self) -> DBIAS_CHANNEL2_SEL_R {
DBIAS_CHANNEL2_SEL_R::new(((self.bits >> 11) & 0x7f) as u8)
}
#[doc = "Bits 18:24 - needs field desc"]
#[inline(always)]
pub fn dbias_channel1_sel(&self) -> DBIAS_CHANNEL1_SEL_R {
DBIAS_CHANNEL1_SEL_R::new(((self.bits >> 18) & 0x7f) as u8)
}
#[doc = "Bits 25:31 - needs field desc"]
#[inline(always)]
pub fn dbias_channel0_sel(&self) -> DBIAS_CHANNEL0_SEL_R {
DBIAS_CHANNEL0_SEL_R::new(((self.bits >> 25) & 0x7f) as u8)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DBIAS_CHANNEL_SEL0")
.field("dbias_channel3_sel", &self.dbias_channel3_sel())
.field("dbias_channel2_sel", &self.dbias_channel2_sel())
.field("dbias_channel1_sel", &self.dbias_channel1_sel())
.field("dbias_channel0_sel", &self.dbias_channel0_sel())
.finish()
}
}
impl W {
#[doc = "Bits 4:10 - needs field desc"]
#[inline(always)]
pub fn dbias_channel3_sel(&mut self) -> DBIAS_CHANNEL3_SEL_W<'_, DBIAS_CHANNEL_SEL0_SPEC> {
DBIAS_CHANNEL3_SEL_W::new(self, 4)
}
#[doc = "Bits 11:17 - needs field desc"]
#[inline(always)]
pub fn dbias_channel2_sel(&mut self) -> DBIAS_CHANNEL2_SEL_W<'_, DBIAS_CHANNEL_SEL0_SPEC> {
DBIAS_CHANNEL2_SEL_W::new(self, 11)
}
#[doc = "Bits 18:24 - needs field desc"]
#[inline(always)]
pub fn dbias_channel1_sel(&mut self) -> DBIAS_CHANNEL1_SEL_W<'_, DBIAS_CHANNEL_SEL0_SPEC> {
DBIAS_CHANNEL1_SEL_W::new(self, 18)
}
#[doc = "Bits 25:31 - needs field desc"]
#[inline(always)]
pub fn dbias_channel0_sel(&mut self) -> DBIAS_CHANNEL0_SEL_W<'_, DBIAS_CHANNEL_SEL0_SPEC> {
DBIAS_CHANNEL0_SEL_W::new(self, 25)
}
}
#[doc = "needs desc\n\nYou can [`read`](crate::Reg::read) this register and get [`dbias_channel_sel0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dbias_channel_sel0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DBIAS_CHANNEL_SEL0_SPEC;
impl crate::RegisterSpec for DBIAS_CHANNEL_SEL0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`dbias_channel_sel0::R`](R) reader structure"]
impl crate::Readable for DBIAS_CHANNEL_SEL0_SPEC {}
#[doc = "`write(|w| ..)` method takes [`dbias_channel_sel0::W`](W) writer structure"]
impl crate::Writable for DBIAS_CHANNEL_SEL0_SPEC {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets DBIAS_CHANNEL_SEL0 to value 0x8102_0400"]
impl crate::Resettable for DBIAS_CHANNEL_SEL0_SPEC {
const RESET_VALUE: u32 = 0x8102_0400;
}