Namespaces

Enumerations

enum class Error : int32_t
Name Value Comments
kUnspecified 1u

An unspecified error has occurred. This error type should be
avoided unless the use of a more specific error would be misleading.

If this error is emitted, it is expected that a more descriptive error
will be present in the logs.

Run-time Remediation: Close and re-open the device and attempt to use it.
If the error persists, indicate trouble to a higher level and stop.

kOutboundFrameTooLarge 2u

`SendFrame()` was called with a frame that was larger than what
`GetMaxFrameSize()` indicated to be the maximum frame size.

Note that `MAX_FRAME_SIZE` indicates the largest frame size supported
by this protocol, whereas `GetMaxFrameSize()` returns the largest
frame size supported by the Device.

This error typically indicates a bug or logic-error in the use of the
`fuchsia.lowpan.spinel::Device` protocol.

This error is only emitted via `->OnError()`.

kInboundFrameTooLarge 3u

The remote device tried to send us a frame that was too large.

This error typically indicates either frame corruption or a
misconfiguration of some sort.

Run-time Remediation: The device should be reset and re-initialized.

This error is only emitted via `->OnError()`.

kInboundFrameCorrupt 4u

Garbage-bytes/corruption detected on inbound frame.

This error typically indicates that the connection between
the host and the Spinel device is unreliable. This may be caused
by hardware problems or implementation bugs.

Run-time Remediation: The device should be reset (by sending a
spinel reset frame or by closing and re-opening) and then
re-initialized.

This error is only emitted via `->OnError()`.

kIoError 5u

An I/O error has occurred.

When this error is encountered, the device automatically closes.

Run-time Remediation: Re-open the device and attempt to use it. If
the error persists, indicate trouble to a higher level (for example,
presenting a UI message indicating a malfunction) and stop.

kClosed 6u

This operation cannot be performed while the Spinel device is closed.

This error typically indicates a bug or logic-error in the use of the
`fuchsia.lowpan.spinel::Device` protocol.

This error is only emitted via `->OnError()`.

Defined at line 17 of file fidling/gen/sdk/fidl/fuchsia.lowpan.spinel/fuchsia.lowpan.spinel/cpp/fidl/fuchsia.lowpan.spinel/cpp/common_types.h

Records