Struct d1_pac::csic::csic_dma::csic_dma_cfg::R

source ·
pub struct R(/* private fields */);
Expand description

Register csic_dma_cfg reader

Implementations§

source§

impl R

source

pub fn min_sdr_wr_size(&self) -> MIN_SDR_WR_SIZE_R

Bits 0:1 - Minimum size of SDRAM block write

source

pub fn fps_ds(&self) -> FPS_DS_R

Bits 6:9 - Fps down sample

source

pub fn field_sel(&self) -> FIELD_SEL_R

Bits 10:11 - Field selection

source

pub fn hflip_en(&self) -> HFLIP_EN_R

Bit 12 - Horizontal flip enable

When enabled, the received data will be arranged in horizontal flip.

source

pub fn vflip_en(&self) -> VFLIP_EN_R

Bit 13 - Vertical flip enable

When enabled, the received data will be arranged in vertical flip.

source

pub fn output_fmt(&self) -> OUTPUT_FMT_R

Bits 16:19 - Output data format

When the input format is set to RAW stream

0000: field-raw-8

0001: field-raw-10

0010: field-raw-12

0011: reserved

0100: field-rgb565

0101: field-rgb888

0110: field-prgb888

0111: reserved

1000: frame-raw-8

1001: frame-raw-10

1010: frame-raw-12

1011: reserved

1100: frame-rgb565

1101: frame-rgb888

1110: frame-prgb888

1111: reserved

When the input format is set to YUV422

0000: field planar YCbCr 422

0001: field planar YCbCr 420

0010: frame planar YCbCr 420

0011: frame planar YCbCr 422

0100: field planar YCbCr 422 UV combined (UV sequence)

0101: field planar YCbCr 420 UV combined (UV sequence)

0110: frame planar YCbCr 420 UV combined (UV sequence)

0111: frame planar YCbCr 422 UV combined (UV sequence)

1000: filed planar YCbCr 422 UV combined (VU sequence)

1001: field planar YCbCr 420 UV combined (VU sequence)

1010: frame planar YCbCr 420 UV combined (VU sequence)

1011: frame planar YCbCr 422 UV combined (VU sequence)

1100: reserved

1101: field YCbCr 400

1110: reserved

1111: frame YCbCr 400

When the input format is set to YUV420

0000: reserved

0001: field planar YCbCr 420

0010: frame planar YCbCr 420

0011: reserved

0100: reserved

0101: field planar YCbCr 420 UV combined (UV sequence)

0110: frame planar YCbCr 420 UV combined (UV sequence) 0111~1000: reserved

1001: field planar YCbCr 420 UV combined (VU sequence)

1010: frame planar YCbCr 420 UV combined (VU sequence) 1011~1100: reserved

1101: field YCbCr 400

1110: reserved

1111: frame YCbCr 400

source

pub fn yuv_10bit_store_configuration(&self) -> YUV_10BIT_STORE_CONFIGURATION_R

Bit 20 - 10-bit store configuration

source

pub fn yuv_10bit_cut_8bit(&self) -> YUV_10BIT_CUT_8BIT_R

Bit 21 - 10-bit input cut to 8-bit

source

pub fn pad_val(&self) -> PAD_VAL_R

Bits 24:31 - Padding value when OUTPUT_FMT is prgb888

0x00-0xff

Methods from Deref<Target = R<CSIC_DMA_CFG_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<CSIC_DMA_CFG_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<CSIC_DMA_CFG_SPEC>> for R

source§

fn from(reader: R<CSIC_DMA_CFG_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.