[][src]Struct ethercat_soem_sys::ecx_context

#[repr(C)]pub struct ecx_context {
    pub port: *mut ecx_portt,
    pub slavelist: *mut ec_slavet,
    pub slavecount: *mut c_int,
    pub maxslave: c_int,
    pub grouplist: *mut ec_groupt,
    pub maxgroup: c_int,
    pub esibuf: *mut uint8,
    pub esimap: *mut uint32,
    pub esislave: uint16,
    pub elist: *mut ec_eringt,
    pub idxstack: *mut ec_idxstackT,
    pub ecaterror: *mut boolean,
    pub DCtime: *mut int64,
    pub SMcommtype: *mut ec_SMcommtypet,
    pub PDOassign: *mut ec_PDOassignt,
    pub PDOdesc: *mut ec_PDOdesct,
    pub eepSM: *mut ec_eepromSMt,
    pub eepFMMU: *mut ec_eepromFMMUt,
    pub FOEhook: Option<unsafe extern "C" fn(slave: uint16, packetnumber: c_int, datasize: c_int) -> c_int>,
    pub EOEhook: Option<unsafe extern "C" fn(context: *mut ecx_contextt, slave: uint16, eoembx: *mut c_void) -> c_int>,
    pub manualstatechange: c_int,
}

Context structure , referenced by all ecx functions

Fields

port: *mut ecx_portt

port reference, may include red_port

slavelist: *mut ec_slavet

slavelist reference

slavecount: *mut c_int

number of slaves found in configuration

maxslave: c_int

maximum number of slaves allowed in slavelist

grouplist: *mut ec_groupt

grouplist reference

maxgroup: c_int

maximum number of groups allowed in grouplist

esibuf: *mut uint8

internal, reference to eeprom cache buffer

esimap: *mut uint32

internal, reference to eeprom cache map

esislave: uint16

internal, current slave for eeprom cache

elist: *mut ec_eringt

internal, reference to error list

idxstack: *mut ec_idxstackT

internal, reference to processdata stack buffer info

ecaterror: *mut boolean

reference to ecaterror state

DCtime: *mut int64

reference to last DC time from slaves

SMcommtype: *mut ec_SMcommtypet

internal, SM buffer

PDOassign: *mut ec_PDOassignt

internal, PDO assign list

PDOdesc: *mut ec_PDOdesct

internal, PDO description list

eepSM: *mut ec_eepromSMt

internal, SM list from eeprom

eepFMMU: *mut ec_eepromFMMUt

internal, FMMU list from eeprom

FOEhook: Option<unsafe extern "C" fn(slave: uint16, packetnumber: c_int, datasize: c_int) -> c_int>

registered FoE hook

EOEhook: Option<unsafe extern "C" fn(context: *mut ecx_contextt, slave: uint16, eoembx: *mut c_void) -> c_int>

registered EoE hook

manualstatechange: c_int

flag to control legacy automatic state change or manual state change

Trait Implementations

impl Clone for ecx_context[src]

impl Copy for ecx_context[src]

impl Debug for ecx_context[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.