SlaveConfig

Struct SlaveConfig 

Source
pub struct SlaveConfig<'m> { /* private fields */ }

Implementations§

Source§

impl<'m> SlaveConfig<'m>

Source

pub const fn index(&self) -> SlaveConfigIdx

Source

pub fn state(&self) -> Result<SlaveConfigState>

Source

pub fn config_sm_pdos( &mut self, sm_cfg: SmCfg, pdo_cfgs: &[PdoCfg], ) -> Result<()>

Configure PDOs of a specifc Sync Manager

Source

pub fn config_watchdog(&mut self, divider: u16, intervals: u16) -> Result<()>

Source

pub fn config_sync_manager(&mut self, cfg: &SmCfg) -> Result<()>

Source

pub fn clear_pdo_assignments(&mut self, sync_idx: SmIdx) -> Result<()>

Source

pub fn add_pdo_assignment( &mut self, sync_idx: SmIdx, pdo_idx: PdoIdx, ) -> Result<()>

Source

pub fn clear_pdo_mapping(&mut self, pdo_idx: PdoIdx) -> Result<()>

Source

pub fn add_pdo_mapping( &mut self, pdo_index: PdoIdx, entry: &PdoEntryInfo, ) -> Result<()>

Source

pub fn register_pdo_entry( &mut self, index: PdoEntryIdx, domain: DomainIdx, ) -> Result<Offset>

Source

pub fn register_pdo_entry_by_position( &mut self, sync_index: SmIdx, pdo_pos: u32, entry_pos: u32, domain: DomainIdx, ) -> Result<Offset>

Source

pub fn config_dc( &mut self, assign_activate: u16, sync0_cycle_time: u32, sync0_shift_time: i32, sync1_cycle_time: u32, sync1_shift_time: i32, ) -> Result<()>

Source

pub fn add_sdo<T>(&mut self, index: SdoIdx, data: &T) -> Result<()>
where T: SdoData + ?Sized,

Source

pub fn add_complete_sdo(&mut self, index: SdoIdx, data: &[u8]) -> Result<()>

Source

pub fn config_idn( &mut self, drive_no: u8, idn: u16, al_state: AlState, data: &[u8], ) -> Result<()>

Source

pub fn set_emerg_size(&mut self, elements: u64) -> Result<()>

Source

pub fn pop_emerg(&mut self, target: &mut [u8]) -> Result<()>

Source

pub fn clear_emerg(&mut self) -> Result<()>

Source

pub fn emerg_overruns(&mut self) -> Result<i32>

Auto Trait Implementations§

§

impl<'m> Freeze for SlaveConfig<'m>

§

impl<'m> RefUnwindSafe for SlaveConfig<'m>

§

impl<'m> Send for SlaveConfig<'m>

§

impl<'m> Sync for SlaveConfig<'m>

§

impl<'m> Unpin for SlaveConfig<'m>

§

impl<'m> UnwindSafe for SlaveConfig<'m>

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.