📄 parity.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -