mokomoking2501/profinet_master/dcp does not have a README file

    DcpParseError

    pub(all) suberror DcpParseError {
    PacketTooShort(Int)
    UnexpectedEtherType(Int)
    TruncatedPayload(expected~ : Int, actual~ : Int)
    TruncatedBlock(at~ : Int, len~ : Int)
    } derive(Eq, ToJson,
    Debug
    )

    AliasNameBlock

    pub(all) struct AliasNameBlock {
    block_info : Int
    value : String
    } derive(Eq)

    ControlResponseBlock

    pub(all) struct ControlResponseBlock {
    failed_option : Byte
    failed_suboption : Byte
    block_error : Byte
    } derive(Eq)

    DcpResponse

    pub(all) struct DcpResponse {
    frame_id : Int
    service_id : Byte
    service_type : Byte
    xid : Int
    source :
    MacAddress

    blocks : Array[ResponseBlock]
    } derive(Eq)

    DeviceIDBlock

    pub(all) struct DeviceIDBlock {
    block_info : Int
    vendor_id : Int
    device_id : Int
    } derive(Eq)

    DeviceInitiativeBlock

    pub(all) struct DeviceInitiativeBlock {
    block_info : Int
    device_initiative : Int
    } derive(Eq)

    DeviceInstanceBlock

    pub(all) struct DeviceInstanceBlock {
    block_info : Int
    value : Int
    } derive(Eq)

    DeviceOptionPair

    pub(all) struct DeviceOptionPair {
    option : Byte
    suboption : Byte
    } derive(Eq)

    DeviceOptionsBlock

    pub(all) struct DeviceOptionsBlock {
    block_info : Int
    options : Array[DeviceOptionPair]
    } derive(Eq)

    DeviceRoleBlock

    pub(all) struct DeviceRoleBlock {
    block_info : Int
    is_device : Bool
    is_controller : Bool
    is_multidevice : Bool
    is_supervisor : Bool
    } derive(Eq)

    DeviceSummary

    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)

    DeviceVendorBlock

    pub(all) struct DeviceVendorBlock {
    block_info : Int
    value : String
    } derive(Eq)

    GetBlock

    pub(all) struct GetBlock {
    option : Byte
    suboption : Byte
    } derive(Eq,
    Debug
    )

    GetRequest

    IdentifyRequest

    NameOfStationBlock

    pub(all) struct NameOfStationBlock {
    is_persistent : Bool
    value : String
    } derive(Eq)

    OEMDeviceIDBlock

    pub(all) struct OEMDeviceIDBlock {
    block_info : Int
    vendor_id : Int
    device_id : Int
    } derive(Eq)

    ResponseBlock

    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)

    ResponseNameOfStationBlock

    pub(all) struct ResponseNameOfStationBlock {
    block_info : Int
    value : String
    } derive(Eq)

    SetBlock

    pub(all) enum SetBlock {
    NameOfStation(NameOfStationBlock)
    IPParameter(IPParameterBlock)
    } derive(Eq)

    SetRequest

    control_response_error_label

    fn control_response_error_label(block_error : Byte) -> String

    dcp_option_all

    let dcp_option_all : Byte

    dcp_option_control

    let dcp_option_control : Byte

    dcp_option_device

    let dcp_option_device : Byte

    dcp_option_dhcp

    let dcp_option_dhcp : Byte

    dcp_option_initiative

    let dcp_option_initiative : Byte

    dcp_option_ip

    let dcp_option_ip : Byte

    dcp_service_id_get

    let dcp_service_id_get : Int

    dcp_service_id_identify

    let dcp_service_id_identify : Int

    dcp_service_id_set

    let dcp_service_id_set : Int

    dcp_service_type_request

    let dcp_service_type_request : Int

    dcp_suboption_all

    let dcp_suboption_all : Byte

    dcp_suboption_control_response

    let dcp_suboption_control_response : Byte

    dcp_suboption_device_alias

    let dcp_suboption_device_alias : Byte

    dcp_suboption_device_id

    let dcp_suboption_device_id : Byte

    dcp_suboption_device_initiative

    let dcp_suboption_device_initiative : Byte

    dcp_suboption_device_instance

    let dcp_suboption_device_instance : Byte

    dcp_suboption_device_oem_id

    let dcp_suboption_device_oem_id : Byte

    dcp_suboption_device_options

    let dcp_suboption_device_options : Byte

    dcp_suboption_device_role

    let dcp_suboption_device_role : Byte

    dcp_suboption_device_vendor

    let dcp_suboption_device_vendor : Byte

    dcp_suboption_full_ip_suite

    let dcp_suboption_full_ip_suite : Byte

    dcp_suboption_ip_parameter

    let dcp_suboption_ip_parameter : Byte

    dcp_suboption_mac_address

    let dcp_suboption_mac_address : Byte

    dcp_suboption_name_of_station

    let dcp_suboption_name_of_station : Byte

    encode_get_request

    fn encode_get_request(request : GetRequest) -> Bytes

    encode_identify_request

    fn encode_identify_request(request : IdentifyRequest) -> Bytes

    encode_set_name_request

    fn encode_set_name_request(destination :
    MacAddress
    , source :
    MacAddress
    , xid : Int, station_name : String, is_persistent? : Bool) -> Bytes

    encode_set_request

    fn encode_set_request(request : SetRequest) -> Bytes

    ether_type_profinet

    let ether_type_profinet : Int

    frame_id_get_set

    let frame_id_get_set : Int

    frame_id_identify_request

    let frame_id_identify_request : Int

    frame_id_identify_response

    let frame_id_identify_response : Int

    parse_get_block_selector

    fn parse_get_block_selector(selector : StringView) -> GetBlock raise
    FrameError

    parse_get_request_blocks

    fn parse_get_request_blocks(selector_text : StringView) -> Array[GetBlock] raise
    FrameError

    parse_response

    fn parse_response(packet : Bytes) -> DcpResponse raise

    response_block_info

    fn response_block_info(block : ResponseBlock) -> Int

    response_block_info_label

    fn response_block_info_label(block_info : Int) -> String

    response_block_name

    fn response_block_name(block : ResponseBlock) -> String

    response_service_type_label

    fn response_service_type_label(service_type : Byte) -> String

    summarize_response

    fn summarize_response(response : DcpResponse) -> DeviceSummary

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io