123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- // // ******************************************************************
- // // /\ /| @File ProtocolRS232Enums.h
- // // \ V/ @Brief
- // // | "") @Author lijinwen, ghz005@uni-trend.com.cn
- // // / | @Creation 2024-05-16
- // // / \\ @Modified 2024-05-16
- // // *(__\_\
- // // ******************************************************************
- #pragma once
- #include "../EdgePulse.h"
- #include "../BaseEnums/DataCheckEnums.h"
- namespace Protocol
- {
- class RS232Enums
- {
- public:
- enum class RS232DecodeEventType: int32_t
- {
- None,
- Start,
- Data,
- Parity,
- };
- enum class DataBitWidth: int32_t
- {
- DataBitWidth_5Bit = 5,
- DataBitWidth_6Bit,
- DataBitWidth_7Bit,
- DataBitWidth_8Bit
- };
- enum class StopBit: int32_t
- {
- StopBit_1bit,
- StopBit_2bit
- };
- enum class BPSList: int32_t
- {
- BPSList_2400,
- BPSList_4800,
- BPSList_9600,
- BPSList_19200,
- BPSList_38400,
- BPSList_57600,
- BPSList_115200,
- BPSList_Custom
- };
- };
- }
|