moondancer_pac/generated/spi0/
cs.rs

1#[doc = "Register `cs` reader"]
2pub type R = crate::R<CS_SPEC>;
3#[doc = "Register `cs` writer"]
4pub type W = crate::W<CS_SPEC>;
5#[doc = "Field `select` writer - select field"]
6pub type SELECT_W<'a, REG> = crate::BitWriter<'a, REG>;
7impl W {
8    #[doc = "Bit 0 - select field"]
9    #[inline(always)]
10    pub fn select(&mut self) -> SELECT_W<CS_SPEC> {
11        SELECT_W::new(self, 0)
12    }
13}
14#[doc = "SPI chip select register select : SPI chip select signal.\n\nYou can [`read`](crate::Reg::read) this register and get [`cs::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cs::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
15pub struct CS_SPEC;
16impl crate::RegisterSpec for CS_SPEC {
17    type Ux = u8;
18}
19#[doc = "`read()` method returns [`cs::R`](R) reader structure"]
20impl crate::Readable for CS_SPEC {}
21#[doc = "`write(|w| ..)` method takes [`cs::W`](W) writer structure"]
22impl crate::Writable for CS_SPEC {
23    type Safety = crate::Unsafe;
24    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
25    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
26}
27#[doc = "`reset()` method sets cs to value 0"]
28impl crate::Resettable for CS_SPEC {
29    const RESET_VALUE: u8 = 0;
30}