stm32-metapac

Crates

git

Versions

stm32h743xg

Flavors

Skip to main content

Jpeg

Struct Jpeg 

pub struct Jpeg { /* private fields */ }
Expand description

JPEG codec

Implementations§

§

impl Jpeg

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

pub const fn as_ptr(&self) -> *mut ()

pub const fn jpeg_confr0(self) -> Reg<JpegConfr0, W>

JPEG codec control register

pub const fn jpeg_confr1(self) -> Reg<JpegConfr1, RW>

JPEG codec configuration register 1

pub const fn jpeg_confr2(self) -> Reg<JpegConfr2, RW>

JPEG codec configuration register 2

pub const fn jpeg_confr3(self) -> Reg<JpegConfr3, RW>

JPEG codec configuration register 3

pub const fn jpeg_confrx(self, n: usize) -> Reg<JpegConfrx, RW>

JPEG codec configuration register x (JPEG_CONFR4..JPEG_CONFR7), one per color component 0..3

pub const fn jpeg_cr(self) -> Reg<JpegCr, RW>

JPEG control register

pub const fn jpeg_sr(self) -> Reg<JpegSr, R>

JPEG status register

pub const fn jpeg_cfr(self) -> Reg<JpegCfr, W>

JPEG clear flag register

pub const fn jpeg_dir(self) -> Reg<JpegDir, W>

JPEG data input register

pub const fn jpeg_dor(self) -> Reg<JpegDor, R>

JPEG data output register

pub const fn qmem(self, n: usize) -> Reg<Qmem, RW>

JPEG quantization memory (JPEG_QMEMx_y, index = 16*x + y, x = table 0..3)

pub const fn huffmin(self, n: usize) -> Reg<Huffmin, RW>

JPEG Huffman min memory (JPEG_HUFFMINx_y, index = 4*x + y). Written by hardware during header parsing.

pub const fn huffbase(self, n: usize) -> Reg<Huffbase, RW>

JPEG Huffman base memory. Written by hardware during header parsing.

pub const fn huffsymb(self, n: usize) -> Reg<Huffsymb, RW>

JPEG Huffman symbol memory. Written by hardware during header parsing.

pub const fn dhtmem(self, n: usize) -> Reg<Dhtmem, RW>

JPEG DHT memory

pub const fn huffenc_ac(self, n: usize) -> Reg<Huffenc, RW>

JPEG Huffman encoder AC memory (JPEG_HUFFENC_ACx_y, index = 88*x + y, x = table 0..1)

pub const fn huffenc_dc(self, n: usize) -> Reg<Huffenc, RW>

JPEG Huffman encoder DC memory (JPEG_HUFFENC_DCx_y, index = 8*x + y, x = table 0..1)

Trait Implementations§

§

impl Clone for Jpeg

§

fn clone(&self) -> Jpeg

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Jpeg

§

impl Eq for Jpeg

§

impl PartialEq for Jpeg

§

fn eq(&self, other: &Jpeg) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl Send for Jpeg

§

impl StructuralPartialEq for Jpeg

§

impl Sync for Jpeg

Auto Trait Implementations§

§

impl Freeze for Jpeg

§

impl RefUnwindSafe for Jpeg

§

impl Unpin for Jpeg

§

impl UnsafeUnpin for Jpeg

§

impl UnwindSafe for Jpeg

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

type Error = !

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>,

Source§

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.