pub type ec_slavet = ec_slave;Expand description
for list of ethercat slaves detected
Aliased Type§
struct ec_slavet {Show 64 fields
pub state: u16,
pub ALstatuscode: u16,
pub configadr: u16,
pub aliasadr: u16,
pub eep_man: u32,
pub eep_id: u32,
pub eep_rev: u32,
pub Itype: u16,
pub Dtype: u16,
pub Obits: u16,
pub Obytes: u32,
pub outputs: *mut u8,
pub Ostartbit: u8,
pub Ibits: u16,
pub Ibytes: u32,
pub inputs: *mut u8,
pub Istartbit: u8,
pub SM: [ec_sm; 8],
pub SMtype: [u8; 8],
pub FMMU: [ec_fmmu; 4],
pub FMMU0func: u8,
pub FMMU1func: u8,
pub FMMU2func: u8,
pub FMMU3func: u8,
pub mbx_l: u16,
pub mbx_wo: u16,
pub mbx_rl: u16,
pub mbx_ro: u16,
pub mbx_proto: u16,
pub mbx_cnt: u8,
pub hasdc: u8,
pub ptype: u8,
pub topology: u8,
pub activeports: u8,
pub consumedports: u8,
pub parent: u16,
pub parentport: u8,
pub entryport: u8,
pub DCrtA: i32,
pub DCrtB: i32,
pub DCrtC: i32,
pub DCrtD: i32,
pub pdelay: i32,
pub DCnext: u16,
pub DCprevious: u16,
pub DCcycle: i32,
pub DCshift: i32,
pub DCactive: u8,
pub configindex: u16,
pub SIIindex: u16,
pub eep_8byte: u8,
pub eep_pdi: u8,
pub CoEdetails: u8,
pub FoEdetails: u8,
pub EoEdetails: u8,
pub SoEdetails: u8,
pub Ebuscurrent: i16,
pub blockLRW: u8,
pub group: u8,
pub FMMUunused: u8,
pub islost: u8,
pub PO2SOconfig: Option<unsafe extern "C" fn(_: u16) -> i32>,
pub PO2SOconfigx: Option<unsafe extern "C" fn(_: *mut ecx_context, _: u16) -> i32>,
pub name: [i8; 41],
}Fields§
§state: u16state of slave
ALstatuscode: u16AL status code
configadr: u16Configured address
aliasadr: u16Alias address
eep_man: u32Manufacturer from EEprom
eep_id: u32ID from EEprom
eep_rev: u32revision from EEprom
Itype: u16Interface type
Dtype: u16Device type
Obits: u16output bits
Obytes: u32output bytes, if Obits < 8 then Obytes = 0
outputs: *mut u8output pointer in IOmap buffer
Ostartbit: u8startbit in first output byte
Ibits: u16input bits
Ibytes: u32input bytes, if Ibits < 8 then Ibytes = 0
inputs: *mut u8input pointer in IOmap buffer
Istartbit: u8startbit in first input byte
SM: [ec_sm; 8]SM structure
SMtype: [u8; 8]SM type 0=unused 1=MbxWr 2=MbxRd 3=Outputs 4=Inputs
FMMU: [ec_fmmu; 4]FMMU structure
FMMU0func: u8FMMU0 function
FMMU1func: u8FMMU1 function
FMMU2func: u8FMMU2 function
FMMU3func: u8FMMU3 function
mbx_l: u16length of write mailbox in bytes, if no mailbox then 0
mbx_wo: u16mailbox write offset
mbx_rl: u16length of read mailbox in bytes
mbx_ro: u16mailbox read offset
mbx_proto: u16mailbox supported protocols
mbx_cnt: u8Counter value of mailbox link layer protocol 1..7
hasdc: u8has DC capability
ptype: u8Physical type; Ebus, EtherNet combinations
topology: u8topology: 1 to 3 links
activeports: u8active ports bitmap : ….3210 , set if respective port is active
consumedports: u8consumed ports bitmap : ….3210, used for internal delay measurement
parent: u16slave number for parent, 0=master
parentport: u8port number on parent this slave is connected to
entryport: u8port number on this slave the parent is connected to
DCrtA: i32DC receivetimes on port A
DCrtB: i32DC receivetimes on port B
DCrtC: i32DC receivetimes on port C
DCrtD: i32DC receivetimes on port D
pdelay: i32propagation delay
DCnext: u16next DC slave
DCprevious: u16previous DC slave
DCcycle: i32DC cycle time in ns
DCshift: i32DC shift from clock modulus boundary
DCactive: u8DC sync activation, 0=off, 1=on
configindex: u16link to config table
SIIindex: u16link to SII config
eep_8byte: u81 = 8 bytes per read, 0 = 4 bytes per read
eep_pdi: u80 = eeprom to master , 1 = eeprom to PDI
CoEdetails: u8CoE details
FoEdetails: u8FoE details
EoEdetails: u8EoE details
SoEdetails: u8SoE details
Ebuscurrent: i16E-bus current
blockLRW: u8if >0 block use of LRW in processdata
group: u8group
FMMUunused: u8first unused FMMU
islost: u8Boolean for tracking whether the slave is (not) responding, not used/set by the SOEM library
PO2SOconfig: Option<unsafe extern "C" fn(_: u16) -> i32>registered configuration function PO->SO, (DEPRECATED)
PO2SOconfigx: Option<unsafe extern "C" fn(_: *mut ecx_context, _: u16) -> i32>registered configuration function PO->SO
name: [i8; 41]readable name