Reason

What was wrong with the answer.

May gain members in a later release: an exhaustive when over it then stops compiling until the new member is handled. An else branch keeps it compiling without handling the new member: that is your choice, and today the compiler warns that such an else is redundant.

Since

1.0.0

Entries

Link copied to clipboard

A status word the step does not handle.

Link copied to clipboard

An answer shorter than a status word (two bytes); seen on chips that return nothing.

Link copied to clipboard

A file answer that could not be put together: too long, empty before the end, or a command the reader could not send.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.