1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#[doc = "Reader of register CC_CTRL"] pub type R = crate::R<u32, super::CC_CTRL>; #[doc = "Writer for register CC_CTRL"] pub type W = crate::W<u32, super::CC_CTRL>; #[doc = "Register CC_CTRL `reset()`'s with value 0"] impl crate::ResetValue for super::CC_CTRL { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Reader of field `PAR_MODE`"] pub type PAR_MODE_R = crate::R<u8, u8>; #[doc = "Write proxy for field `PAR_MODE`"] pub struct PAR_MODE_W<'a> { w: &'a mut W, } impl<'a> PAR_MODE_W<'a> { #[doc = r"Writes raw bits to the field"] #[inline(always)] pub unsafe fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x07 << 1)) | (((value as u32) & 0x07) << 1); self.w } } impl R { #[doc = "Bits 1:3 - Sets the Protocol Mode of the Camera Core module in parallel mode (when CCP_MODE = 0) """000"" Parallel NOBT 8-bit" """001"" Parallel NOBT 10-bit" """010"" Parallel NOBT 12-bit" """011"" reserved" """100"" Parallet BT 8-bit" """101"" Parallel BT 10-bit" """110"" reserved" """111"" FIFO test mode. Refer to Table 12 - FIFO Write and Read access""] #[inline(always)] pub fn par_mode(&self) -> PAR_MODE_R { PAR_MODE_R::new(((self.bits >> 1) & 0x07) as u8) } } impl W { #[doc = "Bits 1:3 - Sets the Protocol Mode of the Camera Core module in parallel mode (when CCP_MODE = 0) """000"" Parallel NOBT 8-bit" """001"" Parallel NOBT 10-bit" """010"" Parallel NOBT 12-bit" """011"" reserved" """100"" Parallet BT 8-bit" """101"" Parallel BT 10-bit" """110"" reserved" """111"" FIFO test mode. Refer to Table 12 - FIFO Write and Read access""] #[inline(always)] pub fn par_mode(&mut self) -> PAR_MODE_W { PAR_MODE_W { w: self } } }