Struct JPEG

Source
pub struct JPEG { /* private fields */ }
Expand description

JPEG Codec

Implementations§

Source§

impl JPEG

Source

pub const PTR: *const RegisterBlock = {0x50086000 as *const jpeg::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn config(&self) -> &CONFIG

0x00 - Control and configuration registers

Source

pub fn dqt_info(&self) -> &DQT_INFO

0x04 - Control and configuration registers

Source

pub fn pic_size(&self) -> &PIC_SIZE

0x08 - Control and configuration registers

Source

pub fn t0qnr(&self) -> &T0QNR

0x10 - Control and configuration registers

Source

pub fn t1qnr(&self) -> &T1QNR

0x14 - Control and configuration registers

Source

pub fn t2qnr(&self) -> &T2QNR

0x18 - Control and configuration registers

Source

pub fn t3qnr(&self) -> &T3QNR

0x1c - Control and configuration registers

Source

pub fn decode_conf(&self) -> &DECODE_CONF

0x20 - Control and configuration registers

Source

pub fn c0(&self) -> &C0

0x24 - Control and configuration registers

Source

pub fn c1(&self) -> &C1

0x28 - Control and configuration registers

Source

pub fn c2(&self) -> &C2

0x2c - Control and configuration registers

Source

pub fn c3(&self) -> &C3

0x30 - Control and configuration registers

Source

pub fn dht_info(&self) -> &DHT_INFO

0x34 - Control and configuration registers

Source

pub fn int_raw(&self) -> &INT_RAW

0x38 - Interrupt raw registers

Source

pub fn int_ena(&self) -> &INT_ENA

0x3c - Interrupt enable registers

Source

pub fn int_st(&self) -> &INT_ST

0x40 - Interrupt status registers

Source

pub fn int_clr(&self) -> &INT_CLR

0x44 - Interrupt clear registers

Source

pub fn status0(&self) -> &STATUS0

0x48 - Trace and Debug registers

Source

pub fn status2(&self) -> &STATUS2

0x4c - Trace and Debug registers

Source

pub fn status3(&self) -> &STATUS3

0x50 - Trace and Debug registers

Source

pub fn status4(&self) -> &STATUS4

0x54 - Trace and Debug registers

Source

pub fn dht_totlen_dc0(&self) -> &DHT_TOTLEN_DC0

0x58 - Trace and Debug registers

Source

pub fn dht_val_dc0(&self) -> &DHT_VAL_DC0

0x5c - Trace and Debug registers

Source

pub fn dht_totlen_ac0(&self) -> &DHT_TOTLEN_AC0

0x60 - Trace and Debug registers

Source

pub fn dht_val_ac0(&self) -> &DHT_VAL_AC0

0x64 - Trace and Debug registers

Source

pub fn dht_totlen_dc1(&self) -> &DHT_TOTLEN_DC1

0x68 - Trace and Debug registers

Source

pub fn dht_val_dc1(&self) -> &DHT_VAL_DC1

0x6c - Trace and Debug registers

Source

pub fn dht_totlen_ac1(&self) -> &DHT_TOTLEN_AC1

0x70 - Trace and Debug registers

Source

pub fn dht_val_ac1(&self) -> &DHT_VAL_AC1

0x74 - Trace and Debug registers

Source

pub fn dht_codemin_dc0(&self) -> &DHT_CODEMIN_DC0

0x78 - Trace and Debug registers

Source

pub fn dht_codemin_ac0(&self) -> &DHT_CODEMIN_AC0

0x7c - Trace and Debug registers

Source

pub fn dht_codemin_dc1(&self) -> &DHT_CODEMIN_DC1

0x80 - Trace and Debug registers

Source

pub fn dht_codemin_ac1(&self) -> &DHT_CODEMIN_AC1

0x84 - Trace and Debug registers

Source

pub fn decoder_status0(&self) -> &DECODER_STATUS0

0x88 - Trace and Debug registers

Source

pub fn decoder_status1(&self) -> &DECODER_STATUS1

0x8c - Trace and Debug registers

Source

pub fn decoder_status2(&self) -> &DECODER_STATUS2

0x90 - Trace and Debug registers

Source

pub fn decoder_status3(&self) -> &DECODER_STATUS3

0x94 - Trace and Debug registers

Source

pub fn decoder_status4(&self) -> &DECODER_STATUS4

0x98 - Trace and Debug registers

Source

pub fn decoder_status5(&self) -> &DECODER_STATUS5

0x9c - Trace and Debug registers

Source

pub fn status5(&self) -> &STATUS5

0xa0 - Trace and Debug registers

Source

pub fn eco_low(&self) -> &ECO_LOW

0xa4 - Trace and Debug registers

Source

pub fn eco_high(&self) -> &ECO_HIGH

0xa8 - Trace and Debug registers

Source

pub fn sys(&self) -> &SYS

0xf8 - Trace and Debug registers

Source

pub fn version(&self) -> &VERSION

0xfc - Trace and Debug registers

Trait Implementations§

Source§

impl Debug for JPEG

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for JPEG

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for JPEG

Auto Trait Implementations§

§

impl Freeze for JPEG

§

impl RefUnwindSafe for JPEG

§

impl !Sync for JPEG

§

impl Unpin 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> 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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

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.