[−][src]Struct soem::Context
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]
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>
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]
&'b mut self,
io_map: &'a mut [u8; 4096],
group: u8
) -> Result<usize, ErrorIterator<'b>>
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]
&mut self,
slave: u16,
state: EtherCatState,
timeout: c_int
) -> EtherCatState
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]
&'b mut self,
slave: u16,
index: u16,
subindex: u8,
value: &T,
timeout: c_int
) -> Result<(), ErrorIterator<'b>>
pub fn read_sdo<T: PrimInt + ?Sized>(
&mut self,
slave: u16,
index: u16,
subindex: u8,
timeout: c_int
) -> Result<T, ErrorIterator>
[src]
&mut self,
slave: u16,
index: u16,
subindex: u8,
timeout: c_int
) -> Result<T, ErrorIterator>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,