Enum AlStatus

Source
#[repr(u16)]
pub enum AlStatus {
Show 53 variants NoError = 0, UnspecifiedError = 1, NoMemory = 2, InvalidRequestedStateChange = 17, UnknownRequestedState = 18, BootstrapNotSupported = 19, NoValidFirmware = 20, InvalidMailboxConfig = 21, InvalidMailboxConfig2 = 22, InvalidSyncManagerConfiguration = 23, NoValidInputsAvailable = 24, NoValidOutputs = 25, SynchronizationError = 26, SyncManagerWatchdog = 27, InvalidSyncManagerTypes = 28, InvalidOutputConfiguration = 29, InvalidInputConfiguration = 30, InvalidWatchdogConfiguration = 31, SlaveNeedsColdStart = 32, SlaveNeedsInit = 33, SlaveNeedsPreOp = 34, SlaveNeedsSafeOp = 35, InvalidInputMapping = 36, InvalidOutputMapping = 37, InconsistentSettings = 38, FreerunNotSupported = 39, SynchronisationNotSupported = 40, FreerunNeeds3BufferMode = 41, BackgroundWatchdog = 42, NovalidInputsAndOutputs = 43, FatalSyncError = 44, NoSyncError = 45, InvalidInputFmmuConfiguration = 46, InvalidDcSyncConfiguration = 48, InvalidDcLatchConfiguration = 49, PllError = 50, DcSyncIoError = 51, DcSyncTimeoutError = 52, DcInvalidSyncCycleTime = 53, DcInvalidSync0CycleTime = 54, DcInvalidSync1CycleTime = 55, MbxAoe = 65, MbxEoe = 66, MbxCoe = 67, MbxFoe = 68, MbxSoe = 69, MbcVoe = 79, EepromNoAccess = 80, EeepromError = 81, SlaveRestartedLocally = 96, DeviceIdValueUpdated = 97, ApplicationControllerAvailable = 240, Unknown = 65_535,
}
Expand description

AL status code

Variants§

§

NoError = 0

No error

§

UnspecifiedError = 1

Unspecified error

§

NoMemory = 2

No memory,

§

InvalidRequestedStateChange = 17

Invalid requested state change“ },

§

UnknownRequestedState = 18

Unknown requested state,

§

BootstrapNotSupported = 19

Bootstrap not supported

§

NoValidFirmware = 20

No Valid Firmware

§

InvalidMailboxConfig = 21

Invalid mailbox configuration

First value as defined in ethercatprint.c.

§

InvalidMailboxConfig2 = 22

Invalid mailbox configuration

Second value as defined in ethercatprint.c.

§

InvalidSyncManagerConfiguration = 23

Invalid sync manager configuration

§

NoValidInputsAvailable = 24

No valid inputs available

§

NoValidOutputs = 25

No valid outputs

§

SynchronizationError = 26

Synchronization error

§

SyncManagerWatchdog = 27

Sync manager watchdog

§

InvalidSyncManagerTypes = 28

Invalid sync Manager types,

§

InvalidOutputConfiguration = 29

Invalid output configuration

§

InvalidInputConfiguration = 30

Invalid input configuration

§

InvalidWatchdogConfiguration = 31

Invalid watchdog configuration

§

SlaveNeedsColdStart = 32

Slave needs cold start

§

SlaveNeedsInit = 33

Slave needs INIT

§

SlaveNeedsPreOp = 34

Slave needs PREOP

§

SlaveNeedsSafeOp = 35

Slave needs SAFEOP

§

InvalidInputMapping = 36

Invalid input mapping

§

InvalidOutputMapping = 37

Invalid output mapping

§

InconsistentSettings = 38

Inconsistent settings

§

FreerunNotSupported = 39

Freerun not supported

§

SynchronisationNotSupported = 40

Synchronisation not supported

§

FreerunNeeds3BufferMode = 41

Freerun needs 3buffer mode

§

BackgroundWatchdog = 42

Background watchdog

§

NovalidInputsAndOutputs = 43

No valid Inputs and Outputs

§

FatalSyncError = 44

Fatal sync error

§

NoSyncError = 45

No sync error

§

InvalidInputFmmuConfiguration = 46

Invalid input FMMU configuration

§

InvalidDcSyncConfiguration = 48

Invalid DC SYNC configuration

§

InvalidDcLatchConfiguration = 49

Invalid DC latch configuration

§

PllError = 50

PLL error

§

DcSyncIoError = 51

DC sync IO error

§

DcSyncTimeoutError = 52

DC sync timeout error

§

DcInvalidSyncCycleTime = 53

DC invalid sync cycle time

§

DcInvalidSync0CycleTime = 54

DC invalid sync0 cycle time

§

DcInvalidSync1CycleTime = 55

DC invalid sync1 cycle time

§

MbxAoe = 65

MBX_AOE

§

MbxEoe = 66

MBX_EOE

§

MbxCoe = 67

MBX_COE

§

MbxFoe = 68

MBX_FOE

§

MbxSoe = 69

MBX_SOE

§

MbcVoe = 79

MBX_VOE

§

EepromNoAccess = 80

EEPROM no access

§

EeepromError = 81

EEPROM error

§

SlaveRestartedLocally = 96

Slave restarted locally

§

DeviceIdValueUpdated = 97

Device identification value updated

§

ApplicationControllerAvailable = 240

Application controller available

§

Unknown = 65_535

Unknown

Trait Implementations§

Source§

impl Clone for AlStatus

Source§

fn clone(&self) -> AlStatus

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AlStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<u16> for AlStatus

Source§

fn from(code: u16) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for AlStatus

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl PartialEq for AlStatus

Source§

fn eq(&self, other: &AlStatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AlStatus

Source§

impl Eq for AlStatus

Source§

impl StructuralPartialEq for AlStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.