QtCanBus Namespace
QtCanBus 네임스페이스는 QtSerialPort 모듈의 CAN 버스 처리 부분에서 사용되는 몇 가지 공용 열거 형을 제공합니다. 더 보기...
헤더: | #include <QtCanBus> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS SerialBus) target_link_libraries(mytarget PRIVATE Qt6::SerialBus) |
qmake: | QT += serialbus |
이후: | Qt 6.5 |
유형
enum class | DataFormat { SignedInteger, UnsignedInteger, Float, Double, AsciiString } |
enum class | DataSource { Payload, FrameId } |
enum class | MultiplexState { None, MultiplexorSwitch, MultiplexedSignal, SwitchAndSignal } |
enum class | UniqueId { } |
유형 문서
enum class QtCanBus::DataFormat
이 열거형은 가능한 데이터 형식을 나타냅니다. 이 형식은 소스에서 값을 추출하는 방법을 정의합니다.
Constant | 값 | 설명 |
---|---|---|
QtCanBus::DataFormat::SignedInteger | 0 | 신호 값은 부호가 있는 정수입니다. |
QtCanBus::DataFormat::UnsignedInteger | 1 | 신호 값은 부호가 없는 정수입니다. |
QtCanBus::DataFormat::Float | 2 | 신호 값은 실수입니다. |
QtCanBus::DataFormat::Double | 3 | 신호 값이 이중입니다. |
QtCanBus::DataFormat::AsciiString | 4 | 신호 값은 ASCII 문자열입니다. |
enum class QtCanBus::DataSource
이 열거형은 CAN 프레임 내 데이터의 배치를 나타냅니다.
Constant | 값 | 설명 |
---|---|---|
QtCanBus::DataSource::Payload | 0 | 페이로드에서 데이터를 추출합니다. |
QtCanBus::DataSource::FrameId | 1 | 데이터는 프레임 ID에서 추출됩니다. |
enum class QtCanBus::MultiplexState
이 열거형은 신호의 가능한 멀티플렉스 상태를 나타냅니다.
Constant | 값 | 설명 |
---|---|---|
QtCanBus::MultiplexState::None | 0x00 | 이 신호는 멀티플렉싱에 사용되지 않습니다. |
QtCanBus::MultiplexState::MultiplexorSwitch | 0x01 | 이 신호는 멀티플렉서 스위치로 사용되므로 다른 신호는 이 신호의 값에 따라 달라집니다. |
QtCanBus::MultiplexState::MultiplexedSignal | 0x02 | 신호는 일부 스위치에 의해 멀티플렉싱되므로 해당 스위치에 특정 값이 있을 때만 값을 추출할 수 있습니다. |
QtCanBus::MultiplexState::SwitchAndSignal | MultiplexorSwitch | MultiplexedSignal | 신호의 멀티플렉서 스위치에는 이 신호를 사용할 수 있는 값이 있어야 합니다. 사용 시 이 신호는 다른 멀티플렉싱된 신호에 대한 멀티플렉서 스위치 역할도 합니다. |
enum class QtCanBus::UniqueId
CAN 고유 식별자를 나타냅니다. 기본 유형은 quint32입니다.
열거형은 부호 없는 정수로의 암시적 변환을 피하기 위해 사용됩니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.