Type Alias ec_slavet

Source
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: u16

state of slave

§ALstatuscode: u16

AL status code

§configadr: u16

Configured address

§aliasadr: u16

Alias address

§eep_man: u32

Manufacturer from EEprom

§eep_id: u32

ID from EEprom

§eep_rev: u32

revision from EEprom

§Itype: u16

Interface type

§Dtype: u16

Device type

§Obits: u16

output bits

§Obytes: u32

output bytes, if Obits < 8 then Obytes = 0

§outputs: *mut u8

output pointer in IOmap buffer

§Ostartbit: u8

startbit in first output byte

§Ibits: u16

input bits

§Ibytes: u32

input bytes, if Ibits < 8 then Ibytes = 0

§inputs: *mut u8

input pointer in IOmap buffer

§Istartbit: u8

startbit 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: u8

FMMU0 function

§FMMU1func: u8

FMMU1 function

§FMMU2func: u8

FMMU2 function

§FMMU3func: u8

FMMU3 function

§mbx_l: u16

length of write mailbox in bytes, if no mailbox then 0

§mbx_wo: u16

mailbox write offset

§mbx_rl: u16

length of read mailbox in bytes

§mbx_ro: u16

mailbox read offset

§mbx_proto: u16

mailbox supported protocols

§mbx_cnt: u8

Counter value of mailbox link layer protocol 1..7

§hasdc: u8

has DC capability

§ptype: u8

Physical type; Ebus, EtherNet combinations

§topology: u8

topology: 1 to 3 links

§activeports: u8

active ports bitmap : ….3210 , set if respective port is active

§consumedports: u8

consumed ports bitmap : ….3210, used for internal delay measurement

§parent: u16

slave number for parent, 0=master

§parentport: u8

port number on parent this slave is connected to

§entryport: u8

port number on this slave the parent is connected to

§DCrtA: i32

DC receivetimes on port A

§DCrtB: i32

DC receivetimes on port B

§DCrtC: i32

DC receivetimes on port C

§DCrtD: i32

DC receivetimes on port D

§pdelay: i32

propagation delay

§DCnext: u16

next DC slave

§DCprevious: u16

previous DC slave

§DCcycle: i32

DC cycle time in ns

§DCshift: i32

DC shift from clock modulus boundary

§DCactive: u8

DC sync activation, 0=off, 1=on

§configindex: u16

link to config table

§SIIindex: u16

link to SII config

§eep_8byte: u8

1 = 8 bytes per read, 0 = 4 bytes per read

§eep_pdi: u8

0 = eeprom to master , 1 = eeprom to PDI

§CoEdetails: u8

CoE details

§FoEdetails: u8

FoE details

§EoEdetails: u8

EoE details

§SoEdetails: u8

SoE details

§Ebuscurrent: i16

E-bus current

§blockLRW: u8

if >0 block use of LRW in processdata

§group: u8

group

§FMMUunused: u8

first unused FMMU

§islost: u8

Boolean 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