#[non_exhaustive]pub enum Error {
Show 15 variants
BadLength,
Overflow,
ObjectNotFound,
InvalidNodeId,
ReadOnly,
WriteOnly,
TypeMismatch,
DictionaryFull,
UnsupportedTransfer,
UnexpectedCommand,
UnknownState,
PdoTooLong,
MappingFull,
InvalidSyncCounter,
ToggleMismatch,
}Expand description
Errors surfaced by the canopen-rs core.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadLength
A frame or buffer was too short or too long for the operation.
Overflow
A value did not fit the target CANopen data type.
ObjectNotFound
No object exists at the requested (index, subindex).
InvalidNodeId
A node id outside the valid 1..=127 range was supplied.
ReadOnly
Attempt to write an object that is not writable.
WriteOnly
Attempt to read an object that is not readable.
TypeMismatch
A value’s data type did not match the object’s data type.
DictionaryFull
The object dictionary’s fixed capacity is exhausted.
UnsupportedTransfer
The value cannot be carried by the chosen transfer (e.g. a value larger than four bytes attempted over expedited SDO).
UnexpectedCommand
A received frame’s command byte was not the expected response.
UnknownState
A heartbeat frame carried an unrecognised NMT state value.
PdoTooLong
A PDO’s mapped objects total more than eight bytes (64 bits).
MappingFull
A PDO mapping’s fixed capacity is exhausted.
InvalidSyncCounter
A SYNC counter overflow value outside 0 or 2..=240.
ToggleMismatch
An SDO segment’s toggle bit did not alternate as required.