Struct ethercat::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> 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.