Lely core libraries 2.3.4
err.hpp File Reference

This header file is part of the I/O library; it contains the C++ CAN bus error definitions. More...

#include <lely/io2/can/err.h>
Include dependency graph for err.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  lely::io::CanState : int {
  ACTIVE = CAN_STATE_ACTIVE , PASSIVE = CAN_STATE_PASSIVE , BUSOFF = CAN_STATE_BUSOFF , SLEEPING = CAN_STATE_SLEEPING ,
  STOPPED = CAN_STATE_STOPPED
}
 The states of a CAN node, depending on the TX/RX error count. More...
 
enum class  lely::io::CanError : int {
  BIT = CAN_ERROR_BIT , STUFF = CAN_ERROR_STUFF , CRC = CAN_ERROR_CRC , FORM = CAN_ERROR_FORM ,
  ACK = CAN_ERROR_ACK , OTHER = CAN_ERROR_OTHER , NONE = 0
}
 The error flags of a CAN bus, which are not mutually exclusive. More...
 

Detailed Description

This header file is part of the I/O library; it contains the C++ CAN bus error definitions.

See also
lely/io2/can/err.h
Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file err.hpp.

Enumeration Type Documentation

◆ CanState

enum class lely::io::CanState : int
strong

The states of a CAN node, depending on the TX/RX error count.

Enumerator
ACTIVE 

The error active state (TX/RX error count < 128).

PASSIVE 

The error passive state (TX/RX error count < 256).

BUSOFF 

The bus off state (TX/RX error count >= 256).

SLEEPING 

The device is in sleep mode.

STOPPED 

The device is stopped.

Definition at line 33 of file err.hpp.

◆ CanError

enum class lely::io::CanError : int
strong

The error flags of a CAN bus, which are not mutually exclusive.

Enumerator
BIT 

A single bit error.

STUFF 

A bit stuffing error.

CRC 

A CRC sequence error.

FORM 

A form error.

ACK 

An acknowledgment error.

OTHER 

One or more other errors.

Definition at line 47 of file err.hpp.