[][src]Struct soem::Context

pub struct Context<'a> { /* fields omitted */ }

Implementations

impl<'a> Context<'a>[src]

pub fn new(
    iface_name: &str,
    port: &'a mut Port,
    slaves: &'a mut [Slave],
    slavecount: &'a mut c_int,
    groups: &'a mut [Group],
    esibuf: &'a mut ESIBuf,
    esimap: &'a mut ESIMap,
    elist: &'a mut ERing,
    idxstack: &'a mut IdxStack,
    ecaterror: &'a mut Boolean,
    dc_time: &'a mut i64,
    sm_commtype: &'a mut SMCommType,
    pdo_assign: &'a mut PDOAssign,
    pdo_desc: &'a mut PDODesc,
    eep_sm: &'a mut EEPROMSM,
    eep_fmmu: &'a mut EEPROMFMMU
) -> Result<Self, InitError>
[src]

pub fn config_init(&mut self, usetable: bool) -> Result<usize, EtherCatError>[src]

pub fn config_map_group<'b>(
    &'b mut self,
    io_map: &'a mut [u8; 4096],
    group: u8
) -> Result<usize, ErrorIterator<'b>>
[src]

pub fn config_dc(&mut self) -> Result<bool, ErrorIterator>[src]

pub fn check_state(
    &mut self,
    slave: u16,
    state: EtherCatState,
    timeout: c_int
) -> EtherCatState
[src]

pub fn read_state(&mut self) -> EtherCatState[src]

pub fn write_state(&mut self, slave: u16) -> Result<u16, EtherCatError>[src]

pub fn set_state(&mut self, state: EtherCatState, slave: u16)[src]

pub fn dc_time(&mut self) -> i64[src]

pub fn slaves(&mut self) -> &mut [Slave][src]

pub fn groups(&mut self) -> &'a [Group][src]

pub fn send_processdata(&mut self)[src]

pub fn receive_processdata(&mut self, timeout: c_int) -> u16[src]

pub fn write_sdo<'b, T: PrimInt + ?Sized>(
    &'b mut self,
    slave: u16,
    index: u16,
    subindex: u8,
    value: &T,
    timeout: c_int
) -> Result<(), ErrorIterator<'b>>
[src]

pub fn read_sdo<T: PrimInt + ?Sized>(
    &mut self,
    slave: u16,
    index: u16,
    subindex: u8,
    timeout: c_int
) -> Result<T, ErrorIterator>
[src]

Trait Implementations

impl<'a> Debug for Context<'a>[src]

impl<'a> Drop for Context<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Context<'a>

impl<'a> !Send for Context<'a>

impl<'a> !Sync for Context<'a>

impl<'a> Unpin for Context<'a>

impl<'a> UnwindSafe for Context<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.