Struct SOEM_sys::ecx_context

source ·
#[repr(C)]
pub struct ecx_context {
Show 21 fields 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 DCtO: uint16, pub DCl: uint16, 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>,
}
Expand description

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

DCtO: uint16

internal, position of DC datagram in process data packet

DCl: uint16

internal, length of DC datagram

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

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.