资源简介
Nmodbus的开源库,已经用到项目上,可以用!
代码片段和文件信息
namespace FtdAdapter
{
///
/// Provides information about an attached FTDI USB device.
///
public struct FtdDeviceInfo
{
private readonly uint _flags;
private readonly uint _id;
private readonly string _serialNumber;
private readonly uint _type;
private readonly uint _locationId;
private readonly string _description;
internal FtdDeviceInfo(uint flags uint type uint id uint locationId string serialNumber string description)
{
_flags = flags;
_type = type;
_id = id;
_locationId = locationId;
_serialNumber = serialNumber;
_description = description;
}
///
/// Complete device ID comprising Vendor ID and Product ID.
///
public uint Id
{
get { return _id; }
}
///
/// Vendor ID.
///
public uint VendorId
{
get { return (_id >> 16) & 0xFFFF; }
}
///
/// Product ID
///
public uint ProductId
{
get { return _id & 0xFFFF; }
}
///
/// Serial number of device.
///
public string SerialNumber
{
get { return _serialNumber; }
}
///
/// Device flags.
///
public uint Flags
{
get { return _flags; }
}
///
/// Device type.
///
public uint Type
{
get { return _type; }
}
///
/// LocID
///
public uint LocationId
{
get { return _locationId; }
}
///
/// Description of device.
///
public string Description
{
get { return _description; }
}
///
/// Gets a value indicating if the device is already open.
///
public bool IsOpen
{
get { return (_flags & 0x01) != 0; }
}
///
/// Implements the operator ==.
///
/// The left.
/// The right.
/// The result of the operator.
public static bool operator ==(FtdDeviceInfo left FtdDeviceInfo right)
{
return left.Equals(right);
}
///
/// Implements the operator !=.
///
/// The left.
/// The right.
/// The result of the operator.
public static bool operator !=(FtdDeviceInfo left FtdDeviceInfo right)
{
return !left.Equals(right);
}
///
/// Indicates whether this instance and a specified object are equal.
///
/// Another object to compare to.
///
/// true if and this instance are the same type and represent the same value; otherwise false.
///
public override bool Equals(object obj)
{
if (!(obj is FtdDeviceInfo))
return false;
FtdDeviceInfo other = (FtdDeviceInfo) obj
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 225280 2009-04-14 10:00 source\lib\log4net\Compactfr
文件 1188664 2009-04-14 10:00 source\lib\log4net\Compactfr
文件 270336 2009-04-14 10:00 source\lib\log4net\log4net.dll
文件 1365508 2009-04-14 10:00 source\lib\log4net\log4net.xm
文件 19456 2009-04-19 23:22 source\lib\Unme\Compactfr
文件 14860 2009-04-19 23:22 source\lib\Unme\Compactfr
文件 21504 2009-04-07 14:01 source\lib\Unme\Unme.Common.dll
文件 17026 2009-04-07 14:01 source\lib\Unme\Unme.Common.xm
文件 4608 2009-04-02 11:35 source\lib\Unme\Unme.MbUnit.fr
文件 202048 2009-04-02 11:35 source\lib\FTD2XX.dll
文件 548 2009-05-02 20:27 source\src\FtdAdapter\Properties\AssemblyInfo.cs
文件 4719 2009-04-05 10:15 source\src\FtdAdapter\FtdAdapter.csproj
文件 3648 2009-04-05 15:43 source\src\FtdAdapter\FtdDeviceInfo.cs
文件 2431 2009-04-05 10:29 source\src\FtdAdapter\FtdEnums.cs
文件 12803 2009-04-29 12:11 source\src\FtdAdapter\FtdUsbPort.cs
文件 2075 2009-04-05 10:16 source\src\FtdAdapter\NativeMethods.cs
文件 3145 2009-04-02 13:50 source\src\FtdAdapter\Resources.Designer.cs
文件 5926 2009-04-02 13:50 source\src\FtdAdapter\Resources.resx
文件 4777 2009-04-14 14:21 source\src\Modbus\Data\DataStore.cs
文件 1920 2009-04-02 12:13 source\src\Modbus\Data\DataStoreEventArgs.cs
文件 1756 2009-04-07 14:05 source\src\Modbus\Data\DataStoreFactory.cs
文件 2097 2009-04-02 11:35 source\src\Modbus\Data\DiscreteCollection.cs
文件 568 2009-04-02 12:34 source\src\Modbus\Data\IModbusMessageDataCollection.cs
文件 3991 2009-04-02 11:35 source\src\Modbus\Data\ModbusDataCollection.cs
文件 466 2009-04-02 11:35 source\src\Modbus\Data\ModbusDataType.cs
文件 2144 2009-04-02 11:35 source\src\Modbus\Data\RegisterCollection.cs
文件 4408 2009-04-02 11:35 source\src\Modbus\Device\IModbusMaster.cs
文件 813 2009-04-02 11:35 source\src\Modbus\Device\IModbusSerialMaster.cs
文件 1090 2009-04-19 19:59 source\src\Modbus\Device\ModbusDevice.cs
文件 6500 2009-04-29 12:11 source\src\Modbus\Device\ModbusIpMaster.cs
文件 8970 2009-04-29 12:11 source\src\Modbus\Device\ModbusMaster.cs
............此处省略187个文件信息
- 上一篇:Taucs-大型稀疏矩阵计算库
- 下一篇:snort 教程
评论
共有 条评论