parity.cs

来自「gsmmodem通讯/手机编程 通讯/手机编程」· CS 代码 · 共 34 行

CS
34
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Tollkuci.GsmModem
{
    /// <summary>
    /// Contains the possible values to be used for the parity of the serial connection.
    /// </summary>
    public enum Parity
    {
        /// <summary>
        /// No parity checks.
        /// </summary>
        None,
        /// <summary>
        /// Use odd parity. This means setting the parity bit so that the sum of bits set is an odd number.
        /// </summary>
        Odd,
        /// <summary>
        /// Use even parity. This means setting the parity bit so that the sum of bits set is an even number.
        /// </summary>
        Even,
        /// <summary>
        /// Always set the parity bit to 1.
        /// </summary>
        Mark,
        /// <summary>
        /// Always set the parity bit to 0.
        /// </summary>
        Space,
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?