rseip-cip 0.1.0

rseip-cip: common industry protocol
Documentation
// rseip
//
// rseip - EIP&CIP in pure Rust.
// Copyright: 2021, Joylei <leingliu@gmail.com>
// License: MIT

use super::{socket::SocketAddr, Revision};
use rseip_core::String;

/// Identity Object
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct IdentityObject {
    /// encapsulation protocol version supported
    pub protocol_version: u16,
    /// socket addr
    pub socket_addr: SocketAddr,
    /// device manufacturers vendor id
    pub vendor_id: u16,
    /// device type of product
    pub device_type: u16,
    /// product code
    pub product_code: u16,
    /// device revision
    pub revision: Revision,
    /// current status of device
    pub status: u16,
    /// serial number of device
    pub serial_number: u32,
    //pub product_name_len: u8,
    /// short string
    pub product_name: String,
    /// current state of device
    pub state: u8,
}