mokomoking2501/profinet_master/dcp does not have a README file
pub(all) struct ControlResponseBlock {
failed_option : Byte
failed_suboption : Byte
block_error : Byte
} derive(Eq)pub(all) struct DcpResponse {
frame_id : Int
service_id : Byte
service_type : Byte
xid : Int
source : MacAddress
blocks : Array[ResponseBlock]
} derive(Eq)pub(all) struct DeviceRoleBlock {
block_info : Int
is_device : Bool
is_controller : Bool
is_multidevice : Bool
is_supervisor : Bool
} derive(Eq)pub(all) struct DeviceSummary {
source : MacAddress
station_name : String?
vendor_name : String?
alias_name : String?
vendor_id : Int?
device_id : Int?
device_instance : Int?
oem_vendor_id : Int?
oem_device_id : Int?
ip_address : IPv4Address?
subnet_mask : IPv4Address?
gateway : IPv4Address?
is_device : Bool
is_controller : Bool
is_multidevice : Bool
is_supervisor : Bool
options : Array[DeviceOptionPair]
device_initiative : Int?
control_response : ControlResponseBlock?
} derive(Eq)pub(all) struct GetRequest {
destination : MacAddress
source : MacAddress
xid : Int
blocks : Array[GetBlock]
} derive(Eq)pub(all) struct IPParameterBlock {
is_persistent : Bool
address : IPv4Address
mask : IPv4Address
gateway : IPv4Address
} derive(Eq)pub(all) struct IdentifyRequest {
destination : MacAddress
source : MacAddress
xid : Int
} derive(Eq)pub(all) enum ResponseBlock {
NameOfStation(ResponseNameOfStationBlock)
AliasName(AliasNameBlock)
DeviceVendor(DeviceVendorBlock)
DeviceID(DeviceIDBlock)
DeviceInstance(DeviceInstanceBlock)
OEMDeviceID(OEMDeviceIDBlock)
DeviceRole(DeviceRoleBlock)
DeviceOptions(DeviceOptionsBlock)
IPParameter(ResponseIPParameterBlock)
DeviceInitiative(DeviceInitiativeBlock)
ControlResponse(ControlResponseBlock)
Unknown(option~ : Byte, suboption~ : Byte, payload~ : Bytes)
} derive(Eq)pub(all) struct ResponseIPParameterBlock {
block_info : Int
address : IPv4Address
mask : IPv4Address
gateway : IPv4Address
} derive(Eq)pub(all) enum SetBlock {
NameOfStation(NameOfStationBlock)
IPParameter(IPParameterBlock)
} derive(Eq)pub(all) struct SetRequest {
destination : MacAddress
source : MacAddress
xid : Int
blocks : Array[SetBlock]
} derive(Eq)fn encode_set_ip_request(destination : MacAddress, source : MacAddress, xid : Int, address : IPv4Address, mask : IPv4Address, gateway : IPv4Address, is_persistent? : Bool) -> Bytesfn encode_set_name_request(destination : MacAddress, source : MacAddress, xid : Int, station_name : String, is_persistent? : Bool) -> Bytes