pub struct Ctx {
    pub io_map: [u8; 4096],
    /* private fields */
}
Expand description

SOEM ecx_context wrapper

Fields

io_map: [u8; 4096]

I/O map

Implementations

Initialise lib in single NIC mode.

Return > 0 if OK.

Write slave state, if slave = 0 then write to all slaves.

The function does not check if the actual state is changed. It returns Workcounter or EC_NOFRAME (= -1),

Check actual slave state.

This is a blocking function. To refresh the state of all slaves read_state() should be called.

Parameter slave = Slave number, 0 = all slaves (only the “slavelist[0].state” is refreshed).

It returns requested state, or found state after timeout.

Read all slave states in ec_slave.

It returns the lowest state found,

Trait Implementations

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.