CTRL

Struct CTRL 

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

Register block

Implementations§

Source§

impl CTRL

Source

pub const fn engine_ctrl(&self) -> &ENGINE_CTRL

0x00 - Engine control register

Source

pub const fn ptr_cfg(&self) -> &PTR_CFG

0x04 - Pointer configuration register

Source

pub const fn wdg_cfg(&self) -> &WDG_CFG

0x08 - Watch dog configuration register

Source

pub const fn exe_sta(&self) -> &EXE_STA

0x10 - Execution status

Source

pub const fn exe_ptr(&self) -> &EXE_PTR

0x14 - Execution pointer

Source

pub const fn exe_inst(&self) -> &EXE_INST

0x18 - Execution instruction

Source

pub const fn wdg_sta(&self) -> &WDG_STA

0x1c - Watch dog status

Source

pub const fn xcvr_ctrl(&self) -> &XCVR_CTRL

0x20 - Transceiver control register

Source

pub const fn type_cfg(&self) -> &TYPE_CFG

0x24 - Transceiver configuration register

Source

pub const fn baud_cfg(&self) -> &BAUD_CFG

0x28 - Transceiver baud rate register

Source

pub const fn data_cfg(&self) -> &DATA_CFG

0x2c - Transceiver data timing configuration

Source

pub const fn clk_cfg(&self) -> &CLK_CFG

0x30 - Transceiver clock timing configuration

Source

pub const fn pin(&self) -> &PIN

0x38 - Transceiver pin status

Source

pub const fn state(&self) -> &STATE

0x3c - FSM of asynchronous

Source

pub const fn in_cfg(&self) -> &IN_CFG

0x40 - Trigger input configuration

Source

pub const fn sw(&self) -> &SW

0x44 - Software trigger

Source

pub const fn trg_prd_cfg(&self) -> &TRG_PRD_CFG

0x48 - Period trigger configuration

Source

pub const fn prd(&self) -> &PRD

0x4c - Trigger period

Source

pub const fn out_cfg(&self) -> &OUT_CFG

0x50 - Trigger output configuration

Source

pub const fn prd_sts(&self) -> &PRD_STS

0x60 - Period trigger status

Source

pub const fn prd_cnt(&self) -> &PRD_CNT

0x64 - Period trigger counter

Source

pub const fn trg_table_cmd(&self, n: usize) -> &TRG_TABLE_CMD

0x80..0x90 - no description available

Source

pub fn trg_table_cmd_iter(&self) -> impl Iterator<Item = &TRG_TABLE_CMD>

Iterator for array of: 0x80..0x90 - no description available

Source

pub const fn time(&self, n: usize) -> &TIME

0xa0..0xb0 - no description available

Source

pub fn time_iter(&self) -> impl Iterator<Item = &TIME>

Iterator for array of: 0xa0..0xb0 - no description available

Source

pub const fn mode(&self) -> &MODE

0xc0 - command register mode

Source

pub const fn idx(&self) -> &IDX

0xc4 - command register configuration

Source

pub const fn gold(&self) -> &GOLD

0xc8 - Command gold value

Source

pub const fn crcinit(&self) -> &CRCINIT

0xcc - Command Initial value

Source

pub const fn crcpoly(&self) -> &CRCPOLY

0xd0 - Command CRC polymial

Source

pub const fn cmd(&self) -> &CMD

0xe0 - command

Source

pub const fn set(&self) -> &SET

0xe4 - command bit set register

Source

pub const fn clr(&self) -> &CLR

0xe8 - command bit clear register

Source

pub const fn inv(&self) -> &INV

0xec - command bit invert register

Source

pub const fn in_(&self) -> &IN

0xf0 - Commad input

Source

pub const fn out(&self) -> &OUT

0xf4 - Command output

Source

pub const fn sts(&self) -> &STS

0xf8 - Command status

Source

pub const fn cmd_table(&self, n: usize) -> &CMD_TABLE

0x100..0x1c0 - no description available

Source

pub fn cmd_table_iter(&self) -> impl Iterator<Item = &CMD_TABLE>

Iterator for array of: 0x100..0x1c0 - no description available

Source

pub const fn latch(&self, n: usize) -> &LATCH

0x200..0x280 - no description available

Source

pub fn latch_iter(&self) -> impl Iterator<Item = &LATCH>

Iterator for array of: 0x200..0x280 - no description available

Source

pub const fn smp_en(&self) -> &SMP_EN

0x280 - Sample selection register

Source

pub const fn smp_cfg(&self) -> &SMP_CFG

0x284 - Sample configuration

Source

pub const fn smp_dat(&self) -> &SMP_DAT

0x288 - Sample data

Source

pub const fn smp_pos(&self) -> &SMP_POS

0x290 - Sample override position

Source

pub const fn smp_rev(&self) -> &SMP_REV

0x294 - Sample override revolution

Source

pub const fn smp_spd(&self) -> &SMP_SPD

0x298 - Sample override speed

Source

pub const fn smp_acc(&self) -> &SMP_ACC

0x29c - Sample override accelerate

Source

pub const fn upd_en(&self) -> &UPD_EN

0x2a0 - Update configuration

Source

pub const fn upd_cfg(&self) -> &UPD_CFG

0x2a4 - Update configuration

Source

pub const fn upd_dat(&self) -> &UPD_DAT

0x2a8 - Update data

Source

pub const fn upd_time(&self) -> &UPD_TIME

0x2ac - Update overide time

Source

pub const fn upd_pos(&self) -> &UPD_POS

0x2b0 - Update override position

Source

pub const fn upd_rev(&self) -> &UPD_REV

0x2b4 - Update override revolution

Source

pub const fn upd_spd(&self) -> &UPD_SPD

0x2b8 - Update override speed

Source

pub const fn upd_acc(&self) -> &UPD_ACC

0x2bc - Update override accelerate

Source

pub const fn smp_val(&self) -> &SMP_VAL

0x2c0 - Sample valid

Source

pub const fn smp_sts(&self) -> &SMP_STS

0x2c4 - Sample status

Source

pub const fn time_in(&self) -> &TIME_IN

0x2cc - input time

Source

pub const fn pos_in(&self) -> &POS_IN

0x2d0 - Input position

Source

pub const fn rev_in(&self) -> &REV_IN

0x2d4 - Input revolution

Source

pub const fn spd_in(&self) -> &SPD_IN

0x2d8 - Input speed

Source

pub const fn acc_in(&self) -> &ACC_IN

0x2dc - Input accelerate

Source

pub const fn upd_sts(&self) -> &UPD_STS

0x2e4 - Update status

Source

pub const fn int_en(&self) -> &INT_EN

0x300 - Interrupt Enable

Source

pub const fn int_flag(&self) -> &INT_FLAG

0x304 - Interrupt flag

Source

pub const fn int_sts(&self) -> &INT_STS

0x308 - Interrupt status

Source

pub const fn pointer0(&self) -> &POINTER0

0x310 - Match pointer 0

Source

pub const fn pointer1(&self) -> &POINTER1

0x314 - Match pointer 1

Source

pub const fn instr0(&self) -> &INSTR0

0x318 - Match instruction 0

Source

pub const fn instr1(&self) -> &INSTR1

0x31c - Match instruction 1

Auto Trait Implementations§

§

impl !Freeze for CTRL

§

impl !RefUnwindSafe for CTRL

§

impl Send for CTRL

§

impl !Sync for CTRL

§

impl Unpin for CTRL

§

impl UnwindSafe for CTRL

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

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.