#[repr(u16)]
pub enum AlStatusCode {
Show 54 variants NoError = 0, UnspecifiedError = 1, NoMemory = 2, InvalidDeviceSetup = 3, CompatibilityReserved = 5, InvalidRequestedStateChange = 17, UnknownRequestedState = 18, BootstrapNotSupported = 19, NoValidFirmware = 20, InvalidMailboxConfiguration = 21, InvalidMailboxConfiguration2 = 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, SyncModeNotSupported = 40, FreeRunNeeds3BufferMode = 41, BackgroundWatchdog = 42, NoValidInputsAndOutputs = 43, FatalSyncError = 44, NoSyncError = 45, InvalidDcSyncConfiguration = 48, InvalidDcLatchConfiguration = 49, PllError = 50, DcSyncIoError = 51, DcSyncTimeoutError = 52, DcInvalidSyncCycleTime = 53, DcSync0CycleTime = 54, DcSync1CycleTime = 55, MbxAoe = 65, MbxEoe = 66, MbxCoe = 67, MbxFoe = 68, MbxSoe = 69, MbxVoe = 79, EepromNoAccess = 80, EepromError = 81, SlaveRestartedLocally = 96, DeviceIdentificationValueUpdated = 97, ApplicationControllerAvailable = 240, Unknown(u16),
}
Expand description

AL (Application Layer) Status Code.

Defined in ETG1000.6 Table 11.

Variants§

§

NoError = 0

No error

§

UnspecifiedError = 1

Unspecified error

§

NoMemory = 2

No Memory

§

InvalidDeviceSetup = 3

Invalid Device Setup

§

CompatibilityReserved = 5

Reserved due to compatibility reasons

§

InvalidRequestedStateChange = 17

Invalid requested state change

§

UnknownRequestedState = 18

Unknown requested state

§

BootstrapNotSupported = 19

Bootstrap not supported

§

NoValidFirmware = 20

No valid firmware

§

InvalidMailboxConfiguration = 21

Invalid mailbox configuration

§

InvalidMailboxConfiguration2 = 22

Invalid mailbox configuration (second code)

§

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

§

SyncModeNotSupported = 40

SyncMode not supported

§

FreeRunNeeds3BufferMode = 41

FreeRun needs 3 Buffer Mode

§

BackgroundWatchdog = 42

Background Watchdog

§

NoValidInputsAndOutputs = 43

No Valid Inputs and Outputs

§

FatalSyncError = 44

Fatal Sync Error

§

NoSyncError = 45

No Sync Error

§

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

§

DcSync0CycleTime = 54

DC Sync0 Cycle Time

§

DcSync1CycleTime = 55

DC Sync1 Cycle Time

§

MbxAoe = 65

Mailbox AoE

§

MbxEoe = 66

Mailbox EoE

§

MbxCoe = 67

Mailbox CoE

§

MbxFoe = 68

Mailbox FoE

§

MbxSoe = 69

Mailbox SoE

§

MbxVoe = 79

Mailbox VoE

§

EepromNoAccess = 80

EEPROM no access

§

EepromError = 81

EEPROM Error

§

SlaveRestartedLocally = 96

Slave restarted locally

§

DeviceIdentificationValueUpdated = 97

Device Identification value updated

§

ApplicationControllerAvailable = 240

Application controller available

§

Unknown(u16)

Unknown status code.

Trait Implementations§

source§

impl Clone for AlStatusCode

source§

fn clone(&self) -> AlStatusCode

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 AlStatusCode

source§

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

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

impl Display for AlStatusCode

source§

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

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

impl EtherCrabWireRead for AlStatusCode

source§

fn unpack_from_slice(buf: &[u8]) -> Result<Self, WireError>

Unpack this type from the beginning of the given buffer.
source§

impl EtherCrabWireSized for AlStatusCode

source§

const PACKED_LEN: usize = 2usize

Packed size in bytes.
§

type Buffer = [u8; 2]

Used to define an array of the correct length. This type should be an array [u8; N] where N is a fixed value or const generic as per the type this trait is implemented on.
source§

fn buffer() -> Self::Buffer

Create a buffer sized to contain the packed representation of this item.
source§

impl From<AlStatusCode> for u16

source§

fn from(value: AlStatusCode) -> Self

Converts to this type from the input type.
source§

impl From<u16> for AlStatusCode

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl PartialEq for AlStatusCode

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for AlStatusCode

source§

impl Eq for AlStatusCode

source§

impl StructuralPartialEq for AlStatusCode

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> EtherCrabWireReadSized for T