Documentation ¶
Index ¶
- Constants
- Variables
- func AdsConstantsParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsConstants, error)
- func AdsDataTypeArrayInfoParseWithBufferProducer() ...
- func AdsDataTypeKnows(value int8) bool
- func AdsDataTypeTableChildEntryParseWithBufferProducer() ...
- func AdsDataTypeTableEntryParseWithBufferProducer() ...
- func AdsMultiRequestItemParse[T AdsMultiRequestItem](ctx context.Context, theBytes []byte, indexGroup uint32) (T, error)
- func AdsMultiRequestItemParseWithBuffer[T AdsMultiRequestItem](ctx context.Context, readBuffer utils.ReadBuffer, indexGroup uint32) (T, error)
- func AdsMultiRequestItemParseWithBufferProducer[T AdsMultiRequestItem](indexGroup uint32) func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
- func AdsNotificationSampleParseWithBufferProducer() ...
- func AdsStampHeaderParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsStampHeader, error)
- func AdsSymbolTableEntryParseWithBufferProducer() ...
- func AdsTableSizesParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTableSizes, error)
- func AdsTransModeKnows(value uint32) bool
- func AmsNetIdParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsNetId, error)
- func AmsPacketParse[T AmsPacket](ctx context.Context, theBytes []byte) (T, error)
- func AmsPacketParseWithBuffer[T AmsPacket](ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
- func AmsPacketParseWithBufferProducer[T AmsPacket]() func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
- func AmsSerialAcknowledgeFrameParseWithBufferProducer() ...
- func AmsSerialFrameParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialFrame, error)
- func AmsSerialResetFrameParseWithBufferProducer() ...
- func AmsTCPPacketParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsTCPPacket, error)
- func CommandIdKnows(value uint16) bool
- func DataItemParse(ctx context.Context, theBytes []byte, plcValueType api.PlcValueType, ...) (api.PlcValue, error)
- func DataItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, ...) (api.PlcValue, error)
- func DataItemSerialize(value api.PlcValue, plcValueType api.PlcValueType, stringLength int32) ([]byte, error)
- func DataItemSerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer, value api.PlcValue, ...) error
- func DefaultAmsPortsKnows(value uint16) bool
- func NewAdsAddDeviceNotificationRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsAddDeviceNotificationRequest
- func NewAdsAddDeviceNotificationResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsAddDeviceNotificationResponse
- func NewAdsConstants() *_AdsConstants
- func NewAdsDataTypeArrayInfo(lowerBound uint32, numElements uint32) *_AdsDataTypeArrayInfo
- func NewAdsDataTypeTableChildEntry(entryLength uint32, version uint32, hashValue uint32, typeHashValue uint32, ...) *_AdsDataTypeTableChildEntry
- func NewAdsDataTypeTableEntry(entryLength uint32, version uint32, hashValue uint32, typeHashValue uint32, ...) *_AdsDataTypeTableEntry
- func NewAdsDeleteDeviceNotificationRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsDeleteDeviceNotificationRequest
- func NewAdsDeleteDeviceNotificationResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsDeleteDeviceNotificationResponse
- func NewAdsDeviceNotificationRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsDeviceNotificationRequest
- func NewAdsDeviceNotificationResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsDeviceNotificationResponse
- func NewAdsInvalidRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsInvalidRequest
- func NewAdsInvalidResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsInvalidResponse
- func NewAdsMultiRequestItem() *_AdsMultiRequestItem
- func NewAdsMultiRequestItemRead(itemIndexGroup uint32, itemIndexOffset uint32, itemReadLength uint32) *_AdsMultiRequestItemRead
- func NewAdsMultiRequestItemReadWrite(itemIndexGroup uint32, itemIndexOffset uint32, itemReadLength uint32, ...) *_AdsMultiRequestItemReadWrite
- func NewAdsMultiRequestItemWrite(itemIndexGroup uint32, itemIndexOffset uint32, itemWriteLength uint32) *_AdsMultiRequestItemWrite
- func NewAdsNotificationSample(notificationHandle uint32, sampleSize uint32, data []byte) *_AdsNotificationSample
- func NewAdsReadDeviceInfoRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadDeviceInfoRequest
- func NewAdsReadDeviceInfoResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadDeviceInfoResponse
- func NewAdsReadRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadRequest
- func NewAdsReadResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadResponse
- func NewAdsReadStateRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadStateRequest
- func NewAdsReadStateResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadStateResponse
- func NewAdsReadWriteRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadWriteRequest
- func NewAdsReadWriteResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsReadWriteResponse
- func NewAdsStampHeader(timestamp uint64, samples uint32, ...) *_AdsStampHeader
- func NewAdsSymbolTableEntry(entryLength uint32, group uint32, offset uint32, size uint32, dataType uint32, ...) *_AdsSymbolTableEntry
- func NewAdsTableSizes(symbolCount uint32, symbolLength uint32, dataTypeCount uint32, ...) *_AdsTableSizes
- func NewAdsWriteControlRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsWriteControlRequest
- func NewAdsWriteControlResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsWriteControlResponse
- func NewAdsWriteRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsWriteRequest
- func NewAdsWriteResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AdsWriteResponse
- func NewAmsNetId(octet1 uint8, octet2 uint8, octet3 uint8, octet4 uint8, octet5 uint8, ...) *_AmsNetId
- func NewAmsPacket(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_AmsPacket
- func NewAmsSerialAcknowledgeFrame(magicCookie uint16, transmitterAddress int8, receiverAddress int8, ...) *_AmsSerialAcknowledgeFrame
- func NewAmsSerialFrame(magicCookie uint16, transmitterAddress int8, receiverAddress int8, ...) *_AmsSerialFrame
- func NewAmsSerialResetFrame(magicCookie uint16, transmitterAddress int8, receiverAddress int8, ...) *_AmsSerialResetFrame
- func NewAmsTCPPacket(userdata AmsPacket) *_AmsTCPPacket
- func NewErrorResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, ...) *_ErrorResponse
- func ReservedIndexGroupsKnows(value uint32) bool
- func ReturnCodeKnows(value uint32) bool
- func STR_LEN(str string) int
- type AdsAddDeviceNotificationRequest
- type AdsAddDeviceNotificationRequestBuilder
- type AdsAddDeviceNotificationResponse
- type AdsAddDeviceNotificationResponseBuilder
- type AdsConstants
- type AdsConstantsBuilder
- type AdsDataType
- func AdsDataTypeByName(value string) (enum AdsDataType, ok bool)
- func AdsDataTypeByValue(value int8) (enum AdsDataType, ok bool)
- func AdsDataTypeFirstEnumForFieldNumBytes(value uint16) (enum AdsDataType, ok bool)
- func AdsDataTypeFirstEnumForFieldPlcValueType(value api.PlcValueType) (enum AdsDataType, ok bool)
- func AdsDataTypeParse(ctx context.Context, theBytes []byte) (AdsDataType, error)
- func AdsDataTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataType, error)
- func CastAdsDataType(structType any) AdsDataType
- func (m AdsDataType) GetLengthInBits(ctx context.Context) uint16
- func (m AdsDataType) GetLengthInBytes(ctx context.Context) uint16
- func (e AdsDataType) GetNumBytes() uint16
- func (e AdsDataType) GetPlcValueType() api.PlcValueType
- func (e AdsDataType) GetValue() int8
- func (e AdsDataType) NumBytes() uint16
- func (e AdsDataType) PLC4XEnumName() string
- func (e AdsDataType) PlcValueType() api.PlcValueType
- func (e AdsDataType) Serialize() ([]byte, error)
- func (e AdsDataType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e AdsDataType) String() string
- type AdsDataTypeArrayInfo
- type AdsDataTypeArrayInfoBuilder
- type AdsDataTypeTableChildEntry
- func AdsDataTypeTableChildEntryParse(ctx context.Context, theBytes []byte) (AdsDataTypeTableChildEntry, error)
- func AdsDataTypeTableChildEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableChildEntry, error)
- func CastAdsDataTypeTableChildEntry(structType any) AdsDataTypeTableChildEntrydeprecated
- type AdsDataTypeTableChildEntryBuilder
- type AdsDataTypeTableEntry
- func AdsDataTypeTableEntryParse(ctx context.Context, theBytes []byte) (AdsDataTypeTableEntry, error)
- func AdsDataTypeTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableEntry, error)
- func CastAdsDataTypeTableEntry(structType any) AdsDataTypeTableEntrydeprecated
- type AdsDataTypeTableEntryBuilder
- type AdsDeleteDeviceNotificationRequest
- type AdsDeleteDeviceNotificationRequestBuilder
- type AdsDeleteDeviceNotificationResponse
- type AdsDeleteDeviceNotificationResponseBuilder
- type AdsDeviceNotificationRequest
- type AdsDeviceNotificationRequestBuilder
- type AdsDeviceNotificationResponse
- type AdsDeviceNotificationResponseBuilder
- type AdsInvalidRequest
- type AdsInvalidRequestBuilder
- type AdsInvalidResponse
- type AdsInvalidResponseBuilder
- type AdsMultiRequestItem
- type AdsMultiRequestItemBuilder
- type AdsMultiRequestItemContract
- type AdsMultiRequestItemRead
- type AdsMultiRequestItemReadBuilder
- type AdsMultiRequestItemReadWrite
- type AdsMultiRequestItemReadWriteBuilder
- type AdsMultiRequestItemRequirements
- type AdsMultiRequestItemWrite
- type AdsMultiRequestItemWriteBuilder
- type AdsNotificationSample
- func AdsNotificationSampleParse(ctx context.Context, theBytes []byte) (AdsNotificationSample, error)
- func AdsNotificationSampleParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsNotificationSample, error)
- func CastAdsNotificationSample(structType any) AdsNotificationSampledeprecated
- type AdsNotificationSampleBuilder
- type AdsReadDeviceInfoRequest
- type AdsReadDeviceInfoRequestBuilder
- type AdsReadDeviceInfoResponse
- type AdsReadDeviceInfoResponseBuilder
- type AdsReadRequest
- type AdsReadRequestBuilder
- type AdsReadResponse
- type AdsReadResponseBuilder
- type AdsReadStateRequest
- type AdsReadStateRequestBuilder
- type AdsReadStateResponse
- type AdsReadStateResponseBuilder
- type AdsReadWriteRequest
- type AdsReadWriteRequestBuilder
- type AdsReadWriteResponse
- type AdsReadWriteResponseBuilder
- type AdsStampHeader
- type AdsStampHeaderBuilder
- type AdsSymbolTableEntry
- type AdsSymbolTableEntryBuilder
- type AdsTableSizes
- type AdsTableSizesBuilder
- type AdsTransMode
- func AdsTransModeByName(value string) (enum AdsTransMode, ok bool)
- func AdsTransModeByValue(value uint32) (enum AdsTransMode, ok bool)
- func AdsTransModeParse(ctx context.Context, theBytes []byte) (AdsTransMode, error)
- func AdsTransModeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTransMode, error)
- func CastAdsTransMode(structType any) AdsTransMode
- func (m AdsTransMode) GetLengthInBits(ctx context.Context) uint16
- func (m AdsTransMode) GetLengthInBytes(ctx context.Context) uint16
- func (e AdsTransMode) GetValue() uint32
- func (e AdsTransMode) PLC4XEnumName() string
- func (e AdsTransMode) Serialize() ([]byte, error)
- func (e AdsTransMode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e AdsTransMode) String() string
- type AdsWriteControlRequest
- type AdsWriteControlRequestBuilder
- type AdsWriteControlResponse
- type AdsWriteControlResponseBuilder
- type AdsWriteRequest
- type AdsWriteRequestBuilder
- type AdsWriteResponse
- type AdsWriteResponseBuilder
- type AmsNetId
- type AmsNetIdBuilder
- type AmsPacket
- type AmsPacketBuilder
- type AmsPacketContract
- type AmsPacketRequirements
- type AmsSerialAcknowledgeFrame
- func AmsSerialAcknowledgeFrameParse(ctx context.Context, theBytes []byte) (AmsSerialAcknowledgeFrame, error)
- func AmsSerialAcknowledgeFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialAcknowledgeFrame, error)
- func CastAmsSerialAcknowledgeFrame(structType any) AmsSerialAcknowledgeFramedeprecated
- type AmsSerialAcknowledgeFrameBuilder
- type AmsSerialFrame
- type AmsSerialFrameBuilder
- type AmsSerialResetFrame
- type AmsSerialResetFrameBuilder
- type AmsTCPPacket
- type AmsTCPPacketBuilder
- type CommandId
- func CastCommandId(structType any) CommandId
- func CommandIdByName(value string) (enum CommandId, ok bool)
- func CommandIdByValue(value uint16) (enum CommandId, ok bool)
- func CommandIdParse(ctx context.Context, theBytes []byte) (CommandId, error)
- func CommandIdParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (CommandId, error)
- func (m CommandId) GetLengthInBits(ctx context.Context) uint16
- func (m CommandId) GetLengthInBytes(ctx context.Context) uint16
- func (e CommandId) GetValue() uint16
- func (e CommandId) PLC4XEnumName() string
- func (e CommandId) Serialize() ([]byte, error)
- func (e CommandId) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e CommandId) String() string
- type DefaultAmsPorts
- func CastDefaultAmsPorts(structType any) DefaultAmsPorts
- func DefaultAmsPortsByName(value string) (enum DefaultAmsPorts, ok bool)
- func DefaultAmsPortsByValue(value uint16) (enum DefaultAmsPorts, ok bool)
- func DefaultAmsPortsParse(ctx context.Context, theBytes []byte) (DefaultAmsPorts, error)
- func DefaultAmsPortsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DefaultAmsPorts, error)
- func (m DefaultAmsPorts) GetLengthInBits(ctx context.Context) uint16
- func (m DefaultAmsPorts) GetLengthInBytes(ctx context.Context) uint16
- func (e DefaultAmsPorts) GetValue() uint16
- func (e DefaultAmsPorts) PLC4XEnumName() string
- func (e DefaultAmsPorts) Serialize() ([]byte, error)
- func (e DefaultAmsPorts) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e DefaultAmsPorts) String() string
- type ErrorResponse
- type ErrorResponseBuilder
- type IAdsDataType
- type IAdsTransMode
- type ICommandId
- type IDefaultAmsPorts
- type IReservedIndexGroups
- type IReturnCode
- type ReservedIndexGroups
- func CastReservedIndexGroups(structType any) ReservedIndexGroups
- func ReservedIndexGroupsByName(value string) (enum ReservedIndexGroups, ok bool)
- func ReservedIndexGroupsByValue(value uint32) (enum ReservedIndexGroups, ok bool)
- func ReservedIndexGroupsParse(ctx context.Context, theBytes []byte) (ReservedIndexGroups, error)
- func ReservedIndexGroupsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ReservedIndexGroups, error)
- func (m ReservedIndexGroups) GetLengthInBits(ctx context.Context) uint16
- func (m ReservedIndexGroups) GetLengthInBytes(ctx context.Context) uint16
- func (e ReservedIndexGroups) GetValue() uint32
- func (e ReservedIndexGroups) PLC4XEnumName() string
- func (e ReservedIndexGroups) Serialize() ([]byte, error)
- func (e ReservedIndexGroups) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ReservedIndexGroups) String() string
- type ReturnCode
- func CastReturnCode(structType any) ReturnCode
- func ReturnCodeByName(value string) (enum ReturnCode, ok bool)
- func ReturnCodeByValue(value uint32) (enum ReturnCode, ok bool)
- func ReturnCodeParse(ctx context.Context, theBytes []byte) (ReturnCode, error)
- func ReturnCodeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ReturnCode, error)
- func (m ReturnCode) GetLengthInBits(ctx context.Context) uint16
- func (m ReturnCode) GetLengthInBytes(ctx context.Context) uint16
- func (e ReturnCode) GetValue() uint32
- func (e ReturnCode) PLC4XEnumName() string
- func (e ReturnCode) Serialize() ([]byte, error)
- func (e ReturnCode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ReturnCode) String() string
Constants ¶
const AdsConstants_ADSTCPDEFAULTPORT uint16 = uint16(48898)
Constant values.
const AdsDataTypeTableChildEntry_COMMENTTERMINATOR uint8 = 0x00
const AdsDataTypeTableChildEntry_DATATYPENAMETERMINATOR uint8 = 0x00
const AdsDataTypeTableChildEntry_PROPERTYNAMETERMINATOR uint8 = 0x00
Constant values.
const AdsDataTypeTableEntry_COMMENTTERMINATOR uint8 = 0x00
const AdsDataTypeTableEntry_DATATYPENAMETERMINATOR uint8 = 0x00
Constant values.
const AdsDataTypeTableEntry_SIMPLETYPENAMETERMINATOR uint8 = 0x00
const AdsSymbolTableEntry_COMMENTTERMINATOR uint8 = 0x00
const AdsSymbolTableEntry_DATATYPENAMETERMINATOR uint8 = 0x00
const AdsSymbolTableEntry_NAMETERMINATOR uint8 = 0x00
Constant values.
const AmsPacket_ADSCOMMAND bool = bool(true)
const AmsPacket_BROADCAST bool = bool(false)
const AmsPacket_HIGHPRIORITYCOMMAND bool = bool(false)
const AmsPacket_INITCOMMAND bool = bool(false)
Constant values.
const AmsPacket_NORETURN bool = bool(false)
const AmsPacket_SYSTEMCOMMAND bool = bool(false)
const AmsPacket_TIMESTAMPADDED bool = bool(false)
const AmsPacket_UPDCOMMAND bool = bool(false)
Variables ¶
var AdsDataTypeValues []AdsDataType
var AdsTransModeValues []AdsTransMode
var CommandIdValues []CommandId
var DefaultAmsPortsValues []DefaultAmsPorts
var ReservedIndexGroupsValues []ReservedIndexGroups
var ReturnCodeValues []ReturnCode
Functions ¶
func AdsConstantsParseWithBufferProducer ¶
func AdsConstantsParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsConstants, error)
func AdsDataTypeArrayInfoParseWithBufferProducer ¶
func AdsDataTypeArrayInfoParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeArrayInfo, error)
func AdsDataTypeKnows ¶
func AdsDataTypeTableChildEntryParseWithBufferProducer ¶
func AdsDataTypeTableChildEntryParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableChildEntry, error)
func AdsDataTypeTableEntryParseWithBufferProducer ¶
func AdsDataTypeTableEntryParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableEntry, error)
func AdsMultiRequestItemParseWithBuffer ¶
func AdsMultiRequestItemParseWithBuffer[T AdsMultiRequestItem](ctx context.Context, readBuffer utils.ReadBuffer, indexGroup uint32) (T, error)
func AdsMultiRequestItemParseWithBufferProducer ¶
func AdsMultiRequestItemParseWithBufferProducer[T AdsMultiRequestItem](indexGroup uint32) func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
func AdsNotificationSampleParseWithBufferProducer ¶
func AdsNotificationSampleParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsNotificationSample, error)
func AdsStampHeaderParseWithBufferProducer ¶
func AdsStampHeaderParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsStampHeader, error)
func AdsSymbolTableEntryParseWithBufferProducer ¶
func AdsSymbolTableEntryParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsSymbolTableEntry, error)
func AdsTableSizesParseWithBufferProducer ¶
func AdsTableSizesParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTableSizes, error)
func AdsTransModeKnows ¶
func AmsPacketParse ¶
func AmsSerialAcknowledgeFrameParseWithBufferProducer ¶
func AmsSerialAcknowledgeFrameParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialAcknowledgeFrame, error)
func AmsSerialFrameParseWithBufferProducer ¶
func AmsSerialFrameParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialFrame, error)
func AmsSerialResetFrameParseWithBufferProducer ¶
func AmsSerialResetFrameParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialResetFrame, error)
func AmsTCPPacketParseWithBufferProducer ¶
func AmsTCPPacketParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (AmsTCPPacket, error)
func CommandIdKnows ¶
func DataItemParse ¶
func DataItemParseWithBuffer ¶
func DataItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, plcValueType api.PlcValueType, stringLength int32) (api.PlcValue, error)
func DataItemSerialize ¶
func DataItemSerializeWithWriteBuffer ¶
func DataItemSerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer, value api.PlcValue, plcValueType api.PlcValueType, stringLength int32) error
func DefaultAmsPortsKnows ¶
func NewAdsAddDeviceNotificationRequest ¶
func NewAdsAddDeviceNotificationRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, indexGroup uint32, indexOffset uint32, length uint32, transmissionMode AdsTransMode, maxDelayInMs uint32, cycleTimeInMs uint32) *_AdsAddDeviceNotificationRequest
NewAdsAddDeviceNotificationRequest factory function for _AdsAddDeviceNotificationRequest
func NewAdsAddDeviceNotificationResponse ¶
func NewAdsAddDeviceNotificationResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode, notificationHandle uint32) *_AdsAddDeviceNotificationResponse
NewAdsAddDeviceNotificationResponse factory function for _AdsAddDeviceNotificationResponse
func NewAdsConstants ¶
func NewAdsConstants() *_AdsConstants
NewAdsConstants factory function for _AdsConstants
func NewAdsDataTypeArrayInfo ¶
NewAdsDataTypeArrayInfo factory function for _AdsDataTypeArrayInfo
func NewAdsDataTypeTableChildEntry ¶
func NewAdsDataTypeTableChildEntry(entryLength uint32, version uint32, hashValue uint32, typeHashValue uint32, size uint32, offset uint32, dataType uint32, flags uint32, arrayDimensions uint16, numChildren uint16, propertyName string, dataTypeName string, comment string, arrayInfo []AdsDataTypeArrayInfo, children []AdsDataTypeTableEntry, rest []byte) *_AdsDataTypeTableChildEntry
NewAdsDataTypeTableChildEntry factory function for _AdsDataTypeTableChildEntry
func NewAdsDataTypeTableEntry ¶
func NewAdsDataTypeTableEntry(entryLength uint32, version uint32, hashValue uint32, typeHashValue uint32, size uint32, offset uint32, dataType uint32, flags uint32, arrayDimensions uint16, numChildren uint16, dataTypeName string, simpleTypeName string, comment string, arrayInfo []AdsDataTypeArrayInfo, children []AdsDataTypeTableChildEntry, rest []byte) *_AdsDataTypeTableEntry
NewAdsDataTypeTableEntry factory function for _AdsDataTypeTableEntry
func NewAdsDeleteDeviceNotificationRequest ¶
func NewAdsDeleteDeviceNotificationRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, notificationHandle uint32) *_AdsDeleteDeviceNotificationRequest
NewAdsDeleteDeviceNotificationRequest factory function for _AdsDeleteDeviceNotificationRequest
func NewAdsDeleteDeviceNotificationResponse ¶
func NewAdsDeleteDeviceNotificationResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode) *_AdsDeleteDeviceNotificationResponse
NewAdsDeleteDeviceNotificationResponse factory function for _AdsDeleteDeviceNotificationResponse
func NewAdsDeviceNotificationRequest ¶
func NewAdsDeviceNotificationRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, length uint32, stamps uint32, adsStampHeaders []AdsStampHeader) *_AdsDeviceNotificationRequest
NewAdsDeviceNotificationRequest factory function for _AdsDeviceNotificationRequest
func NewAdsDeviceNotificationResponse ¶
func NewAdsDeviceNotificationResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_AdsDeviceNotificationResponse
NewAdsDeviceNotificationResponse factory function for _AdsDeviceNotificationResponse
func NewAdsInvalidRequest ¶
func NewAdsInvalidRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_AdsInvalidRequest
NewAdsInvalidRequest factory function for _AdsInvalidRequest
func NewAdsInvalidResponse ¶
func NewAdsInvalidResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_AdsInvalidResponse
NewAdsInvalidResponse factory function for _AdsInvalidResponse
func NewAdsMultiRequestItem ¶
func NewAdsMultiRequestItem() *_AdsMultiRequestItem
NewAdsMultiRequestItem factory function for _AdsMultiRequestItem
func NewAdsMultiRequestItemRead ¶
func NewAdsMultiRequestItemRead(itemIndexGroup uint32, itemIndexOffset uint32, itemReadLength uint32) *_AdsMultiRequestItemRead
NewAdsMultiRequestItemRead factory function for _AdsMultiRequestItemRead
func NewAdsMultiRequestItemReadWrite ¶
func NewAdsMultiRequestItemReadWrite(itemIndexGroup uint32, itemIndexOffset uint32, itemReadLength uint32, itemWriteLength uint32) *_AdsMultiRequestItemReadWrite
NewAdsMultiRequestItemReadWrite factory function for _AdsMultiRequestItemReadWrite
func NewAdsMultiRequestItemWrite ¶
func NewAdsMultiRequestItemWrite(itemIndexGroup uint32, itemIndexOffset uint32, itemWriteLength uint32) *_AdsMultiRequestItemWrite
NewAdsMultiRequestItemWrite factory function for _AdsMultiRequestItemWrite
func NewAdsNotificationSample ¶
func NewAdsNotificationSample(notificationHandle uint32, sampleSize uint32, data []byte) *_AdsNotificationSample
NewAdsNotificationSample factory function for _AdsNotificationSample
func NewAdsReadDeviceInfoRequest ¶
func NewAdsReadDeviceInfoRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_AdsReadDeviceInfoRequest
NewAdsReadDeviceInfoRequest factory function for _AdsReadDeviceInfoRequest
func NewAdsReadDeviceInfoResponse ¶
func NewAdsReadDeviceInfoResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode, majorVersion uint8, minorVersion uint8, version uint16, device []byte) *_AdsReadDeviceInfoResponse
NewAdsReadDeviceInfoResponse factory function for _AdsReadDeviceInfoResponse
func NewAdsReadRequest ¶
func NewAdsReadRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, indexGroup uint32, indexOffset uint32, length uint32) *_AdsReadRequest
NewAdsReadRequest factory function for _AdsReadRequest
func NewAdsReadResponse ¶
func NewAdsReadResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode, data []byte) *_AdsReadResponse
NewAdsReadResponse factory function for _AdsReadResponse
func NewAdsReadStateRequest ¶
func NewAdsReadStateRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_AdsReadStateRequest
NewAdsReadStateRequest factory function for _AdsReadStateRequest
func NewAdsReadStateResponse ¶
func NewAdsReadStateResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode, adsState uint16, deviceState uint16) *_AdsReadStateResponse
NewAdsReadStateResponse factory function for _AdsReadStateResponse
func NewAdsReadWriteRequest ¶
func NewAdsReadWriteRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, indexGroup uint32, indexOffset uint32, readLength uint32, items []AdsMultiRequestItem, data []byte) *_AdsReadWriteRequest
NewAdsReadWriteRequest factory function for _AdsReadWriteRequest
func NewAdsReadWriteResponse ¶
func NewAdsReadWriteResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode, data []byte) *_AdsReadWriteResponse
NewAdsReadWriteResponse factory function for _AdsReadWriteResponse
func NewAdsStampHeader ¶
func NewAdsStampHeader(timestamp uint64, samples uint32, adsNotificationSamples []AdsNotificationSample) *_AdsStampHeader
NewAdsStampHeader factory function for _AdsStampHeader
func NewAdsSymbolTableEntry ¶
func NewAdsSymbolTableEntry(entryLength uint32, group uint32, offset uint32, size uint32, dataType uint32, flagMethodDeref bool, flagItfMethodAccess bool, flagReadOnly bool, flagTComInterfacePointer bool, flagTypeGuid bool, flagReferenceTo bool, flagBitValue bool, flagPersistent bool, flagExtendedFlags bool, flagInitOnReset bool, flagStatic bool, flagAttributes bool, flagContextMask bool, name string, dataTypeName string, comment string, rest []byte) *_AdsSymbolTableEntry
NewAdsSymbolTableEntry factory function for _AdsSymbolTableEntry
func NewAdsTableSizes ¶
func NewAdsTableSizes(symbolCount uint32, symbolLength uint32, dataTypeCount uint32, dataTypeLength uint32, extraCount uint32, extraLength uint32) *_AdsTableSizes
NewAdsTableSizes factory function for _AdsTableSizes
func NewAdsWriteControlRequest ¶
func NewAdsWriteControlRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, adsState uint16, deviceState uint16, data []byte) *_AdsWriteControlRequest
NewAdsWriteControlRequest factory function for _AdsWriteControlRequest
func NewAdsWriteControlResponse ¶
func NewAdsWriteControlResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode) *_AdsWriteControlResponse
NewAdsWriteControlResponse factory function for _AdsWriteControlResponse
func NewAdsWriteRequest ¶
func NewAdsWriteRequest(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, indexGroup uint32, indexOffset uint32, data []byte) *_AdsWriteRequest
NewAdsWriteRequest factory function for _AdsWriteRequest
func NewAdsWriteResponse ¶
func NewAdsWriteResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32, result ReturnCode) *_AdsWriteResponse
NewAdsWriteResponse factory function for _AdsWriteResponse
func NewAmsNetId ¶
func NewAmsNetId(octet1 uint8, octet2 uint8, octet3 uint8, octet4 uint8, octet5 uint8, octet6 uint8) *_AmsNetId
NewAmsNetId factory function for _AmsNetId
func NewAmsPacket ¶
func NewAmsPacket(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_AmsPacket
NewAmsPacket factory function for _AmsPacket
func NewAmsSerialAcknowledgeFrame ¶
func NewAmsSerialAcknowledgeFrame(magicCookie uint16, transmitterAddress int8, receiverAddress int8, fragmentNumber int8, length int8, crc uint16) *_AmsSerialAcknowledgeFrame
NewAmsSerialAcknowledgeFrame factory function for _AmsSerialAcknowledgeFrame
func NewAmsSerialFrame ¶
func NewAmsSerialFrame(magicCookie uint16, transmitterAddress int8, receiverAddress int8, fragmentNumber int8, length int8, userdata AmsPacket, crc uint16) *_AmsSerialFrame
NewAmsSerialFrame factory function for _AmsSerialFrame
func NewAmsSerialResetFrame ¶
func NewAmsSerialResetFrame(magicCookie uint16, transmitterAddress int8, receiverAddress int8, fragmentNumber int8, length int8, crc uint16) *_AmsSerialResetFrame
NewAmsSerialResetFrame factory function for _AmsSerialResetFrame
func NewAmsTCPPacket ¶
func NewAmsTCPPacket(userdata AmsPacket) *_AmsTCPPacket
NewAmsTCPPacket factory function for _AmsTCPPacket
func NewErrorResponse ¶
func NewErrorResponse(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) *_ErrorResponse
NewErrorResponse factory function for _ErrorResponse
func ReturnCodeKnows ¶
Types ¶
type AdsAddDeviceNotificationRequest ¶
type AdsAddDeviceNotificationRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetIndexGroup returns IndexGroup (property field) GetIndexGroup() uint32 // GetIndexOffset returns IndexOffset (property field) GetIndexOffset() uint32 // GetLength returns Length (property field) GetLength() uint32 // GetTransmissionMode returns TransmissionMode (property field) GetTransmissionMode() AdsTransMode // GetMaxDelayInMs returns MaxDelayInMs (property field) GetMaxDelayInMs() uint32 // GetCycleTimeInMs returns CycleTimeInMs (property field) GetCycleTimeInMs() uint32 // IsAdsAddDeviceNotificationRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsAddDeviceNotificationRequest() // CreateBuilder creates a AdsAddDeviceNotificationRequestBuilder CreateAdsAddDeviceNotificationRequestBuilder() AdsAddDeviceNotificationRequestBuilder }
AdsAddDeviceNotificationRequest is the corresponding interface of AdsAddDeviceNotificationRequest
func CastAdsAddDeviceNotificationRequest
deprecated
func CastAdsAddDeviceNotificationRequest(structType any) AdsAddDeviceNotificationRequest
Deprecated: use the interface for direct cast
type AdsAddDeviceNotificationRequestBuilder ¶
type AdsAddDeviceNotificationRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(indexGroup uint32, indexOffset uint32, length uint32, transmissionMode AdsTransMode, maxDelayInMs uint32, cycleTimeInMs uint32) AdsAddDeviceNotificationRequestBuilder // WithIndexGroup adds IndexGroup (property field) WithIndexGroup(uint32) AdsAddDeviceNotificationRequestBuilder // WithIndexOffset adds IndexOffset (property field) WithIndexOffset(uint32) AdsAddDeviceNotificationRequestBuilder // WithLength adds Length (property field) WithLength(uint32) AdsAddDeviceNotificationRequestBuilder // WithTransmissionMode adds TransmissionMode (property field) WithTransmissionMode(AdsTransMode) AdsAddDeviceNotificationRequestBuilder // WithMaxDelayInMs adds MaxDelayInMs (property field) WithMaxDelayInMs(uint32) AdsAddDeviceNotificationRequestBuilder // WithCycleTimeInMs adds CycleTimeInMs (property field) WithCycleTimeInMs(uint32) AdsAddDeviceNotificationRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsAddDeviceNotificationRequest or returns an error if something is wrong Build() (AdsAddDeviceNotificationRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsAddDeviceNotificationRequest }
AdsAddDeviceNotificationRequestBuilder is a builder for AdsAddDeviceNotificationRequest
func NewAdsAddDeviceNotificationRequestBuilder ¶
func NewAdsAddDeviceNotificationRequestBuilder() AdsAddDeviceNotificationRequestBuilder
NewAdsAddDeviceNotificationRequestBuilder() creates a AdsAddDeviceNotificationRequestBuilder
type AdsAddDeviceNotificationResponse ¶
type AdsAddDeviceNotificationResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // GetNotificationHandle returns NotificationHandle (property field) GetNotificationHandle() uint32 // IsAdsAddDeviceNotificationResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsAddDeviceNotificationResponse() // CreateBuilder creates a AdsAddDeviceNotificationResponseBuilder CreateAdsAddDeviceNotificationResponseBuilder() AdsAddDeviceNotificationResponseBuilder }
AdsAddDeviceNotificationResponse is the corresponding interface of AdsAddDeviceNotificationResponse
func CastAdsAddDeviceNotificationResponse
deprecated
func CastAdsAddDeviceNotificationResponse(structType any) AdsAddDeviceNotificationResponse
Deprecated: use the interface for direct cast
type AdsAddDeviceNotificationResponseBuilder ¶
type AdsAddDeviceNotificationResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode, notificationHandle uint32) AdsAddDeviceNotificationResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsAddDeviceNotificationResponseBuilder // WithNotificationHandle adds NotificationHandle (property field) WithNotificationHandle(uint32) AdsAddDeviceNotificationResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsAddDeviceNotificationResponse or returns an error if something is wrong Build() (AdsAddDeviceNotificationResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsAddDeviceNotificationResponse }
AdsAddDeviceNotificationResponseBuilder is a builder for AdsAddDeviceNotificationResponse
func NewAdsAddDeviceNotificationResponseBuilder ¶
func NewAdsAddDeviceNotificationResponseBuilder() AdsAddDeviceNotificationResponseBuilder
NewAdsAddDeviceNotificationResponseBuilder() creates a AdsAddDeviceNotificationResponseBuilder
type AdsConstants ¶
type AdsConstants interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // IsAdsConstants is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsConstants() // CreateBuilder creates a AdsConstantsBuilder CreateAdsConstantsBuilder() AdsConstantsBuilder }
AdsConstants is the corresponding interface of AdsConstants
func AdsConstantsParse ¶
func AdsConstantsParse(ctx context.Context, theBytes []byte) (AdsConstants, error)
func AdsConstantsParseWithBuffer ¶
func AdsConstantsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsConstants, error)
func CastAdsConstants
deprecated
func CastAdsConstants(structType any) AdsConstants
Deprecated: use the interface for direct cast
type AdsConstantsBuilder ¶
type AdsConstantsBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsConstantsBuilder // Build builds the AdsConstants or returns an error if something is wrong Build() (AdsConstants, error) // MustBuild does the same as Build but panics on error MustBuild() AdsConstants }
AdsConstantsBuilder is a builder for AdsConstants
func NewAdsConstantsBuilder ¶
func NewAdsConstantsBuilder() AdsConstantsBuilder
NewAdsConstantsBuilder() creates a AdsConstantsBuilder
type AdsDataType ¶
type AdsDataType int8
AdsDataType is an enum
const ( AdsDataType_BOOL AdsDataType = 0x01 AdsDataType_BIT AdsDataType = 0x02 AdsDataType_BIT8 AdsDataType = 0x03 AdsDataType_BYTE AdsDataType = 0x04 AdsDataType_BITARR8 AdsDataType = 0x05 AdsDataType_WORD AdsDataType = 0x06 AdsDataType_BITARR16 AdsDataType = 0x07 AdsDataType_DWORD AdsDataType = 0x08 AdsDataType_BITARR32 AdsDataType = 0x09 AdsDataType_SINT AdsDataType = 0x0A AdsDataType_INT8 AdsDataType = 0x0B AdsDataType_USINT AdsDataType = 0x0C AdsDataType_UINT8 AdsDataType = 0x0D AdsDataType_INT AdsDataType = 0x0E AdsDataType_INT16 AdsDataType = 0x0F AdsDataType_UINT AdsDataType = 0x10 AdsDataType_UINT16 AdsDataType = 0x11 AdsDataType_DINT AdsDataType = 0x12 AdsDataType_INT32 AdsDataType = 0x13 AdsDataType_UDINT AdsDataType = 0x14 AdsDataType_UINT32 AdsDataType = 0x15 AdsDataType_LINT AdsDataType = 0x16 AdsDataType_INT64 AdsDataType = 0x17 AdsDataType_ULINT AdsDataType = 0x18 AdsDataType_UINT64 AdsDataType = 0x19 AdsDataType_REAL AdsDataType = 0x1A AdsDataType_FLOAT AdsDataType = 0x1B AdsDataType_LREAL AdsDataType = 0x1C AdsDataType_DOUBLE AdsDataType = 0x1D AdsDataType_CHAR AdsDataType = 0x1E AdsDataType_WCHAR AdsDataType = 0x1F AdsDataType_STRING AdsDataType = 0x20 AdsDataType_WSTRING AdsDataType = 0x21 AdsDataType_TIME AdsDataType = 0x22 AdsDataType_LTIME AdsDataType = 0x23 AdsDataType_DATE AdsDataType = 0x24 AdsDataType_TIME_OF_DAY AdsDataType = 0x25 AdsDataType_TOD AdsDataType = 0x26 AdsDataType_DATE_AND_TIME AdsDataType = 0x27 AdsDataType_DT AdsDataType = 0x28 )
func AdsDataTypeByName ¶
func AdsDataTypeByName(value string) (enum AdsDataType, ok bool)
func AdsDataTypeByValue ¶
func AdsDataTypeByValue(value int8) (enum AdsDataType, ok bool)
func AdsDataTypeFirstEnumForFieldNumBytes ¶
func AdsDataTypeFirstEnumForFieldNumBytes(value uint16) (enum AdsDataType, ok bool)
func AdsDataTypeFirstEnumForFieldPlcValueType ¶
func AdsDataTypeFirstEnumForFieldPlcValueType(value api.PlcValueType) (enum AdsDataType, ok bool)
func AdsDataTypeParse ¶
func AdsDataTypeParse(ctx context.Context, theBytes []byte) (AdsDataType, error)
func AdsDataTypeParseWithBuffer ¶
func AdsDataTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataType, error)
func CastAdsDataType ¶
func CastAdsDataType(structType any) AdsDataType
func (AdsDataType) GetLengthInBits ¶
func (m AdsDataType) GetLengthInBits(ctx context.Context) uint16
func (AdsDataType) GetLengthInBytes ¶
func (m AdsDataType) GetLengthInBytes(ctx context.Context) uint16
func (AdsDataType) GetNumBytes ¶
func (e AdsDataType) GetNumBytes() uint16
func (AdsDataType) GetPlcValueType ¶
func (e AdsDataType) GetPlcValueType() api.PlcValueType
func (AdsDataType) GetValue ¶
func (e AdsDataType) GetValue() int8
func (AdsDataType) NumBytes ¶
func (e AdsDataType) NumBytes() uint16
func (AdsDataType) PLC4XEnumName ¶
func (e AdsDataType) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (AdsDataType) PlcValueType ¶
func (e AdsDataType) PlcValueType() api.PlcValueType
func (AdsDataType) Serialize ¶
func (e AdsDataType) Serialize() ([]byte, error)
func (AdsDataType) SerializeWithWriteBuffer ¶
func (e AdsDataType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (AdsDataType) String ¶
func (e AdsDataType) String() string
type AdsDataTypeArrayInfo ¶
type AdsDataTypeArrayInfo interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetLowerBound returns LowerBound (property field) GetLowerBound() uint32 // GetNumElements returns NumElements (property field) GetNumElements() uint32 // GetUpperBound returns UpperBound (virtual field) GetUpperBound() uint32 // IsAdsDataTypeArrayInfo is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDataTypeArrayInfo() // CreateBuilder creates a AdsDataTypeArrayInfoBuilder CreateAdsDataTypeArrayInfoBuilder() AdsDataTypeArrayInfoBuilder }
AdsDataTypeArrayInfo is the corresponding interface of AdsDataTypeArrayInfo
func AdsDataTypeArrayInfoParse ¶
func AdsDataTypeArrayInfoParse(ctx context.Context, theBytes []byte) (AdsDataTypeArrayInfo, error)
func AdsDataTypeArrayInfoParseWithBuffer ¶
func AdsDataTypeArrayInfoParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeArrayInfo, error)
func CastAdsDataTypeArrayInfo
deprecated
func CastAdsDataTypeArrayInfo(structType any) AdsDataTypeArrayInfo
Deprecated: use the interface for direct cast
type AdsDataTypeArrayInfoBuilder ¶
type AdsDataTypeArrayInfoBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(lowerBound uint32, numElements uint32) AdsDataTypeArrayInfoBuilder // WithLowerBound adds LowerBound (property field) WithLowerBound(uint32) AdsDataTypeArrayInfoBuilder // WithNumElements adds NumElements (property field) WithNumElements(uint32) AdsDataTypeArrayInfoBuilder // Build builds the AdsDataTypeArrayInfo or returns an error if something is wrong Build() (AdsDataTypeArrayInfo, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDataTypeArrayInfo }
AdsDataTypeArrayInfoBuilder is a builder for AdsDataTypeArrayInfo
func NewAdsDataTypeArrayInfoBuilder ¶
func NewAdsDataTypeArrayInfoBuilder() AdsDataTypeArrayInfoBuilder
NewAdsDataTypeArrayInfoBuilder() creates a AdsDataTypeArrayInfoBuilder
type AdsDataTypeTableChildEntry ¶
type AdsDataTypeTableChildEntry interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetEntryLength returns EntryLength (property field) GetEntryLength() uint32 // GetVersion returns Version (property field) GetVersion() uint32 // GetHashValue returns HashValue (property field) GetHashValue() uint32 // GetTypeHashValue returns TypeHashValue (property field) GetTypeHashValue() uint32 // GetSize returns Size (property field) GetSize() uint32 // GetOffset returns Offset (property field) GetOffset() uint32 // GetDataType returns DataType (property field) GetDataType() uint32 // GetFlags returns Flags (property field) GetFlags() uint32 // GetArrayDimensions returns ArrayDimensions (property field) GetArrayDimensions() uint16 // GetNumChildren returns NumChildren (property field) GetNumChildren() uint16 // GetPropertyName returns PropertyName (property field) GetPropertyName() string // GetDataTypeName returns DataTypeName (property field) GetDataTypeName() string // GetComment returns Comment (property field) GetComment() string // GetArrayInfo returns ArrayInfo (property field) GetArrayInfo() []AdsDataTypeArrayInfo // GetChildren returns Children (property field) GetChildren() []AdsDataTypeTableEntry // GetRest returns Rest (property field) GetRest() []byte // IsAdsDataTypeTableChildEntry is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDataTypeTableChildEntry() // CreateBuilder creates a AdsDataTypeTableChildEntryBuilder CreateAdsDataTypeTableChildEntryBuilder() AdsDataTypeTableChildEntryBuilder }
AdsDataTypeTableChildEntry is the corresponding interface of AdsDataTypeTableChildEntry
func AdsDataTypeTableChildEntryParse ¶
func AdsDataTypeTableChildEntryParse(ctx context.Context, theBytes []byte) (AdsDataTypeTableChildEntry, error)
func AdsDataTypeTableChildEntryParseWithBuffer ¶
func AdsDataTypeTableChildEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableChildEntry, error)
func CastAdsDataTypeTableChildEntry
deprecated
func CastAdsDataTypeTableChildEntry(structType any) AdsDataTypeTableChildEntry
Deprecated: use the interface for direct cast
type AdsDataTypeTableChildEntryBuilder ¶
type AdsDataTypeTableChildEntryBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(entryLength uint32, version uint32, hashValue uint32, typeHashValue uint32, size uint32, offset uint32, dataType uint32, flags uint32, arrayDimensions uint16, numChildren uint16, propertyName string, dataTypeName string, comment string, arrayInfo []AdsDataTypeArrayInfo, children []AdsDataTypeTableEntry, rest []byte) AdsDataTypeTableChildEntryBuilder // WithEntryLength adds EntryLength (property field) WithEntryLength(uint32) AdsDataTypeTableChildEntryBuilder // WithVersion adds Version (property field) WithVersion(uint32) AdsDataTypeTableChildEntryBuilder // WithHashValue adds HashValue (property field) WithHashValue(uint32) AdsDataTypeTableChildEntryBuilder // WithTypeHashValue adds TypeHashValue (property field) WithTypeHashValue(uint32) AdsDataTypeTableChildEntryBuilder // WithSize adds Size (property field) WithSize(uint32) AdsDataTypeTableChildEntryBuilder // WithOffset adds Offset (property field) WithOffset(uint32) AdsDataTypeTableChildEntryBuilder // WithDataType adds DataType (property field) WithDataType(uint32) AdsDataTypeTableChildEntryBuilder // WithFlags adds Flags (property field) WithFlags(uint32) AdsDataTypeTableChildEntryBuilder // WithArrayDimensions adds ArrayDimensions (property field) WithArrayDimensions(uint16) AdsDataTypeTableChildEntryBuilder // WithNumChildren adds NumChildren (property field) WithNumChildren(uint16) AdsDataTypeTableChildEntryBuilder // WithPropertyName adds PropertyName (property field) WithPropertyName(string) AdsDataTypeTableChildEntryBuilder // WithDataTypeName adds DataTypeName (property field) WithDataTypeName(string) AdsDataTypeTableChildEntryBuilder // WithComment adds Comment (property field) WithComment(string) AdsDataTypeTableChildEntryBuilder // WithArrayInfo adds ArrayInfo (property field) WithArrayInfo(...AdsDataTypeArrayInfo) AdsDataTypeTableChildEntryBuilder // WithChildren adds Children (property field) WithChildren(...AdsDataTypeTableEntry) AdsDataTypeTableChildEntryBuilder // WithRest adds Rest (property field) WithRest(...byte) AdsDataTypeTableChildEntryBuilder // Build builds the AdsDataTypeTableChildEntry or returns an error if something is wrong Build() (AdsDataTypeTableChildEntry, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDataTypeTableChildEntry }
AdsDataTypeTableChildEntryBuilder is a builder for AdsDataTypeTableChildEntry
func NewAdsDataTypeTableChildEntryBuilder ¶
func NewAdsDataTypeTableChildEntryBuilder() AdsDataTypeTableChildEntryBuilder
NewAdsDataTypeTableChildEntryBuilder() creates a AdsDataTypeTableChildEntryBuilder
type AdsDataTypeTableEntry ¶
type AdsDataTypeTableEntry interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetEntryLength returns EntryLength (property field) GetEntryLength() uint32 // GetVersion returns Version (property field) GetVersion() uint32 // GetHashValue returns HashValue (property field) GetHashValue() uint32 // GetTypeHashValue returns TypeHashValue (property field) GetTypeHashValue() uint32 // GetSize returns Size (property field) GetSize() uint32 // GetOffset returns Offset (property field) GetOffset() uint32 // GetDataType returns DataType (property field) GetDataType() uint32 // GetFlags returns Flags (property field) GetFlags() uint32 // GetArrayDimensions returns ArrayDimensions (property field) GetArrayDimensions() uint16 // GetNumChildren returns NumChildren (property field) GetNumChildren() uint16 // GetDataTypeName returns DataTypeName (property field) GetDataTypeName() string // GetSimpleTypeName returns SimpleTypeName (property field) GetSimpleTypeName() string // GetComment returns Comment (property field) GetComment() string // GetArrayInfo returns ArrayInfo (property field) GetArrayInfo() []AdsDataTypeArrayInfo // GetChildren returns Children (property field) GetChildren() []AdsDataTypeTableChildEntry // GetRest returns Rest (property field) GetRest() []byte // IsAdsDataTypeTableEntry is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDataTypeTableEntry() // CreateBuilder creates a AdsDataTypeTableEntryBuilder CreateAdsDataTypeTableEntryBuilder() AdsDataTypeTableEntryBuilder }
AdsDataTypeTableEntry is the corresponding interface of AdsDataTypeTableEntry
func AdsDataTypeTableEntryParse ¶
func AdsDataTypeTableEntryParse(ctx context.Context, theBytes []byte) (AdsDataTypeTableEntry, error)
func AdsDataTypeTableEntryParseWithBuffer ¶
func AdsDataTypeTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsDataTypeTableEntry, error)
func CastAdsDataTypeTableEntry
deprecated
func CastAdsDataTypeTableEntry(structType any) AdsDataTypeTableEntry
Deprecated: use the interface for direct cast
type AdsDataTypeTableEntryBuilder ¶
type AdsDataTypeTableEntryBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(entryLength uint32, version uint32, hashValue uint32, typeHashValue uint32, size uint32, offset uint32, dataType uint32, flags uint32, arrayDimensions uint16, numChildren uint16, dataTypeName string, simpleTypeName string, comment string, arrayInfo []AdsDataTypeArrayInfo, children []AdsDataTypeTableChildEntry, rest []byte) AdsDataTypeTableEntryBuilder // WithEntryLength adds EntryLength (property field) WithEntryLength(uint32) AdsDataTypeTableEntryBuilder // WithVersion adds Version (property field) WithVersion(uint32) AdsDataTypeTableEntryBuilder // WithHashValue adds HashValue (property field) WithHashValue(uint32) AdsDataTypeTableEntryBuilder // WithTypeHashValue adds TypeHashValue (property field) WithTypeHashValue(uint32) AdsDataTypeTableEntryBuilder // WithSize adds Size (property field) WithSize(uint32) AdsDataTypeTableEntryBuilder // WithOffset adds Offset (property field) WithOffset(uint32) AdsDataTypeTableEntryBuilder // WithDataType adds DataType (property field) WithDataType(uint32) AdsDataTypeTableEntryBuilder // WithFlags adds Flags (property field) WithFlags(uint32) AdsDataTypeTableEntryBuilder // WithArrayDimensions adds ArrayDimensions (property field) WithArrayDimensions(uint16) AdsDataTypeTableEntryBuilder // WithNumChildren adds NumChildren (property field) WithNumChildren(uint16) AdsDataTypeTableEntryBuilder // WithDataTypeName adds DataTypeName (property field) WithDataTypeName(string) AdsDataTypeTableEntryBuilder // WithSimpleTypeName adds SimpleTypeName (property field) WithSimpleTypeName(string) AdsDataTypeTableEntryBuilder // WithComment adds Comment (property field) WithComment(string) AdsDataTypeTableEntryBuilder // WithArrayInfo adds ArrayInfo (property field) WithArrayInfo(...AdsDataTypeArrayInfo) AdsDataTypeTableEntryBuilder // WithChildren adds Children (property field) WithChildren(...AdsDataTypeTableChildEntry) AdsDataTypeTableEntryBuilder // WithRest adds Rest (property field) WithRest(...byte) AdsDataTypeTableEntryBuilder // Build builds the AdsDataTypeTableEntry or returns an error if something is wrong Build() (AdsDataTypeTableEntry, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDataTypeTableEntry }
AdsDataTypeTableEntryBuilder is a builder for AdsDataTypeTableEntry
func NewAdsDataTypeTableEntryBuilder ¶
func NewAdsDataTypeTableEntryBuilder() AdsDataTypeTableEntryBuilder
NewAdsDataTypeTableEntryBuilder() creates a AdsDataTypeTableEntryBuilder
type AdsDeleteDeviceNotificationRequest ¶
type AdsDeleteDeviceNotificationRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetNotificationHandle returns NotificationHandle (property field) GetNotificationHandle() uint32 // IsAdsDeleteDeviceNotificationRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDeleteDeviceNotificationRequest() // CreateBuilder creates a AdsDeleteDeviceNotificationRequestBuilder CreateAdsDeleteDeviceNotificationRequestBuilder() AdsDeleteDeviceNotificationRequestBuilder }
AdsDeleteDeviceNotificationRequest is the corresponding interface of AdsDeleteDeviceNotificationRequest
func CastAdsDeleteDeviceNotificationRequest
deprecated
func CastAdsDeleteDeviceNotificationRequest(structType any) AdsDeleteDeviceNotificationRequest
Deprecated: use the interface for direct cast
type AdsDeleteDeviceNotificationRequestBuilder ¶
type AdsDeleteDeviceNotificationRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(notificationHandle uint32) AdsDeleteDeviceNotificationRequestBuilder // WithNotificationHandle adds NotificationHandle (property field) WithNotificationHandle(uint32) AdsDeleteDeviceNotificationRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsDeleteDeviceNotificationRequest or returns an error if something is wrong Build() (AdsDeleteDeviceNotificationRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDeleteDeviceNotificationRequest }
AdsDeleteDeviceNotificationRequestBuilder is a builder for AdsDeleteDeviceNotificationRequest
func NewAdsDeleteDeviceNotificationRequestBuilder ¶
func NewAdsDeleteDeviceNotificationRequestBuilder() AdsDeleteDeviceNotificationRequestBuilder
NewAdsDeleteDeviceNotificationRequestBuilder() creates a AdsDeleteDeviceNotificationRequestBuilder
type AdsDeleteDeviceNotificationResponse ¶
type AdsDeleteDeviceNotificationResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // IsAdsDeleteDeviceNotificationResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDeleteDeviceNotificationResponse() // CreateBuilder creates a AdsDeleteDeviceNotificationResponseBuilder CreateAdsDeleteDeviceNotificationResponseBuilder() AdsDeleteDeviceNotificationResponseBuilder }
AdsDeleteDeviceNotificationResponse is the corresponding interface of AdsDeleteDeviceNotificationResponse
func CastAdsDeleteDeviceNotificationResponse
deprecated
func CastAdsDeleteDeviceNotificationResponse(structType any) AdsDeleteDeviceNotificationResponse
Deprecated: use the interface for direct cast
type AdsDeleteDeviceNotificationResponseBuilder ¶
type AdsDeleteDeviceNotificationResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode) AdsDeleteDeviceNotificationResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsDeleteDeviceNotificationResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsDeleteDeviceNotificationResponse or returns an error if something is wrong Build() (AdsDeleteDeviceNotificationResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDeleteDeviceNotificationResponse }
AdsDeleteDeviceNotificationResponseBuilder is a builder for AdsDeleteDeviceNotificationResponse
func NewAdsDeleteDeviceNotificationResponseBuilder ¶
func NewAdsDeleteDeviceNotificationResponseBuilder() AdsDeleteDeviceNotificationResponseBuilder
NewAdsDeleteDeviceNotificationResponseBuilder() creates a AdsDeleteDeviceNotificationResponseBuilder
type AdsDeviceNotificationRequest ¶
type AdsDeviceNotificationRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetLength returns Length (property field) GetLength() uint32 // GetStamps returns Stamps (property field) GetStamps() uint32 // GetAdsStampHeaders returns AdsStampHeaders (property field) GetAdsStampHeaders() []AdsStampHeader // IsAdsDeviceNotificationRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDeviceNotificationRequest() // CreateBuilder creates a AdsDeviceNotificationRequestBuilder CreateAdsDeviceNotificationRequestBuilder() AdsDeviceNotificationRequestBuilder }
AdsDeviceNotificationRequest is the corresponding interface of AdsDeviceNotificationRequest
func CastAdsDeviceNotificationRequest
deprecated
func CastAdsDeviceNotificationRequest(structType any) AdsDeviceNotificationRequest
Deprecated: use the interface for direct cast
type AdsDeviceNotificationRequestBuilder ¶
type AdsDeviceNotificationRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(length uint32, stamps uint32, adsStampHeaders []AdsStampHeader) AdsDeviceNotificationRequestBuilder // WithLength adds Length (property field) WithLength(uint32) AdsDeviceNotificationRequestBuilder // WithStamps adds Stamps (property field) WithStamps(uint32) AdsDeviceNotificationRequestBuilder // WithAdsStampHeaders adds AdsStampHeaders (property field) WithAdsStampHeaders(...AdsStampHeader) AdsDeviceNotificationRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsDeviceNotificationRequest or returns an error if something is wrong Build() (AdsDeviceNotificationRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDeviceNotificationRequest }
AdsDeviceNotificationRequestBuilder is a builder for AdsDeviceNotificationRequest
func NewAdsDeviceNotificationRequestBuilder ¶
func NewAdsDeviceNotificationRequestBuilder() AdsDeviceNotificationRequestBuilder
NewAdsDeviceNotificationRequestBuilder() creates a AdsDeviceNotificationRequestBuilder
type AdsDeviceNotificationResponse ¶
type AdsDeviceNotificationResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // IsAdsDeviceNotificationResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsDeviceNotificationResponse() // CreateBuilder creates a AdsDeviceNotificationResponseBuilder CreateAdsDeviceNotificationResponseBuilder() AdsDeviceNotificationResponseBuilder }
AdsDeviceNotificationResponse is the corresponding interface of AdsDeviceNotificationResponse
func CastAdsDeviceNotificationResponse
deprecated
func CastAdsDeviceNotificationResponse(structType any) AdsDeviceNotificationResponse
Deprecated: use the interface for direct cast
type AdsDeviceNotificationResponseBuilder ¶
type AdsDeviceNotificationResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsDeviceNotificationResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsDeviceNotificationResponse or returns an error if something is wrong Build() (AdsDeviceNotificationResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsDeviceNotificationResponse }
AdsDeviceNotificationResponseBuilder is a builder for AdsDeviceNotificationResponse
func NewAdsDeviceNotificationResponseBuilder ¶
func NewAdsDeviceNotificationResponseBuilder() AdsDeviceNotificationResponseBuilder
NewAdsDeviceNotificationResponseBuilder() creates a AdsDeviceNotificationResponseBuilder
type AdsInvalidRequest ¶
type AdsInvalidRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // IsAdsInvalidRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsInvalidRequest() // CreateBuilder creates a AdsInvalidRequestBuilder CreateAdsInvalidRequestBuilder() AdsInvalidRequestBuilder }
AdsInvalidRequest is the corresponding interface of AdsInvalidRequest
func CastAdsInvalidRequest
deprecated
func CastAdsInvalidRequest(structType any) AdsInvalidRequest
Deprecated: use the interface for direct cast
type AdsInvalidRequestBuilder ¶
type AdsInvalidRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsInvalidRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsInvalidRequest or returns an error if something is wrong Build() (AdsInvalidRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsInvalidRequest }
AdsInvalidRequestBuilder is a builder for AdsInvalidRequest
func NewAdsInvalidRequestBuilder ¶
func NewAdsInvalidRequestBuilder() AdsInvalidRequestBuilder
NewAdsInvalidRequestBuilder() creates a AdsInvalidRequestBuilder
type AdsInvalidResponse ¶
type AdsInvalidResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // IsAdsInvalidResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsInvalidResponse() // CreateBuilder creates a AdsInvalidResponseBuilder CreateAdsInvalidResponseBuilder() AdsInvalidResponseBuilder }
AdsInvalidResponse is the corresponding interface of AdsInvalidResponse
func CastAdsInvalidResponse
deprecated
func CastAdsInvalidResponse(structType any) AdsInvalidResponse
Deprecated: use the interface for direct cast
type AdsInvalidResponseBuilder ¶
type AdsInvalidResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsInvalidResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsInvalidResponse or returns an error if something is wrong Build() (AdsInvalidResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsInvalidResponse }
AdsInvalidResponseBuilder is a builder for AdsInvalidResponse
func NewAdsInvalidResponseBuilder ¶
func NewAdsInvalidResponseBuilder() AdsInvalidResponseBuilder
NewAdsInvalidResponseBuilder() creates a AdsInvalidResponseBuilder
type AdsMultiRequestItem ¶
type AdsMultiRequestItem interface { AdsMultiRequestItemContract AdsMultiRequestItemRequirements fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // IsAdsMultiRequestItem is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsMultiRequestItem() // CreateBuilder creates a AdsMultiRequestItemBuilder CreateAdsMultiRequestItemBuilder() AdsMultiRequestItemBuilder }
AdsMultiRequestItem is the corresponding interface of AdsMultiRequestItem
func CastAdsMultiRequestItem
deprecated
func CastAdsMultiRequestItem(structType any) AdsMultiRequestItem
Deprecated: use the interface for direct cast
type AdsMultiRequestItemBuilder ¶
type AdsMultiRequestItemBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsMultiRequestItemBuilder // AsAdsMultiRequestItemRead converts this build to a subType of AdsMultiRequestItem. It is always possible to return to current builder using Done() AsAdsMultiRequestItemRead() AdsMultiRequestItemReadBuilder // AsAdsMultiRequestItemWrite converts this build to a subType of AdsMultiRequestItem. It is always possible to return to current builder using Done() AsAdsMultiRequestItemWrite() AdsMultiRequestItemWriteBuilder // AsAdsMultiRequestItemReadWrite converts this build to a subType of AdsMultiRequestItem. It is always possible to return to current builder using Done() AsAdsMultiRequestItemReadWrite() AdsMultiRequestItemReadWriteBuilder // Build builds the AdsMultiRequestItem or returns an error if something is wrong PartialBuild() (AdsMultiRequestItemContract, error) // MustBuild does the same as Build but panics on error PartialMustBuild() AdsMultiRequestItemContract // Build builds the AdsMultiRequestItem or returns an error if something is wrong Build() (AdsMultiRequestItem, error) // MustBuild does the same as Build but panics on error MustBuild() AdsMultiRequestItem }
AdsMultiRequestItemBuilder is a builder for AdsMultiRequestItem
func NewAdsMultiRequestItemBuilder ¶
func NewAdsMultiRequestItemBuilder() AdsMultiRequestItemBuilder
NewAdsMultiRequestItemBuilder() creates a AdsMultiRequestItemBuilder
type AdsMultiRequestItemContract ¶
type AdsMultiRequestItemContract interface { // IsAdsMultiRequestItem is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsMultiRequestItem() // CreateBuilder creates a AdsMultiRequestItemBuilder CreateAdsMultiRequestItemBuilder() AdsMultiRequestItemBuilder }
AdsMultiRequestItemContract provides a set of functions which can be overwritten by a sub struct
type AdsMultiRequestItemRead ¶
type AdsMultiRequestItemRead interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AdsMultiRequestItem // GetItemIndexGroup returns ItemIndexGroup (property field) GetItemIndexGroup() uint32 // GetItemIndexOffset returns ItemIndexOffset (property field) GetItemIndexOffset() uint32 // GetItemReadLength returns ItemReadLength (property field) GetItemReadLength() uint32 // IsAdsMultiRequestItemRead is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsMultiRequestItemRead() // CreateBuilder creates a AdsMultiRequestItemReadBuilder CreateAdsMultiRequestItemReadBuilder() AdsMultiRequestItemReadBuilder }
AdsMultiRequestItemRead is the corresponding interface of AdsMultiRequestItemRead
func CastAdsMultiRequestItemRead
deprecated
func CastAdsMultiRequestItemRead(structType any) AdsMultiRequestItemRead
Deprecated: use the interface for direct cast
type AdsMultiRequestItemReadBuilder ¶
type AdsMultiRequestItemReadBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(itemIndexGroup uint32, itemIndexOffset uint32, itemReadLength uint32) AdsMultiRequestItemReadBuilder // WithItemIndexGroup adds ItemIndexGroup (property field) WithItemIndexGroup(uint32) AdsMultiRequestItemReadBuilder // WithItemIndexOffset adds ItemIndexOffset (property field) WithItemIndexOffset(uint32) AdsMultiRequestItemReadBuilder // WithItemReadLength adds ItemReadLength (property field) WithItemReadLength(uint32) AdsMultiRequestItemReadBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AdsMultiRequestItemBuilder // Build builds the AdsMultiRequestItemRead or returns an error if something is wrong Build() (AdsMultiRequestItemRead, error) // MustBuild does the same as Build but panics on error MustBuild() AdsMultiRequestItemRead }
AdsMultiRequestItemReadBuilder is a builder for AdsMultiRequestItemRead
func NewAdsMultiRequestItemReadBuilder ¶
func NewAdsMultiRequestItemReadBuilder() AdsMultiRequestItemReadBuilder
NewAdsMultiRequestItemReadBuilder() creates a AdsMultiRequestItemReadBuilder
type AdsMultiRequestItemReadWrite ¶
type AdsMultiRequestItemReadWrite interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AdsMultiRequestItem // GetItemIndexGroup returns ItemIndexGroup (property field) GetItemIndexGroup() uint32 // GetItemIndexOffset returns ItemIndexOffset (property field) GetItemIndexOffset() uint32 // GetItemReadLength returns ItemReadLength (property field) GetItemReadLength() uint32 // GetItemWriteLength returns ItemWriteLength (property field) GetItemWriteLength() uint32 // IsAdsMultiRequestItemReadWrite is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsMultiRequestItemReadWrite() // CreateBuilder creates a AdsMultiRequestItemReadWriteBuilder CreateAdsMultiRequestItemReadWriteBuilder() AdsMultiRequestItemReadWriteBuilder }
AdsMultiRequestItemReadWrite is the corresponding interface of AdsMultiRequestItemReadWrite
func CastAdsMultiRequestItemReadWrite
deprecated
func CastAdsMultiRequestItemReadWrite(structType any) AdsMultiRequestItemReadWrite
Deprecated: use the interface for direct cast
type AdsMultiRequestItemReadWriteBuilder ¶
type AdsMultiRequestItemReadWriteBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(itemIndexGroup uint32, itemIndexOffset uint32, itemReadLength uint32, itemWriteLength uint32) AdsMultiRequestItemReadWriteBuilder // WithItemIndexGroup adds ItemIndexGroup (property field) WithItemIndexGroup(uint32) AdsMultiRequestItemReadWriteBuilder // WithItemIndexOffset adds ItemIndexOffset (property field) WithItemIndexOffset(uint32) AdsMultiRequestItemReadWriteBuilder // WithItemReadLength adds ItemReadLength (property field) WithItemReadLength(uint32) AdsMultiRequestItemReadWriteBuilder // WithItemWriteLength adds ItemWriteLength (property field) WithItemWriteLength(uint32) AdsMultiRequestItemReadWriteBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AdsMultiRequestItemBuilder // Build builds the AdsMultiRequestItemReadWrite or returns an error if something is wrong Build() (AdsMultiRequestItemReadWrite, error) // MustBuild does the same as Build but panics on error MustBuild() AdsMultiRequestItemReadWrite }
AdsMultiRequestItemReadWriteBuilder is a builder for AdsMultiRequestItemReadWrite
func NewAdsMultiRequestItemReadWriteBuilder ¶
func NewAdsMultiRequestItemReadWriteBuilder() AdsMultiRequestItemReadWriteBuilder
NewAdsMultiRequestItemReadWriteBuilder() creates a AdsMultiRequestItemReadWriteBuilder
type AdsMultiRequestItemRequirements ¶
type AdsMultiRequestItemRequirements interface { GetLengthInBits(ctx context.Context) uint16 GetLengthInBytes(ctx context.Context) uint16 // GetIndexGroup returns IndexGroup (discriminator field) GetIndexGroup() uint32 }
AdsMultiRequestItemRequirements provides a set of functions which need to be implemented by a sub struct
type AdsMultiRequestItemWrite ¶
type AdsMultiRequestItemWrite interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AdsMultiRequestItem // GetItemIndexGroup returns ItemIndexGroup (property field) GetItemIndexGroup() uint32 // GetItemIndexOffset returns ItemIndexOffset (property field) GetItemIndexOffset() uint32 // GetItemWriteLength returns ItemWriteLength (property field) GetItemWriteLength() uint32 // IsAdsMultiRequestItemWrite is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsMultiRequestItemWrite() // CreateBuilder creates a AdsMultiRequestItemWriteBuilder CreateAdsMultiRequestItemWriteBuilder() AdsMultiRequestItemWriteBuilder }
AdsMultiRequestItemWrite is the corresponding interface of AdsMultiRequestItemWrite
func CastAdsMultiRequestItemWrite
deprecated
func CastAdsMultiRequestItemWrite(structType any) AdsMultiRequestItemWrite
Deprecated: use the interface for direct cast
type AdsMultiRequestItemWriteBuilder ¶
type AdsMultiRequestItemWriteBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(itemIndexGroup uint32, itemIndexOffset uint32, itemWriteLength uint32) AdsMultiRequestItemWriteBuilder // WithItemIndexGroup adds ItemIndexGroup (property field) WithItemIndexGroup(uint32) AdsMultiRequestItemWriteBuilder // WithItemIndexOffset adds ItemIndexOffset (property field) WithItemIndexOffset(uint32) AdsMultiRequestItemWriteBuilder // WithItemWriteLength adds ItemWriteLength (property field) WithItemWriteLength(uint32) AdsMultiRequestItemWriteBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AdsMultiRequestItemBuilder // Build builds the AdsMultiRequestItemWrite or returns an error if something is wrong Build() (AdsMultiRequestItemWrite, error) // MustBuild does the same as Build but panics on error MustBuild() AdsMultiRequestItemWrite }
AdsMultiRequestItemWriteBuilder is a builder for AdsMultiRequestItemWrite
func NewAdsMultiRequestItemWriteBuilder ¶
func NewAdsMultiRequestItemWriteBuilder() AdsMultiRequestItemWriteBuilder
NewAdsMultiRequestItemWriteBuilder() creates a AdsMultiRequestItemWriteBuilder
type AdsNotificationSample ¶
type AdsNotificationSample interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetNotificationHandle returns NotificationHandle (property field) GetNotificationHandle() uint32 // GetSampleSize returns SampleSize (property field) GetSampleSize() uint32 // GetData returns Data (property field) GetData() []byte // IsAdsNotificationSample is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsNotificationSample() // CreateBuilder creates a AdsNotificationSampleBuilder CreateAdsNotificationSampleBuilder() AdsNotificationSampleBuilder }
AdsNotificationSample is the corresponding interface of AdsNotificationSample
func AdsNotificationSampleParse ¶
func AdsNotificationSampleParse(ctx context.Context, theBytes []byte) (AdsNotificationSample, error)
func AdsNotificationSampleParseWithBuffer ¶
func AdsNotificationSampleParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsNotificationSample, error)
func CastAdsNotificationSample
deprecated
func CastAdsNotificationSample(structType any) AdsNotificationSample
Deprecated: use the interface for direct cast
type AdsNotificationSampleBuilder ¶
type AdsNotificationSampleBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(notificationHandle uint32, sampleSize uint32, data []byte) AdsNotificationSampleBuilder // WithNotificationHandle adds NotificationHandle (property field) WithNotificationHandle(uint32) AdsNotificationSampleBuilder // WithSampleSize adds SampleSize (property field) WithSampleSize(uint32) AdsNotificationSampleBuilder // WithData adds Data (property field) WithData(...byte) AdsNotificationSampleBuilder // Build builds the AdsNotificationSample or returns an error if something is wrong Build() (AdsNotificationSample, error) // MustBuild does the same as Build but panics on error MustBuild() AdsNotificationSample }
AdsNotificationSampleBuilder is a builder for AdsNotificationSample
func NewAdsNotificationSampleBuilder ¶
func NewAdsNotificationSampleBuilder() AdsNotificationSampleBuilder
NewAdsNotificationSampleBuilder() creates a AdsNotificationSampleBuilder
type AdsReadDeviceInfoRequest ¶
type AdsReadDeviceInfoRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // IsAdsReadDeviceInfoRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadDeviceInfoRequest() // CreateBuilder creates a AdsReadDeviceInfoRequestBuilder CreateAdsReadDeviceInfoRequestBuilder() AdsReadDeviceInfoRequestBuilder }
AdsReadDeviceInfoRequest is the corresponding interface of AdsReadDeviceInfoRequest
func CastAdsReadDeviceInfoRequest
deprecated
func CastAdsReadDeviceInfoRequest(structType any) AdsReadDeviceInfoRequest
Deprecated: use the interface for direct cast
type AdsReadDeviceInfoRequestBuilder ¶
type AdsReadDeviceInfoRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsReadDeviceInfoRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadDeviceInfoRequest or returns an error if something is wrong Build() (AdsReadDeviceInfoRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadDeviceInfoRequest }
AdsReadDeviceInfoRequestBuilder is a builder for AdsReadDeviceInfoRequest
func NewAdsReadDeviceInfoRequestBuilder ¶
func NewAdsReadDeviceInfoRequestBuilder() AdsReadDeviceInfoRequestBuilder
NewAdsReadDeviceInfoRequestBuilder() creates a AdsReadDeviceInfoRequestBuilder
type AdsReadDeviceInfoResponse ¶
type AdsReadDeviceInfoResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // GetMajorVersion returns MajorVersion (property field) GetMajorVersion() uint8 // GetMinorVersion returns MinorVersion (property field) GetMinorVersion() uint8 // GetVersion returns Version (property field) GetVersion() uint16 // GetDevice returns Device (property field) GetDevice() []byte // IsAdsReadDeviceInfoResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadDeviceInfoResponse() // CreateBuilder creates a AdsReadDeviceInfoResponseBuilder CreateAdsReadDeviceInfoResponseBuilder() AdsReadDeviceInfoResponseBuilder }
AdsReadDeviceInfoResponse is the corresponding interface of AdsReadDeviceInfoResponse
func CastAdsReadDeviceInfoResponse
deprecated
func CastAdsReadDeviceInfoResponse(structType any) AdsReadDeviceInfoResponse
Deprecated: use the interface for direct cast
type AdsReadDeviceInfoResponseBuilder ¶
type AdsReadDeviceInfoResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode, majorVersion uint8, minorVersion uint8, version uint16, device []byte) AdsReadDeviceInfoResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsReadDeviceInfoResponseBuilder // WithMajorVersion adds MajorVersion (property field) WithMajorVersion(uint8) AdsReadDeviceInfoResponseBuilder // WithMinorVersion adds MinorVersion (property field) WithMinorVersion(uint8) AdsReadDeviceInfoResponseBuilder // WithVersion adds Version (property field) WithVersion(uint16) AdsReadDeviceInfoResponseBuilder // WithDevice adds Device (property field) WithDevice(...byte) AdsReadDeviceInfoResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadDeviceInfoResponse or returns an error if something is wrong Build() (AdsReadDeviceInfoResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadDeviceInfoResponse }
AdsReadDeviceInfoResponseBuilder is a builder for AdsReadDeviceInfoResponse
func NewAdsReadDeviceInfoResponseBuilder ¶
func NewAdsReadDeviceInfoResponseBuilder() AdsReadDeviceInfoResponseBuilder
NewAdsReadDeviceInfoResponseBuilder() creates a AdsReadDeviceInfoResponseBuilder
type AdsReadRequest ¶
type AdsReadRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetIndexGroup returns IndexGroup (property field) GetIndexGroup() uint32 // GetIndexOffset returns IndexOffset (property field) GetIndexOffset() uint32 // GetLength returns Length (property field) GetLength() uint32 // IsAdsReadRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadRequest() // CreateBuilder creates a AdsReadRequestBuilder CreateAdsReadRequestBuilder() AdsReadRequestBuilder }
AdsReadRequest is the corresponding interface of AdsReadRequest
func CastAdsReadRequest
deprecated
func CastAdsReadRequest(structType any) AdsReadRequest
Deprecated: use the interface for direct cast
type AdsReadRequestBuilder ¶
type AdsReadRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(indexGroup uint32, indexOffset uint32, length uint32) AdsReadRequestBuilder // WithIndexGroup adds IndexGroup (property field) WithIndexGroup(uint32) AdsReadRequestBuilder // WithIndexOffset adds IndexOffset (property field) WithIndexOffset(uint32) AdsReadRequestBuilder // WithLength adds Length (property field) WithLength(uint32) AdsReadRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadRequest or returns an error if something is wrong Build() (AdsReadRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadRequest }
AdsReadRequestBuilder is a builder for AdsReadRequest
func NewAdsReadRequestBuilder ¶
func NewAdsReadRequestBuilder() AdsReadRequestBuilder
NewAdsReadRequestBuilder() creates a AdsReadRequestBuilder
type AdsReadResponse ¶
type AdsReadResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // GetData returns Data (property field) GetData() []byte // IsAdsReadResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadResponse() // CreateBuilder creates a AdsReadResponseBuilder CreateAdsReadResponseBuilder() AdsReadResponseBuilder }
AdsReadResponse is the corresponding interface of AdsReadResponse
func CastAdsReadResponse
deprecated
func CastAdsReadResponse(structType any) AdsReadResponse
Deprecated: use the interface for direct cast
type AdsReadResponseBuilder ¶
type AdsReadResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode, data []byte) AdsReadResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsReadResponseBuilder // WithData adds Data (property field) WithData(...byte) AdsReadResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadResponse or returns an error if something is wrong Build() (AdsReadResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadResponse }
AdsReadResponseBuilder is a builder for AdsReadResponse
func NewAdsReadResponseBuilder ¶
func NewAdsReadResponseBuilder() AdsReadResponseBuilder
NewAdsReadResponseBuilder() creates a AdsReadResponseBuilder
type AdsReadStateRequest ¶
type AdsReadStateRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // IsAdsReadStateRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadStateRequest() // CreateBuilder creates a AdsReadStateRequestBuilder CreateAdsReadStateRequestBuilder() AdsReadStateRequestBuilder }
AdsReadStateRequest is the corresponding interface of AdsReadStateRequest
func CastAdsReadStateRequest
deprecated
func CastAdsReadStateRequest(structType any) AdsReadStateRequest
Deprecated: use the interface for direct cast
type AdsReadStateRequestBuilder ¶
type AdsReadStateRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() AdsReadStateRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadStateRequest or returns an error if something is wrong Build() (AdsReadStateRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadStateRequest }
AdsReadStateRequestBuilder is a builder for AdsReadStateRequest
func NewAdsReadStateRequestBuilder ¶
func NewAdsReadStateRequestBuilder() AdsReadStateRequestBuilder
NewAdsReadStateRequestBuilder() creates a AdsReadStateRequestBuilder
type AdsReadStateResponse ¶
type AdsReadStateResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // GetAdsState returns AdsState (property field) GetAdsState() uint16 // GetDeviceState returns DeviceState (property field) GetDeviceState() uint16 // IsAdsReadStateResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadStateResponse() // CreateBuilder creates a AdsReadStateResponseBuilder CreateAdsReadStateResponseBuilder() AdsReadStateResponseBuilder }
AdsReadStateResponse is the corresponding interface of AdsReadStateResponse
func CastAdsReadStateResponse
deprecated
func CastAdsReadStateResponse(structType any) AdsReadStateResponse
Deprecated: use the interface for direct cast
type AdsReadStateResponseBuilder ¶
type AdsReadStateResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode, adsState uint16, deviceState uint16) AdsReadStateResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsReadStateResponseBuilder // WithAdsState adds AdsState (property field) WithAdsState(uint16) AdsReadStateResponseBuilder // WithDeviceState adds DeviceState (property field) WithDeviceState(uint16) AdsReadStateResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadStateResponse or returns an error if something is wrong Build() (AdsReadStateResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadStateResponse }
AdsReadStateResponseBuilder is a builder for AdsReadStateResponse
func NewAdsReadStateResponseBuilder ¶
func NewAdsReadStateResponseBuilder() AdsReadStateResponseBuilder
NewAdsReadStateResponseBuilder() creates a AdsReadStateResponseBuilder
type AdsReadWriteRequest ¶
type AdsReadWriteRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetIndexGroup returns IndexGroup (property field) GetIndexGroup() uint32 // GetIndexOffset returns IndexOffset (property field) GetIndexOffset() uint32 // GetReadLength returns ReadLength (property field) GetReadLength() uint32 // GetItems returns Items (property field) GetItems() []AdsMultiRequestItem // GetData returns Data (property field) GetData() []byte // IsAdsReadWriteRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadWriteRequest() // CreateBuilder creates a AdsReadWriteRequestBuilder CreateAdsReadWriteRequestBuilder() AdsReadWriteRequestBuilder }
AdsReadWriteRequest is the corresponding interface of AdsReadWriteRequest
func CastAdsReadWriteRequest
deprecated
func CastAdsReadWriteRequest(structType any) AdsReadWriteRequest
Deprecated: use the interface for direct cast
type AdsReadWriteRequestBuilder ¶
type AdsReadWriteRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(indexGroup uint32, indexOffset uint32, readLength uint32, items []AdsMultiRequestItem, data []byte) AdsReadWriteRequestBuilder // WithIndexGroup adds IndexGroup (property field) WithIndexGroup(uint32) AdsReadWriteRequestBuilder // WithIndexOffset adds IndexOffset (property field) WithIndexOffset(uint32) AdsReadWriteRequestBuilder // WithReadLength adds ReadLength (property field) WithReadLength(uint32) AdsReadWriteRequestBuilder // WithItems adds Items (property field) WithItems(...AdsMultiRequestItem) AdsReadWriteRequestBuilder // WithData adds Data (property field) WithData(...byte) AdsReadWriteRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadWriteRequest or returns an error if something is wrong Build() (AdsReadWriteRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadWriteRequest }
AdsReadWriteRequestBuilder is a builder for AdsReadWriteRequest
func NewAdsReadWriteRequestBuilder ¶
func NewAdsReadWriteRequestBuilder() AdsReadWriteRequestBuilder
NewAdsReadWriteRequestBuilder() creates a AdsReadWriteRequestBuilder
type AdsReadWriteResponse ¶
type AdsReadWriteResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // GetData returns Data (property field) GetData() []byte // IsAdsReadWriteResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsReadWriteResponse() // CreateBuilder creates a AdsReadWriteResponseBuilder CreateAdsReadWriteResponseBuilder() AdsReadWriteResponseBuilder }
AdsReadWriteResponse is the corresponding interface of AdsReadWriteResponse
func CastAdsReadWriteResponse
deprecated
func CastAdsReadWriteResponse(structType any) AdsReadWriteResponse
Deprecated: use the interface for direct cast
type AdsReadWriteResponseBuilder ¶
type AdsReadWriteResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode, data []byte) AdsReadWriteResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsReadWriteResponseBuilder // WithData adds Data (property field) WithData(...byte) AdsReadWriteResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsReadWriteResponse or returns an error if something is wrong Build() (AdsReadWriteResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsReadWriteResponse }
AdsReadWriteResponseBuilder is a builder for AdsReadWriteResponse
func NewAdsReadWriteResponseBuilder ¶
func NewAdsReadWriteResponseBuilder() AdsReadWriteResponseBuilder
NewAdsReadWriteResponseBuilder() creates a AdsReadWriteResponseBuilder
type AdsStampHeader ¶
type AdsStampHeader interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetTimestamp returns Timestamp (property field) GetTimestamp() uint64 // GetSamples returns Samples (property field) GetSamples() uint32 // GetAdsNotificationSamples returns AdsNotificationSamples (property field) GetAdsNotificationSamples() []AdsNotificationSample // IsAdsStampHeader is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsStampHeader() // CreateBuilder creates a AdsStampHeaderBuilder CreateAdsStampHeaderBuilder() AdsStampHeaderBuilder }
AdsStampHeader is the corresponding interface of AdsStampHeader
func AdsStampHeaderParse ¶
func AdsStampHeaderParse(ctx context.Context, theBytes []byte) (AdsStampHeader, error)
func AdsStampHeaderParseWithBuffer ¶
func AdsStampHeaderParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsStampHeader, error)
func CastAdsStampHeader
deprecated
func CastAdsStampHeader(structType any) AdsStampHeader
Deprecated: use the interface for direct cast
type AdsStampHeaderBuilder ¶
type AdsStampHeaderBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(timestamp uint64, samples uint32, adsNotificationSamples []AdsNotificationSample) AdsStampHeaderBuilder // WithTimestamp adds Timestamp (property field) WithTimestamp(uint64) AdsStampHeaderBuilder // WithSamples adds Samples (property field) WithSamples(uint32) AdsStampHeaderBuilder // WithAdsNotificationSamples adds AdsNotificationSamples (property field) WithAdsNotificationSamples(...AdsNotificationSample) AdsStampHeaderBuilder // Build builds the AdsStampHeader or returns an error if something is wrong Build() (AdsStampHeader, error) // MustBuild does the same as Build but panics on error MustBuild() AdsStampHeader }
AdsStampHeaderBuilder is a builder for AdsStampHeader
func NewAdsStampHeaderBuilder ¶
func NewAdsStampHeaderBuilder() AdsStampHeaderBuilder
NewAdsStampHeaderBuilder() creates a AdsStampHeaderBuilder
type AdsSymbolTableEntry ¶
type AdsSymbolTableEntry interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetEntryLength returns EntryLength (property field) GetEntryLength() uint32 // GetGroup returns Group (property field) GetGroup() uint32 // GetOffset returns Offset (property field) GetOffset() uint32 // GetSize returns Size (property field) GetSize() uint32 // GetDataType returns DataType (property field) GetDataType() uint32 // GetFlagMethodDeref returns FlagMethodDeref (property field) GetFlagMethodDeref() bool // GetFlagItfMethodAccess returns FlagItfMethodAccess (property field) GetFlagItfMethodAccess() bool // GetFlagReadOnly returns FlagReadOnly (property field) GetFlagReadOnly() bool // GetFlagTComInterfacePointer returns FlagTComInterfacePointer (property field) GetFlagTComInterfacePointer() bool // GetFlagTypeGuid returns FlagTypeGuid (property field) GetFlagTypeGuid() bool // GetFlagReferenceTo returns FlagReferenceTo (property field) GetFlagReferenceTo() bool // GetFlagBitValue returns FlagBitValue (property field) GetFlagBitValue() bool // GetFlagPersistent returns FlagPersistent (property field) GetFlagPersistent() bool // GetFlagExtendedFlags returns FlagExtendedFlags (property field) GetFlagExtendedFlags() bool // GetFlagInitOnReset returns FlagInitOnReset (property field) GetFlagInitOnReset() bool // GetFlagStatic returns FlagStatic (property field) GetFlagStatic() bool // GetFlagAttributes returns FlagAttributes (property field) GetFlagAttributes() bool // GetFlagContextMask returns FlagContextMask (property field) GetFlagContextMask() bool // GetName returns Name (property field) GetName() string // GetDataTypeName returns DataTypeName (property field) GetDataTypeName() string // GetComment returns Comment (property field) GetComment() string // GetRest returns Rest (property field) GetRest() []byte // IsAdsSymbolTableEntry is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsSymbolTableEntry() // CreateBuilder creates a AdsSymbolTableEntryBuilder CreateAdsSymbolTableEntryBuilder() AdsSymbolTableEntryBuilder }
AdsSymbolTableEntry is the corresponding interface of AdsSymbolTableEntry
func AdsSymbolTableEntryParse ¶
func AdsSymbolTableEntryParse(ctx context.Context, theBytes []byte) (AdsSymbolTableEntry, error)
func AdsSymbolTableEntryParseWithBuffer ¶
func AdsSymbolTableEntryParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsSymbolTableEntry, error)
func CastAdsSymbolTableEntry
deprecated
func CastAdsSymbolTableEntry(structType any) AdsSymbolTableEntry
Deprecated: use the interface for direct cast
type AdsSymbolTableEntryBuilder ¶
type AdsSymbolTableEntryBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(entryLength uint32, group uint32, offset uint32, size uint32, dataType uint32, flagMethodDeref bool, flagItfMethodAccess bool, flagReadOnly bool, flagTComInterfacePointer bool, flagTypeGuid bool, flagReferenceTo bool, flagBitValue bool, flagPersistent bool, flagExtendedFlags bool, flagInitOnReset bool, flagStatic bool, flagAttributes bool, flagContextMask bool, name string, dataTypeName string, comment string, rest []byte) AdsSymbolTableEntryBuilder // WithEntryLength adds EntryLength (property field) WithEntryLength(uint32) AdsSymbolTableEntryBuilder // WithGroup adds Group (property field) WithGroup(uint32) AdsSymbolTableEntryBuilder // WithOffset adds Offset (property field) WithOffset(uint32) AdsSymbolTableEntryBuilder // WithSize adds Size (property field) WithSize(uint32) AdsSymbolTableEntryBuilder // WithDataType adds DataType (property field) WithDataType(uint32) AdsSymbolTableEntryBuilder // WithFlagMethodDeref adds FlagMethodDeref (property field) WithFlagMethodDeref(bool) AdsSymbolTableEntryBuilder // WithFlagItfMethodAccess adds FlagItfMethodAccess (property field) WithFlagItfMethodAccess(bool) AdsSymbolTableEntryBuilder // WithFlagReadOnly adds FlagReadOnly (property field) WithFlagReadOnly(bool) AdsSymbolTableEntryBuilder // WithFlagTComInterfacePointer adds FlagTComInterfacePointer (property field) WithFlagTComInterfacePointer(bool) AdsSymbolTableEntryBuilder // WithFlagTypeGuid adds FlagTypeGuid (property field) WithFlagTypeGuid(bool) AdsSymbolTableEntryBuilder // WithFlagReferenceTo adds FlagReferenceTo (property field) WithFlagReferenceTo(bool) AdsSymbolTableEntryBuilder // WithFlagBitValue adds FlagBitValue (property field) WithFlagBitValue(bool) AdsSymbolTableEntryBuilder // WithFlagPersistent adds FlagPersistent (property field) WithFlagPersistent(bool) AdsSymbolTableEntryBuilder // WithFlagExtendedFlags adds FlagExtendedFlags (property field) WithFlagExtendedFlags(bool) AdsSymbolTableEntryBuilder // WithFlagInitOnReset adds FlagInitOnReset (property field) WithFlagInitOnReset(bool) AdsSymbolTableEntryBuilder // WithFlagStatic adds FlagStatic (property field) WithFlagStatic(bool) AdsSymbolTableEntryBuilder // WithFlagAttributes adds FlagAttributes (property field) WithFlagAttributes(bool) AdsSymbolTableEntryBuilder // WithFlagContextMask adds FlagContextMask (property field) WithFlagContextMask(bool) AdsSymbolTableEntryBuilder // WithName adds Name (property field) WithName(string) AdsSymbolTableEntryBuilder // WithDataTypeName adds DataTypeName (property field) WithDataTypeName(string) AdsSymbolTableEntryBuilder // WithComment adds Comment (property field) WithComment(string) AdsSymbolTableEntryBuilder // WithRest adds Rest (property field) WithRest(...byte) AdsSymbolTableEntryBuilder // Build builds the AdsSymbolTableEntry or returns an error if something is wrong Build() (AdsSymbolTableEntry, error) // MustBuild does the same as Build but panics on error MustBuild() AdsSymbolTableEntry }
AdsSymbolTableEntryBuilder is a builder for AdsSymbolTableEntry
func NewAdsSymbolTableEntryBuilder ¶
func NewAdsSymbolTableEntryBuilder() AdsSymbolTableEntryBuilder
NewAdsSymbolTableEntryBuilder() creates a AdsSymbolTableEntryBuilder
type AdsTableSizes ¶
type AdsTableSizes interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetSymbolCount returns SymbolCount (property field) GetSymbolCount() uint32 // GetSymbolLength returns SymbolLength (property field) GetSymbolLength() uint32 // GetDataTypeCount returns DataTypeCount (property field) GetDataTypeCount() uint32 // GetDataTypeLength returns DataTypeLength (property field) GetDataTypeLength() uint32 // GetExtraCount returns ExtraCount (property field) GetExtraCount() uint32 // GetExtraLength returns ExtraLength (property field) GetExtraLength() uint32 // IsAdsTableSizes is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsTableSizes() // CreateBuilder creates a AdsTableSizesBuilder CreateAdsTableSizesBuilder() AdsTableSizesBuilder }
AdsTableSizes is the corresponding interface of AdsTableSizes
func AdsTableSizesParse ¶
func AdsTableSizesParse(ctx context.Context, theBytes []byte) (AdsTableSizes, error)
func AdsTableSizesParseWithBuffer ¶
func AdsTableSizesParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTableSizes, error)
func CastAdsTableSizes
deprecated
func CastAdsTableSizes(structType any) AdsTableSizes
Deprecated: use the interface for direct cast
type AdsTableSizesBuilder ¶
type AdsTableSizesBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(symbolCount uint32, symbolLength uint32, dataTypeCount uint32, dataTypeLength uint32, extraCount uint32, extraLength uint32) AdsTableSizesBuilder // WithSymbolCount adds SymbolCount (property field) WithSymbolCount(uint32) AdsTableSizesBuilder // WithSymbolLength adds SymbolLength (property field) WithSymbolLength(uint32) AdsTableSizesBuilder // WithDataTypeCount adds DataTypeCount (property field) WithDataTypeCount(uint32) AdsTableSizesBuilder // WithDataTypeLength adds DataTypeLength (property field) WithDataTypeLength(uint32) AdsTableSizesBuilder // WithExtraCount adds ExtraCount (property field) WithExtraCount(uint32) AdsTableSizesBuilder // WithExtraLength adds ExtraLength (property field) WithExtraLength(uint32) AdsTableSizesBuilder // Build builds the AdsTableSizes or returns an error if something is wrong Build() (AdsTableSizes, error) // MustBuild does the same as Build but panics on error MustBuild() AdsTableSizes }
AdsTableSizesBuilder is a builder for AdsTableSizes
func NewAdsTableSizesBuilder ¶
func NewAdsTableSizesBuilder() AdsTableSizesBuilder
NewAdsTableSizesBuilder() creates a AdsTableSizesBuilder
type AdsTransMode ¶
type AdsTransMode uint32
AdsTransMode is an enum
const ( AdsTransMode_NONE AdsTransMode = 0 AdsTransMode_CLIENT_CYCLE AdsTransMode = 1 AdsTransMode_CLIENT_ON_CHANGE AdsTransMode = 2 AdsTransMode_CYCLIC AdsTransMode = 3 AdsTransMode_ON_CHANGE AdsTransMode = 4 AdsTransMode_CYCLIC_IN_CONTEXT AdsTransMode = 5 AdsTransMode_ON_CHANGE_IN_CONTEXT AdsTransMode = 6 )
func AdsTransModeByName ¶
func AdsTransModeByName(value string) (enum AdsTransMode, ok bool)
func AdsTransModeByValue ¶
func AdsTransModeByValue(value uint32) (enum AdsTransMode, ok bool)
func AdsTransModeParse ¶
func AdsTransModeParse(ctx context.Context, theBytes []byte) (AdsTransMode, error)
func AdsTransModeParseWithBuffer ¶
func AdsTransModeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AdsTransMode, error)
func CastAdsTransMode ¶
func CastAdsTransMode(structType any) AdsTransMode
func (AdsTransMode) GetLengthInBits ¶
func (m AdsTransMode) GetLengthInBits(ctx context.Context) uint16
func (AdsTransMode) GetLengthInBytes ¶
func (m AdsTransMode) GetLengthInBytes(ctx context.Context) uint16
func (AdsTransMode) GetValue ¶
func (e AdsTransMode) GetValue() uint32
func (AdsTransMode) PLC4XEnumName ¶
func (e AdsTransMode) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (AdsTransMode) Serialize ¶
func (e AdsTransMode) Serialize() ([]byte, error)
func (AdsTransMode) SerializeWithWriteBuffer ¶
func (e AdsTransMode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (AdsTransMode) String ¶
func (e AdsTransMode) String() string
type AdsWriteControlRequest ¶
type AdsWriteControlRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetAdsState returns AdsState (property field) GetAdsState() uint16 // GetDeviceState returns DeviceState (property field) GetDeviceState() uint16 // GetData returns Data (property field) GetData() []byte // IsAdsWriteControlRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsWriteControlRequest() // CreateBuilder creates a AdsWriteControlRequestBuilder CreateAdsWriteControlRequestBuilder() AdsWriteControlRequestBuilder }
AdsWriteControlRequest is the corresponding interface of AdsWriteControlRequest
func CastAdsWriteControlRequest
deprecated
func CastAdsWriteControlRequest(structType any) AdsWriteControlRequest
Deprecated: use the interface for direct cast
type AdsWriteControlRequestBuilder ¶
type AdsWriteControlRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(adsState uint16, deviceState uint16, data []byte) AdsWriteControlRequestBuilder // WithAdsState adds AdsState (property field) WithAdsState(uint16) AdsWriteControlRequestBuilder // WithDeviceState adds DeviceState (property field) WithDeviceState(uint16) AdsWriteControlRequestBuilder // WithData adds Data (property field) WithData(...byte) AdsWriteControlRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsWriteControlRequest or returns an error if something is wrong Build() (AdsWriteControlRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsWriteControlRequest }
AdsWriteControlRequestBuilder is a builder for AdsWriteControlRequest
func NewAdsWriteControlRequestBuilder ¶
func NewAdsWriteControlRequestBuilder() AdsWriteControlRequestBuilder
NewAdsWriteControlRequestBuilder() creates a AdsWriteControlRequestBuilder
type AdsWriteControlResponse ¶
type AdsWriteControlResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // IsAdsWriteControlResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsWriteControlResponse() // CreateBuilder creates a AdsWriteControlResponseBuilder CreateAdsWriteControlResponseBuilder() AdsWriteControlResponseBuilder }
AdsWriteControlResponse is the corresponding interface of AdsWriteControlResponse
func CastAdsWriteControlResponse
deprecated
func CastAdsWriteControlResponse(structType any) AdsWriteControlResponse
Deprecated: use the interface for direct cast
type AdsWriteControlResponseBuilder ¶
type AdsWriteControlResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode) AdsWriteControlResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsWriteControlResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsWriteControlResponse or returns an error if something is wrong Build() (AdsWriteControlResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsWriteControlResponse }
AdsWriteControlResponseBuilder is a builder for AdsWriteControlResponse
func NewAdsWriteControlResponseBuilder ¶
func NewAdsWriteControlResponseBuilder() AdsWriteControlResponseBuilder
NewAdsWriteControlResponseBuilder() creates a AdsWriteControlResponseBuilder
type AdsWriteRequest ¶
type AdsWriteRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetIndexGroup returns IndexGroup (property field) GetIndexGroup() uint32 // GetIndexOffset returns IndexOffset (property field) GetIndexOffset() uint32 // GetData returns Data (property field) GetData() []byte // IsAdsWriteRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsWriteRequest() // CreateBuilder creates a AdsWriteRequestBuilder CreateAdsWriteRequestBuilder() AdsWriteRequestBuilder }
AdsWriteRequest is the corresponding interface of AdsWriteRequest
func CastAdsWriteRequest
deprecated
func CastAdsWriteRequest(structType any) AdsWriteRequest
Deprecated: use the interface for direct cast
type AdsWriteRequestBuilder ¶
type AdsWriteRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(indexGroup uint32, indexOffset uint32, data []byte) AdsWriteRequestBuilder // WithIndexGroup adds IndexGroup (property field) WithIndexGroup(uint32) AdsWriteRequestBuilder // WithIndexOffset adds IndexOffset (property field) WithIndexOffset(uint32) AdsWriteRequestBuilder // WithData adds Data (property field) WithData(...byte) AdsWriteRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsWriteRequest or returns an error if something is wrong Build() (AdsWriteRequest, error) // MustBuild does the same as Build but panics on error MustBuild() AdsWriteRequest }
AdsWriteRequestBuilder is a builder for AdsWriteRequest
func NewAdsWriteRequestBuilder ¶
func NewAdsWriteRequestBuilder() AdsWriteRequestBuilder
NewAdsWriteRequestBuilder() creates a AdsWriteRequestBuilder
type AdsWriteResponse ¶
type AdsWriteResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // GetResult returns Result (property field) GetResult() ReturnCode // IsAdsWriteResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsAdsWriteResponse() // CreateBuilder creates a AdsWriteResponseBuilder CreateAdsWriteResponseBuilder() AdsWriteResponseBuilder }
AdsWriteResponse is the corresponding interface of AdsWriteResponse
func CastAdsWriteResponse
deprecated
func CastAdsWriteResponse(structType any) AdsWriteResponse
Deprecated: use the interface for direct cast
type AdsWriteResponseBuilder ¶
type AdsWriteResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(result ReturnCode) AdsWriteResponseBuilder // WithResult adds Result (property field) WithResult(ReturnCode) AdsWriteResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the AdsWriteResponse or returns an error if something is wrong Build() (AdsWriteResponse, error) // MustBuild does the same as Build but panics on error MustBuild() AdsWriteResponse }
AdsWriteResponseBuilder is a builder for AdsWriteResponse
func NewAdsWriteResponseBuilder ¶
func NewAdsWriteResponseBuilder() AdsWriteResponseBuilder
NewAdsWriteResponseBuilder() creates a AdsWriteResponseBuilder
type AmsNetId ¶
type AmsNetId interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetOctet1 returns Octet1 (property field) GetOctet1() uint8 // GetOctet2 returns Octet2 (property field) GetOctet2() uint8 // GetOctet3 returns Octet3 (property field) GetOctet3() uint8 // GetOctet4 returns Octet4 (property field) GetOctet4() uint8 // GetOctet5 returns Octet5 (property field) GetOctet5() uint8 // GetOctet6 returns Octet6 (property field) GetOctet6() uint8 // IsAmsNetId is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsNetId() // CreateBuilder creates a AmsNetIdBuilder CreateAmsNetIdBuilder() AmsNetIdBuilder }
AmsNetId is the corresponding interface of AmsNetId
func AmsNetIdParseWithBuffer ¶
func CastAmsNetId
deprecated
type AmsNetIdBuilder ¶
type AmsNetIdBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(octet1 uint8, octet2 uint8, octet3 uint8, octet4 uint8, octet5 uint8, octet6 uint8) AmsNetIdBuilder // WithOctet1 adds Octet1 (property field) WithOctet1(uint8) AmsNetIdBuilder // WithOctet2 adds Octet2 (property field) WithOctet2(uint8) AmsNetIdBuilder // WithOctet3 adds Octet3 (property field) WithOctet3(uint8) AmsNetIdBuilder // WithOctet4 adds Octet4 (property field) WithOctet4(uint8) AmsNetIdBuilder // WithOctet5 adds Octet5 (property field) WithOctet5(uint8) AmsNetIdBuilder // WithOctet6 adds Octet6 (property field) WithOctet6(uint8) AmsNetIdBuilder // Build builds the AmsNetId or returns an error if something is wrong Build() (AmsNetId, error) // MustBuild does the same as Build but panics on error MustBuild() AmsNetId }
AmsNetIdBuilder is a builder for AmsNetId
func NewAmsNetIdBuilder ¶
func NewAmsNetIdBuilder() AmsNetIdBuilder
NewAmsNetIdBuilder() creates a AmsNetIdBuilder
type AmsPacket ¶
type AmsPacket interface { AmsPacketContract AmsPacketRequirements fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // IsAmsPacket is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsPacket() // CreateBuilder creates a AmsPacketBuilder CreateAmsPacketBuilder() AmsPacketBuilder }
AmsPacket is the corresponding interface of AmsPacket
func CastAmsPacket
deprecated
type AmsPacketBuilder ¶
type AmsPacketBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(targetAmsNetId AmsNetId, targetAmsPort uint16, sourceAmsNetId AmsNetId, sourceAmsPort uint16, errorCode uint32, invokeId uint32) AmsPacketBuilder // WithTargetAmsNetId adds TargetAmsNetId (property field) WithTargetAmsNetId(AmsNetId) AmsPacketBuilder // WithTargetAmsNetIdBuilder adds TargetAmsNetId (property field) which is build by the builder WithTargetAmsNetIdBuilder(func(AmsNetIdBuilder) AmsNetIdBuilder) AmsPacketBuilder // WithTargetAmsPort adds TargetAmsPort (property field) WithTargetAmsPort(uint16) AmsPacketBuilder // WithSourceAmsNetId adds SourceAmsNetId (property field) WithSourceAmsNetId(AmsNetId) AmsPacketBuilder // WithSourceAmsNetIdBuilder adds SourceAmsNetId (property field) which is build by the builder WithSourceAmsNetIdBuilder(func(AmsNetIdBuilder) AmsNetIdBuilder) AmsPacketBuilder // WithSourceAmsPort adds SourceAmsPort (property field) WithSourceAmsPort(uint16) AmsPacketBuilder // WithErrorCode adds ErrorCode (property field) WithErrorCode(uint32) AmsPacketBuilder // WithInvokeId adds InvokeId (property field) WithInvokeId(uint32) AmsPacketBuilder // AsAdsInvalidRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsInvalidRequest() AdsInvalidRequestBuilder // AsAdsInvalidResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsInvalidResponse() AdsInvalidResponseBuilder // AsAdsReadDeviceInfoRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadDeviceInfoRequest() AdsReadDeviceInfoRequestBuilder // AsAdsReadDeviceInfoResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadDeviceInfoResponse() AdsReadDeviceInfoResponseBuilder // AsAdsReadRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadRequest() AdsReadRequestBuilder // AsAdsReadResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadResponse() AdsReadResponseBuilder // AsAdsWriteRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsWriteRequest() AdsWriteRequestBuilder // AsAdsWriteResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsWriteResponse() AdsWriteResponseBuilder // AsAdsReadStateRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadStateRequest() AdsReadStateRequestBuilder // AsAdsReadStateResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadStateResponse() AdsReadStateResponseBuilder // AsAdsWriteControlRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsWriteControlRequest() AdsWriteControlRequestBuilder // AsAdsWriteControlResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsWriteControlResponse() AdsWriteControlResponseBuilder // AsAdsAddDeviceNotificationRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsAddDeviceNotificationRequest() AdsAddDeviceNotificationRequestBuilder // AsAdsAddDeviceNotificationResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsAddDeviceNotificationResponse() AdsAddDeviceNotificationResponseBuilder // AsAdsDeleteDeviceNotificationRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsDeleteDeviceNotificationRequest() AdsDeleteDeviceNotificationRequestBuilder // AsAdsDeleteDeviceNotificationResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsDeleteDeviceNotificationResponse() AdsDeleteDeviceNotificationResponseBuilder // AsAdsDeviceNotificationRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsDeviceNotificationRequest() AdsDeviceNotificationRequestBuilder // AsAdsDeviceNotificationResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsDeviceNotificationResponse() AdsDeviceNotificationResponseBuilder // AsAdsReadWriteRequest converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadWriteRequest() AdsReadWriteRequestBuilder // AsAdsReadWriteResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsAdsReadWriteResponse() AdsReadWriteResponseBuilder // AsErrorResponse converts this build to a subType of AmsPacket. It is always possible to return to current builder using Done() AsErrorResponse() ErrorResponseBuilder // Build builds the AmsPacket or returns an error if something is wrong PartialBuild() (AmsPacketContract, error) // MustBuild does the same as Build but panics on error PartialMustBuild() AmsPacketContract // Build builds the AmsPacket or returns an error if something is wrong Build() (AmsPacket, error) // MustBuild does the same as Build but panics on error MustBuild() AmsPacket }
AmsPacketBuilder is a builder for AmsPacket
func NewAmsPacketBuilder ¶
func NewAmsPacketBuilder() AmsPacketBuilder
NewAmsPacketBuilder() creates a AmsPacketBuilder
type AmsPacketContract ¶
type AmsPacketContract interface { // GetTargetAmsNetId returns TargetAmsNetId (property field) GetTargetAmsNetId() AmsNetId // GetTargetAmsPort returns TargetAmsPort (property field) GetTargetAmsPort() uint16 // GetSourceAmsNetId returns SourceAmsNetId (property field) GetSourceAmsNetId() AmsNetId // GetSourceAmsPort returns SourceAmsPort (property field) GetSourceAmsPort() uint16 // GetErrorCode returns ErrorCode (property field) GetErrorCode() uint32 // GetInvokeId returns InvokeId (property field) GetInvokeId() uint32 // IsAmsPacket is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsPacket() // CreateBuilder creates a AmsPacketBuilder CreateAmsPacketBuilder() AmsPacketBuilder }
AmsPacketContract provides a set of functions which can be overwritten by a sub struct
type AmsPacketRequirements ¶
type AmsPacketRequirements interface { GetLengthInBits(ctx context.Context) uint16 GetLengthInBytes(ctx context.Context) uint16 // GetCommandId returns CommandId (discriminator field) GetCommandId() CommandId // GetErrorCode returns ErrorCode (discriminator field) GetErrorCode() uint32 // GetResponse returns Response (discriminator field) GetResponse() bool }
AmsPacketRequirements provides a set of functions which need to be implemented by a sub struct
type AmsSerialAcknowledgeFrame ¶
type AmsSerialAcknowledgeFrame interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetMagicCookie returns MagicCookie (property field) GetMagicCookie() uint16 // GetTransmitterAddress returns TransmitterAddress (property field) GetTransmitterAddress() int8 // GetReceiverAddress returns ReceiverAddress (property field) GetReceiverAddress() int8 // GetFragmentNumber returns FragmentNumber (property field) GetFragmentNumber() int8 // GetLength returns Length (property field) GetLength() int8 // GetCrc returns Crc (property field) GetCrc() uint16 // IsAmsSerialAcknowledgeFrame is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsSerialAcknowledgeFrame() // CreateBuilder creates a AmsSerialAcknowledgeFrameBuilder CreateAmsSerialAcknowledgeFrameBuilder() AmsSerialAcknowledgeFrameBuilder }
AmsSerialAcknowledgeFrame is the corresponding interface of AmsSerialAcknowledgeFrame
func AmsSerialAcknowledgeFrameParse ¶
func AmsSerialAcknowledgeFrameParse(ctx context.Context, theBytes []byte) (AmsSerialAcknowledgeFrame, error)
func AmsSerialAcknowledgeFrameParseWithBuffer ¶
func AmsSerialAcknowledgeFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialAcknowledgeFrame, error)
func CastAmsSerialAcknowledgeFrame
deprecated
func CastAmsSerialAcknowledgeFrame(structType any) AmsSerialAcknowledgeFrame
Deprecated: use the interface for direct cast
type AmsSerialAcknowledgeFrameBuilder ¶
type AmsSerialAcknowledgeFrameBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(magicCookie uint16, transmitterAddress int8, receiverAddress int8, fragmentNumber int8, length int8, crc uint16) AmsSerialAcknowledgeFrameBuilder // WithMagicCookie adds MagicCookie (property field) WithMagicCookie(uint16) AmsSerialAcknowledgeFrameBuilder // WithTransmitterAddress adds TransmitterAddress (property field) WithTransmitterAddress(int8) AmsSerialAcknowledgeFrameBuilder // WithReceiverAddress adds ReceiverAddress (property field) WithReceiverAddress(int8) AmsSerialAcknowledgeFrameBuilder // WithFragmentNumber adds FragmentNumber (property field) WithFragmentNumber(int8) AmsSerialAcknowledgeFrameBuilder // WithLength adds Length (property field) WithLength(int8) AmsSerialAcknowledgeFrameBuilder // WithCrc adds Crc (property field) WithCrc(uint16) AmsSerialAcknowledgeFrameBuilder // Build builds the AmsSerialAcknowledgeFrame or returns an error if something is wrong Build() (AmsSerialAcknowledgeFrame, error) // MustBuild does the same as Build but panics on error MustBuild() AmsSerialAcknowledgeFrame }
AmsSerialAcknowledgeFrameBuilder is a builder for AmsSerialAcknowledgeFrame
func NewAmsSerialAcknowledgeFrameBuilder ¶
func NewAmsSerialAcknowledgeFrameBuilder() AmsSerialAcknowledgeFrameBuilder
NewAmsSerialAcknowledgeFrameBuilder() creates a AmsSerialAcknowledgeFrameBuilder
type AmsSerialFrame ¶
type AmsSerialFrame interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetMagicCookie returns MagicCookie (property field) GetMagicCookie() uint16 // GetTransmitterAddress returns TransmitterAddress (property field) GetTransmitterAddress() int8 // GetReceiverAddress returns ReceiverAddress (property field) GetReceiverAddress() int8 // GetFragmentNumber returns FragmentNumber (property field) GetFragmentNumber() int8 // GetLength returns Length (property field) GetLength() int8 // GetUserdata returns Userdata (property field) GetUserdata() AmsPacket // GetCrc returns Crc (property field) GetCrc() uint16 // IsAmsSerialFrame is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsSerialFrame() // CreateBuilder creates a AmsSerialFrameBuilder CreateAmsSerialFrameBuilder() AmsSerialFrameBuilder }
AmsSerialFrame is the corresponding interface of AmsSerialFrame
func AmsSerialFrameParse ¶
func AmsSerialFrameParse(ctx context.Context, theBytes []byte) (AmsSerialFrame, error)
func AmsSerialFrameParseWithBuffer ¶
func AmsSerialFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialFrame, error)
func CastAmsSerialFrame
deprecated
func CastAmsSerialFrame(structType any) AmsSerialFrame
Deprecated: use the interface for direct cast
type AmsSerialFrameBuilder ¶
type AmsSerialFrameBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(magicCookie uint16, transmitterAddress int8, receiverAddress int8, fragmentNumber int8, length int8, userdata AmsPacket, crc uint16) AmsSerialFrameBuilder // WithMagicCookie adds MagicCookie (property field) WithMagicCookie(uint16) AmsSerialFrameBuilder // WithTransmitterAddress adds TransmitterAddress (property field) WithTransmitterAddress(int8) AmsSerialFrameBuilder // WithReceiverAddress adds ReceiverAddress (property field) WithReceiverAddress(int8) AmsSerialFrameBuilder // WithFragmentNumber adds FragmentNumber (property field) WithFragmentNumber(int8) AmsSerialFrameBuilder // WithLength adds Length (property field) WithLength(int8) AmsSerialFrameBuilder // WithUserdata adds Userdata (property field) WithUserdata(AmsPacket) AmsSerialFrameBuilder // WithUserdataBuilder adds Userdata (property field) which is build by the builder WithUserdataBuilder(func(AmsPacketBuilder) AmsPacketBuilder) AmsSerialFrameBuilder // WithCrc adds Crc (property field) WithCrc(uint16) AmsSerialFrameBuilder // Build builds the AmsSerialFrame or returns an error if something is wrong Build() (AmsSerialFrame, error) // MustBuild does the same as Build but panics on error MustBuild() AmsSerialFrame }
AmsSerialFrameBuilder is a builder for AmsSerialFrame
func NewAmsSerialFrameBuilder ¶
func NewAmsSerialFrameBuilder() AmsSerialFrameBuilder
NewAmsSerialFrameBuilder() creates a AmsSerialFrameBuilder
type AmsSerialResetFrame ¶
type AmsSerialResetFrame interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetMagicCookie returns MagicCookie (property field) GetMagicCookie() uint16 // GetTransmitterAddress returns TransmitterAddress (property field) GetTransmitterAddress() int8 // GetReceiverAddress returns ReceiverAddress (property field) GetReceiverAddress() int8 // GetFragmentNumber returns FragmentNumber (property field) GetFragmentNumber() int8 // GetLength returns Length (property field) GetLength() int8 // GetCrc returns Crc (property field) GetCrc() uint16 // IsAmsSerialResetFrame is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsSerialResetFrame() // CreateBuilder creates a AmsSerialResetFrameBuilder CreateAmsSerialResetFrameBuilder() AmsSerialResetFrameBuilder }
AmsSerialResetFrame is the corresponding interface of AmsSerialResetFrame
func AmsSerialResetFrameParse ¶
func AmsSerialResetFrameParse(ctx context.Context, theBytes []byte) (AmsSerialResetFrame, error)
func AmsSerialResetFrameParseWithBuffer ¶
func AmsSerialResetFrameParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsSerialResetFrame, error)
func CastAmsSerialResetFrame
deprecated
func CastAmsSerialResetFrame(structType any) AmsSerialResetFrame
Deprecated: use the interface for direct cast
type AmsSerialResetFrameBuilder ¶
type AmsSerialResetFrameBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(magicCookie uint16, transmitterAddress int8, receiverAddress int8, fragmentNumber int8, length int8, crc uint16) AmsSerialResetFrameBuilder // WithMagicCookie adds MagicCookie (property field) WithMagicCookie(uint16) AmsSerialResetFrameBuilder // WithTransmitterAddress adds TransmitterAddress (property field) WithTransmitterAddress(int8) AmsSerialResetFrameBuilder // WithReceiverAddress adds ReceiverAddress (property field) WithReceiverAddress(int8) AmsSerialResetFrameBuilder // WithFragmentNumber adds FragmentNumber (property field) WithFragmentNumber(int8) AmsSerialResetFrameBuilder // WithLength adds Length (property field) WithLength(int8) AmsSerialResetFrameBuilder // WithCrc adds Crc (property field) WithCrc(uint16) AmsSerialResetFrameBuilder // Build builds the AmsSerialResetFrame or returns an error if something is wrong Build() (AmsSerialResetFrame, error) // MustBuild does the same as Build but panics on error MustBuild() AmsSerialResetFrame }
AmsSerialResetFrameBuilder is a builder for AmsSerialResetFrame
func NewAmsSerialResetFrameBuilder ¶
func NewAmsSerialResetFrameBuilder() AmsSerialResetFrameBuilder
NewAmsSerialResetFrameBuilder() creates a AmsSerialResetFrameBuilder
type AmsTCPPacket ¶
type AmsTCPPacket interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetUserdata returns Userdata (property field) GetUserdata() AmsPacket // IsAmsTCPPacket is a marker method to prevent unintentional type checks (interfaces of same signature) IsAmsTCPPacket() // CreateBuilder creates a AmsTCPPacketBuilder CreateAmsTCPPacketBuilder() AmsTCPPacketBuilder }
AmsTCPPacket is the corresponding interface of AmsTCPPacket
func AmsTCPPacketParse ¶
func AmsTCPPacketParse(ctx context.Context, theBytes []byte) (AmsTCPPacket, error)
func AmsTCPPacketParseWithBuffer ¶
func AmsTCPPacketParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (AmsTCPPacket, error)
func CastAmsTCPPacket
deprecated
func CastAmsTCPPacket(structType any) AmsTCPPacket
Deprecated: use the interface for direct cast
type AmsTCPPacketBuilder ¶
type AmsTCPPacketBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(userdata AmsPacket) AmsTCPPacketBuilder // WithUserdata adds Userdata (property field) WithUserdata(AmsPacket) AmsTCPPacketBuilder // WithUserdataBuilder adds Userdata (property field) which is build by the builder WithUserdataBuilder(func(AmsPacketBuilder) AmsPacketBuilder) AmsTCPPacketBuilder // Build builds the AmsTCPPacket or returns an error if something is wrong Build() (AmsTCPPacket, error) // MustBuild does the same as Build but panics on error MustBuild() AmsTCPPacket }
AmsTCPPacketBuilder is a builder for AmsTCPPacket
func NewAmsTCPPacketBuilder ¶
func NewAmsTCPPacketBuilder() AmsTCPPacketBuilder
NewAmsTCPPacketBuilder() creates a AmsTCPPacketBuilder
type CommandId ¶
type CommandId uint16
CommandId is an enum
const ( CommandId_INVALID CommandId = 0x0000 CommandId_ADS_READ_DEVICE_INFO CommandId = 0x0001 CommandId_ADS_READ CommandId = 0x0002 CommandId_ADS_WRITE CommandId = 0x0003 CommandId_ADS_READ_STATE CommandId = 0x0004 CommandId_ADS_WRITE_CONTROL CommandId = 0x0005 CommandId_ADS_ADD_DEVICE_NOTIFICATION CommandId = 0x0006 CommandId_ADS_DELETE_DEVICE_NOTIFICATION CommandId = 0x0007 CommandId_ADS_DEVICE_NOTIFICATION CommandId = 0x0008 CommandId_ADS_READ_WRITE CommandId = 0x0009 )
func CastCommandId ¶
func CommandIdByName ¶
func CommandIdByValue ¶
func (CommandId) PLC4XEnumName ¶
PLC4XEnumName returns the name that is used in code to identify this enum
func (CommandId) SerializeWithWriteBuffer ¶
type DefaultAmsPorts ¶
type DefaultAmsPorts uint16
DefaultAmsPorts is an enum
const ( DefaultAmsPorts_CAM_CONTROLLER DefaultAmsPorts = 900 DefaultAmsPorts_RUNTIME_SYSTEM_01 DefaultAmsPorts = 851 DefaultAmsPorts_RUNTIME_SYSTEM_02 DefaultAmsPorts = 852 DefaultAmsPorts_RUNTIME_SYSTEM_03 DefaultAmsPorts = 853 DefaultAmsPorts_RUNTIME_SYSTEM_04 DefaultAmsPorts = 854 DefaultAmsPorts_RUNTIME_SYSTEM_05 DefaultAmsPorts = 855 DefaultAmsPorts_RUNTIME_SYSTEM_06 DefaultAmsPorts = 856 DefaultAmsPorts_RUNTIME_SYSTEM_07 DefaultAmsPorts = 857 DefaultAmsPorts_RUNTIME_SYSTEM_08 DefaultAmsPorts = 858 DefaultAmsPorts_RUNTIME_SYSTEM_09 DefaultAmsPorts = 859 DefaultAmsPorts_RUNTIME_SYSTEM_10 DefaultAmsPorts = 860 DefaultAmsPorts_RUNTIME_SYSTEM_11 DefaultAmsPorts = 861 DefaultAmsPorts_RUNTIME_SYSTEM_12 DefaultAmsPorts = 862 DefaultAmsPorts_RUNTIME_SYSTEM_13 DefaultAmsPorts = 863 DefaultAmsPorts_RUNTIME_SYSTEM_14 DefaultAmsPorts = 864 DefaultAmsPorts_RUNTIME_SYSTEM_15 DefaultAmsPorts = 865 DefaultAmsPorts_RUNTIME_SYSTEM_16 DefaultAmsPorts = 866 DefaultAmsPorts_RUNTIME_SYSTEM_17 DefaultAmsPorts = 867 DefaultAmsPorts_RUNTIME_SYSTEM_18 DefaultAmsPorts = 868 DefaultAmsPorts_RUNTIME_SYSTEM_19 DefaultAmsPorts = 869 DefaultAmsPorts_RUNTIME_SYSTEM_20 DefaultAmsPorts = 870 DefaultAmsPorts_RUNTIME_SYSTEM_21 DefaultAmsPorts = 871 DefaultAmsPorts_RUNTIME_SYSTEM_22 DefaultAmsPorts = 872 DefaultAmsPorts_RUNTIME_SYSTEM_23 DefaultAmsPorts = 873 DefaultAmsPorts_RUNTIME_SYSTEM_24 DefaultAmsPorts = 874 DefaultAmsPorts_RUNTIME_SYSTEM_25 DefaultAmsPorts = 875 DefaultAmsPorts_RUNTIME_SYSTEM_26 DefaultAmsPorts = 876 DefaultAmsPorts_RUNTIME_SYSTEM_27 DefaultAmsPorts = 877 DefaultAmsPorts_RUNTIME_SYSTEM_28 DefaultAmsPorts = 878 DefaultAmsPorts_RUNTIME_SYSTEM_29 DefaultAmsPorts = 879 DefaultAmsPorts_RUNTIME_SYSTEM_30 DefaultAmsPorts = 880 DefaultAmsPorts_RUNTIME_SYSTEM_31 DefaultAmsPorts = 881 DefaultAmsPorts_RUNTIME_SYSTEM_32 DefaultAmsPorts = 882 DefaultAmsPorts_RUNTIME_SYSTEM_33 DefaultAmsPorts = 883 DefaultAmsPorts_RUNTIME_SYSTEM_34 DefaultAmsPorts = 884 DefaultAmsPorts_RUNTIME_SYSTEM_35 DefaultAmsPorts = 885 DefaultAmsPorts_RUNTIME_SYSTEM_36 DefaultAmsPorts = 886 DefaultAmsPorts_RUNTIME_SYSTEM_37 DefaultAmsPorts = 887 DefaultAmsPorts_RUNTIME_SYSTEM_38 DefaultAmsPorts = 888 DefaultAmsPorts_RUNTIME_SYSTEM_39 DefaultAmsPorts = 889 DefaultAmsPorts_RUNTIME_SYSTEM_40 DefaultAmsPorts = 890 DefaultAmsPorts_RUNTIME_SYSTEM_41 DefaultAmsPorts = 891 DefaultAmsPorts_RUNTIME_SYSTEM_42 DefaultAmsPorts = 892 DefaultAmsPorts_RUNTIME_SYSTEM_43 DefaultAmsPorts = 893 DefaultAmsPorts_RUNTIME_SYSTEM_44 DefaultAmsPorts = 894 DefaultAmsPorts_RUNTIME_SYSTEM_45 DefaultAmsPorts = 895 DefaultAmsPorts_RUNTIME_SYSTEM_46 DefaultAmsPorts = 896 DefaultAmsPorts_RUNTIME_SYSTEM_47 DefaultAmsPorts = 897 DefaultAmsPorts_RUNTIME_SYSTEM_48 DefaultAmsPorts = 898 DefaultAmsPorts_RUNTIME_SYSTEM_49 DefaultAmsPorts = 899 DefaultAmsPorts_NC DefaultAmsPorts = 500 DefaultAmsPorts_RESERVED DefaultAmsPorts = 400 DefaultAmsPorts_IO DefaultAmsPorts = 300 DefaultAmsPorts_REAL_TIME_CORE DefaultAmsPorts = 200 DefaultAmsPorts_EVENT_SYSTEM_LOGGER DefaultAmsPorts = 100 )
func CastDefaultAmsPorts ¶
func CastDefaultAmsPorts(structType any) DefaultAmsPorts
func DefaultAmsPortsByName ¶
func DefaultAmsPortsByName(value string) (enum DefaultAmsPorts, ok bool)
func DefaultAmsPortsByValue ¶
func DefaultAmsPortsByValue(value uint16) (enum DefaultAmsPorts, ok bool)
func DefaultAmsPortsParse ¶
func DefaultAmsPortsParse(ctx context.Context, theBytes []byte) (DefaultAmsPorts, error)
func DefaultAmsPortsParseWithBuffer ¶
func DefaultAmsPortsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DefaultAmsPorts, error)
func (DefaultAmsPorts) GetLengthInBits ¶
func (m DefaultAmsPorts) GetLengthInBits(ctx context.Context) uint16
func (DefaultAmsPorts) GetLengthInBytes ¶
func (m DefaultAmsPorts) GetLengthInBytes(ctx context.Context) uint16
func (DefaultAmsPorts) GetValue ¶
func (e DefaultAmsPorts) GetValue() uint16
func (DefaultAmsPorts) PLC4XEnumName ¶
func (e DefaultAmsPorts) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (DefaultAmsPorts) Serialize ¶
func (e DefaultAmsPorts) Serialize() ([]byte, error)
func (DefaultAmsPorts) SerializeWithWriteBuffer ¶
func (e DefaultAmsPorts) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (DefaultAmsPorts) String ¶
func (e DefaultAmsPorts) String() string
type ErrorResponse ¶
type ErrorResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable AmsPacket // IsErrorResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsErrorResponse() // CreateBuilder creates a ErrorResponseBuilder CreateErrorResponseBuilder() ErrorResponseBuilder }
ErrorResponse is the corresponding interface of ErrorResponse
func CastErrorResponse
deprecated
func CastErrorResponse(structType any) ErrorResponse
Deprecated: use the interface for direct cast
type ErrorResponseBuilder ¶
type ErrorResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ErrorResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() AmsPacketBuilder // Build builds the ErrorResponse or returns an error if something is wrong Build() (ErrorResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ErrorResponse }
ErrorResponseBuilder is a builder for ErrorResponse
func NewErrorResponseBuilder ¶
func NewErrorResponseBuilder() ErrorResponseBuilder
NewErrorResponseBuilder() creates a ErrorResponseBuilder
type IAdsDataType ¶
type IAdsDataType interface { fmt.Stringer utils.LengthAware utils.Serializable NumBytes() uint16 PlcValueType() api.PlcValueType }
type IAdsTransMode ¶
type IAdsTransMode interface { fmt.Stringer utils.LengthAware utils.Serializable }
type ICommandId ¶
type ICommandId interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IDefaultAmsPorts ¶
type IDefaultAmsPorts interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IReservedIndexGroups ¶
type IReservedIndexGroups interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IReturnCode ¶
type IReturnCode interface { fmt.Stringer utils.LengthAware utils.Serializable }
type ReservedIndexGroups ¶
type ReservedIndexGroups uint32
ReservedIndexGroups is an enum
const ( ReservedIndexGroups_ADSIGRP_SYMTAB ReservedIndexGroups = 0x0000F000 ReservedIndexGroups_ADSIGRP_SYMNAME ReservedIndexGroups = 0x0000F001 ReservedIndexGroups_ADSIGRP_SYMVAL ReservedIndexGroups = 0x0000F002 ReservedIndexGroups_ADSIGRP_SYM_HNDBYNAME ReservedIndexGroups = 0x0000F003 ReservedIndexGroups_ADSIGRP_SYM_VALBYNAME ReservedIndexGroups = 0x0000F004 ReservedIndexGroups_ADSIGRP_SYM_VALBYHND ReservedIndexGroups = 0x0000F005 ReservedIndexGroups_ADSIGRP_SYM_RELEASEHND ReservedIndexGroups = 0x0000F006 ReservedIndexGroups_ADSIGRP_SYM_INFOBYNAME ReservedIndexGroups = 0x0000F007 ReservedIndexGroups_ADSIGRP_SYM_VERSION ReservedIndexGroups = 0x0000F008 ReservedIndexGroups_ADSIGRP_SYM_INFOBYNAMEEX ReservedIndexGroups = 0x0000F009 ReservedIndexGroups_ADSIGRP_SYM_DOWNLOAD ReservedIndexGroups = 0x0000F00A ReservedIndexGroups_ADSIGRP_SYM_UPLOAD ReservedIndexGroups = 0x0000F00B ReservedIndexGroups_ADSIGRP_SYM_UPLOADINFO ReservedIndexGroups = 0x0000F00C ReservedIndexGroups_ADSIGRP_DATA_TYPE_TABLE_UPLOAD ReservedIndexGroups = 0x0000F00E ReservedIndexGroups_ADSIGRP_SYMBOL_AND_DATA_TYPE_SIZES ReservedIndexGroups = 0x0000F00F ReservedIndexGroups_ADSIGRP_SYMNOTE ReservedIndexGroups = 0x0000F010 ReservedIndexGroups_ADSIGRP_DT_INFOBYNAMEEX ReservedIndexGroups = 0x0000F011 ReservedIndexGroups_ADSIGRP_IOIMAGE_RWIB ReservedIndexGroups = 0x0000F020 ReservedIndexGroups_ADSIGRP_IOIMAGE_RWIX ReservedIndexGroups = 0x0000F021 ReservedIndexGroups_ADSIGRP_IOIMAGE_RISIZE ReservedIndexGroups = 0x0000F025 ReservedIndexGroups_ADSIGRP_IOIMAGE_RWOB ReservedIndexGroups = 0x0000F030 ReservedIndexGroups_ADSIGRP_IOIMAGE_RWOX ReservedIndexGroups = 0x0000F031 ReservedIndexGroups_ADSIGRP_IOIMAGE_RWOSIZE ReservedIndexGroups = 0x0000F035 ReservedIndexGroups_ADSIGRP_IOIMAGE_CLEARI ReservedIndexGroups = 0x0000F040 ReservedIndexGroups_ADSIGRP_IOIMAGE_CLEARO ReservedIndexGroups = 0x0000F050 ReservedIndexGroups_ADSIGRP_IOIMAGE_RWIOB ReservedIndexGroups = 0x0000F060 ReservedIndexGroups_ADSIGRP_MULTIPLE_READ ReservedIndexGroups = 0x0000F080 ReservedIndexGroups_ADSIGRP_MULTIPLE_WRITE ReservedIndexGroups = 0x0000F081 ReservedIndexGroups_ADSIGRP_MULTIPLE_READ_WRITE ReservedIndexGroups = 0x0000F082 ReservedIndexGroups_ADSIGRP_MULTIPLE_RELEASE_HANDLE ReservedIndexGroups = 0x0000F083 ReservedIndexGroups_ADSIGRP_SUMUP_READEX2 ReservedIndexGroups = 0x0000F084 ReservedIndexGroups_ADSIGRP_MULTIPLE_ADD_DEVICE_NOTIFICATIONS ReservedIndexGroups = 0x0000F085 ReservedIndexGroups_ADSIGRP_MULTIPLE_DELETE_DEVICE_NOTIFICATIONS ReservedIndexGroups = 0x0000F086 ReservedIndexGroups_ADSIGRP_DEVICE_DATA ReservedIndexGroups = 0x0000F100 ReservedIndexGroups_ADS_OVER_ETHERCAT ReservedIndexGroups = 0x0000F302 ReservedIndexGroups_ADSIOFFS_DEVDATA_ADSSTATE ReservedIndexGroups = 0x00000000 ReservedIndexGroups_ADSIOFFS_DEVDATA_DEVSTATE ReservedIndexGroups = 0x00000002 )
func CastReservedIndexGroups ¶
func CastReservedIndexGroups(structType any) ReservedIndexGroups
func ReservedIndexGroupsByName ¶
func ReservedIndexGroupsByName(value string) (enum ReservedIndexGroups, ok bool)
func ReservedIndexGroupsByValue ¶
func ReservedIndexGroupsByValue(value uint32) (enum ReservedIndexGroups, ok bool)
func ReservedIndexGroupsParse ¶
func ReservedIndexGroupsParse(ctx context.Context, theBytes []byte) (ReservedIndexGroups, error)
func ReservedIndexGroupsParseWithBuffer ¶
func ReservedIndexGroupsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ReservedIndexGroups, error)
func (ReservedIndexGroups) GetLengthInBits ¶
func (m ReservedIndexGroups) GetLengthInBits(ctx context.Context) uint16
func (ReservedIndexGroups) GetLengthInBytes ¶
func (m ReservedIndexGroups) GetLengthInBytes(ctx context.Context) uint16
func (ReservedIndexGroups) GetValue ¶
func (e ReservedIndexGroups) GetValue() uint32
func (ReservedIndexGroups) PLC4XEnumName ¶
func (e ReservedIndexGroups) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ReservedIndexGroups) Serialize ¶
func (e ReservedIndexGroups) Serialize() ([]byte, error)
func (ReservedIndexGroups) SerializeWithWriteBuffer ¶
func (e ReservedIndexGroups) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ReservedIndexGroups) String ¶
func (e ReservedIndexGroups) String() string
type ReturnCode ¶
type ReturnCode uint32
ReturnCode is an enum
const ( ReturnCode_OK ReturnCode = 0x00 ReturnCode_INTERNAL_ERROR ReturnCode = 0x01 ReturnCode_NO_REALTIME ReturnCode = 0x02 ReturnCode_SAVE_ERROR ReturnCode = 0x03 ReturnCode_MAILBOX_FULL ReturnCode = 0x04 ReturnCode_WRONG_HMSG ReturnCode = 0x05 ReturnCode_TARGET_PORT_NOT_FOUND ReturnCode = 0x06 ReturnCode_TARGET_HOST_NOT_FOUND ReturnCode = 0x07 ReturnCode_UNKNOWN_COMMAND_ID ReturnCode = 0x08 ReturnCode_UNKNOWN_TASK_ID ReturnCode = 0x09 ReturnCode_NO_IO ReturnCode = 0x0A ReturnCode_UNKNOWN_ADS_COMMAND ReturnCode = 0x0B ReturnCode_WIN32_ERROR ReturnCode = 0x0C ReturnCode_PORT_NOT_CONNECTED ReturnCode = 0x0D ReturnCode_INVALID_ADS_LENGTH ReturnCode = 0x0E ReturnCode_INVALID_AMS_NET_ID ReturnCode = 0x0F ReturnCode_LOW_INSTALLATION_LEVEL ReturnCode = 0x10 ReturnCode_NO_DEBUGGING_AVAILABLE ReturnCode = 0x11 ReturnCode_PORT_DEACTIVATED ReturnCode = 0x12 ReturnCode_PORT_ALREADY_CONNECTED ReturnCode = 0x13 ReturnCode_ADS_SYNC_WIN32_ERROR ReturnCode = 0x14 ReturnCode_ADS_SYNC_TIMEOUT ReturnCode = 0x15 ReturnCode_ADS_SYNC_AMS_ERROR ReturnCode = 0x16 ReturnCode_NO_INDEX_MAP_FOR_ADS_AVAILABLE ReturnCode = 0x17 ReturnCode_INVALID_ADS_PORT ReturnCode = 0x18 ReturnCode_NO_MEMORY ReturnCode = 0x19 ReturnCode_TCP_SENDING_ERROR ReturnCode = 0x1A ReturnCode_HOST_NOT_REACHABLE ReturnCode = 0x1B ReturnCode_INVALID_AMS_FRAGMENT ReturnCode = 0x1C ReturnCode_ROUTERERR_NOLOCKEDMEMORY ReturnCode = 0x500 ReturnCode_ROUTERERR_RESIZEMEMORY ReturnCode = 0x501 ReturnCode_ROUTERERR_MAILBOXFULL ReturnCode = 0x502 ReturnCode_ROUTERERR_DEBUGBOXFULL ReturnCode = 0x503 ReturnCode_ROUTERERR_UNKNOWNPORTTYPE ReturnCode = 0x504 ReturnCode_ROUTERERR_NOTINITIALIZED ReturnCode = 0x505 ReturnCode_ROUTERERR_PORTALREADYINUSE ReturnCode = 0x506 ReturnCode_ROUTERERR_NOTREGISTERED ReturnCode = 0x507 ReturnCode_ROUTERERR_NOMOREQUEUES ReturnCode = 0x508 ReturnCode_ROUTERERR_INVALIDPORT ReturnCode = 0x509 ReturnCode_ROUTERERR_NOTACTIVATED ReturnCode = 0x50A ReturnCode_ADSERR_DEVICE_ERROR ReturnCode = 0x700 ReturnCode_ADSERR_DEVICE_SRVNOTSUPP ReturnCode = 0x701 ReturnCode_ADSERR_DEVICE_INVALIDGRP ReturnCode = 0x702 ReturnCode_ADSERR_DEVICE_INVALIDOFFSET ReturnCode = 0x703 ReturnCode_ADSERR_DEVICE_INVALIDACCESS ReturnCode = 0x704 ReturnCode_ADSERR_DEVICE_INVALIDSIZE ReturnCode = 0x705 ReturnCode_ADSERR_DEVICE_INVALIDDATA ReturnCode = 0x706 ReturnCode_ADSERR_DEVICE_NOTREADY ReturnCode = 0x707 ReturnCode_ADSERR_DEVICE_BUSY ReturnCode = 0x708 ReturnCode_ADSERR_DEVICE_INVALIDCONTEXT ReturnCode = 0x709 ReturnCode_ADSERR_DEVICE_NOMEMORY ReturnCode = 0x70A ReturnCode_ADSERR_DEVICE_INVALIDPARM ReturnCode = 0x70B ReturnCode_ADSERR_DEVICE_NOTFOUND ReturnCode = 0x70C ReturnCode_ADSERR_DEVICE_SYNTAX ReturnCode = 0x70D ReturnCode_ADSERR_DEVICE_INCOMPATIBLE ReturnCode = 0x70E ReturnCode_ADSERR_DEVICE_EXISTS ReturnCode = 0x70F ReturnCode_ADSERR_DEVICE_SYMBOLNOTFOUND ReturnCode = 0x710 ReturnCode_ADSERR_DEVICE_SYMBOLVERSIONINVALID ReturnCode = 0x711 ReturnCode_ADSERR_DEVICE_INVALIDSTATE ReturnCode = 0x712 ReturnCode_ADSERR_DEVICE_TRANSMODENOTSUPP ReturnCode = 0x713 ReturnCode_ADSERR_DEVICE_NOTIFYHNDINVALID ReturnCode = 0x714 ReturnCode_ADSERR_DEVICE_CLIENTUNKNOWN ReturnCode = 0x715 ReturnCode_ADSERR_DEVICE_NOMOREHDLS ReturnCode = 0x716 ReturnCode_ADSERR_DEVICE_INVALIDWATCHSIZE ReturnCode = 0x717 ReturnCode_ADSERR_DEVICE_NOTINIT ReturnCode = 0x718 ReturnCode_ADSERR_DEVICE_TIMEOUT ReturnCode = 0x719 ReturnCode_ADSERR_DEVICE_NOINTERFACE ReturnCode = 0x71A ReturnCode_ADSERR_DEVICE_INVALIDINTERFACE ReturnCode = 0x71B ReturnCode_ADSERR_DEVICE_INVALIDCLSID ReturnCode = 0x71C ReturnCode_ADSERR_DEVICE_INVALIDOBJID ReturnCode = 0x71D ReturnCode_ADSERR_DEVICE_PENDING ReturnCode = 0x71E ReturnCode_ADSERR_DEVICE_ABORTED ReturnCode = 0x71F ReturnCode_ADSERR_DEVICE_WARNING ReturnCode = 0x720 ReturnCode_ADSERR_DEVICE_INVALIDARRAYIDX ReturnCode = 0x721 ReturnCode_ADSERR_DEVICE_SYMBOLNOTACTIVE ReturnCode = 0x722 ReturnCode_ADSERR_DEVICE_ACCESSDENIED ReturnCode = 0x723 ReturnCode_ADSERR_DEVICE_LICENSENOTFOUND ReturnCode = 0x724 ReturnCode_ADSERR_DEVICE_LICENSEEXPIRED ReturnCode = 0x725 ReturnCode_ADSERR_DEVICE_LICENSEEXCEEDED ReturnCode = 0x726 ReturnCode_ADSERR_DEVICE_LICENSEINVALID ReturnCode = 0x727 ReturnCode_ADSERR_DEVICE_LICENSESYSTEMID ReturnCode = 0x728 ReturnCode_ADSERR_DEVICE_LICENSENOTIMELIMIT ReturnCode = 0x729 ReturnCode_ADSERR_DEVICE_LICENSEFUTUREISSUE ReturnCode = 0x72A ReturnCode_ADSERR_DEVICE_LICENSETIMETOLONG ReturnCode = 0x72B ReturnCode_ADSERR_DEVICE_EXCEPTION ReturnCode = 0x72c ReturnCode_ADSERR_DEVICE_LICENSEDUPLICATED ReturnCode = 0x72D ReturnCode_ADSERR_DEVICE_SIGNATUREINVALID ReturnCode = 0x72E ReturnCode_ADSERR_DEVICE_CERTIFICATEINVALID ReturnCode = 0x72F ReturnCode_ADSERR_CLIENT_ERROR ReturnCode = 0x740 ReturnCode_ADSERR_CLIENT_INVALIDPARM ReturnCode = 0x741 ReturnCode_ADSERR_CLIENT_LISTEMPTY ReturnCode = 0x742 ReturnCode_ADSERR_CLIENT_VARUSED ReturnCode = 0x743 ReturnCode_ADSERR_CLIENT_DUPLINVOKEID ReturnCode = 0x744 ReturnCode_ADSERR_CLIENT_SYNCTIMEOUT ReturnCode = 0x745 ReturnCode_ADSERR_CLIENT_W32ERROR ReturnCode = 0x746 ReturnCode_ADSERR_CLIENT_TIMEOUTINVALID ReturnCode = 0x747 ReturnCode_ADSERR_CLIENT_PORTNOTOPEN ReturnCode = 0x748 ReturnCode_ADSERR_CLIENT_NOAMSADDR ReturnCode = 0x750 ReturnCode_ADSERR_CLIENT_SYNCINTERNAL ReturnCode = 0x751 ReturnCode_ADSERR_CLIENT_ADDHASH ReturnCode = 0x752 ReturnCode_ADSERR_CLIENT_REMOVEHASH ReturnCode = 0x753 ReturnCode_ADSERR_CLIENT_NOMORESYM ReturnCode = 0x754 ReturnCode_ADSERR_CLIENT_SYNCRESINVALID ReturnCode = 0x755 ReturnCode_RTERR_INTERNAL ReturnCode = 0x1000 ReturnCode_RTERR_BADTIMERPERIODS ReturnCode = 0x1001 ReturnCode_RTERR_INVALIDTASKPTR ReturnCode = 0x1002 ReturnCode_RTERR_INVALIDSTACKPTR ReturnCode = 0x1003 ReturnCode_RTERR_PRIOEXISTS ReturnCode = 0x1004 ReturnCode_RTERR_NOMORETCB ReturnCode = 0x1005 ReturnCode_RTERR_NOMORESEMAS ReturnCode = 0x1006 ReturnCode_RTERR_NOMOREQUEUES ReturnCode = 0x1007 ReturnCode_RTERR_EXTIRQALREADYDEF ReturnCode = 0x100D ReturnCode_RTERR_EXTIRQNOTDEF ReturnCode = 0x100E ReturnCode_RTERR_EXTIRQINSTALLFAILED ReturnCode = 0x100F ReturnCode_RTERR_IRQLNOTLESSOREQUAL ReturnCode = 0x1010 ReturnCode_RTERR_VMXNOTSUPPORTED ReturnCode = 0x1017 ReturnCode_RTERR_VMXDISABLED ReturnCode = 0x1018 ReturnCode_RTERR_VMXCONTROLSMISSING ReturnCode = 0x1019 ReturnCode_RTERR_VMXENABLEFAILS ReturnCode = 0x101A ReturnCode_WSAETIMEDOUT ReturnCode = 0x274C ReturnCode_WSAECONNREFUSED ReturnCode = 0x274D ReturnCode_WSAEHOSTUNREACH ReturnCode = 0x2751 )
func CastReturnCode ¶
func CastReturnCode(structType any) ReturnCode
func ReturnCodeByName ¶
func ReturnCodeByName(value string) (enum ReturnCode, ok bool)
func ReturnCodeByValue ¶
func ReturnCodeByValue(value uint32) (enum ReturnCode, ok bool)
func ReturnCodeParse ¶
func ReturnCodeParse(ctx context.Context, theBytes []byte) (ReturnCode, error)
func ReturnCodeParseWithBuffer ¶
func ReturnCodeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ReturnCode, error)
func (ReturnCode) GetLengthInBits ¶
func (m ReturnCode) GetLengthInBits(ctx context.Context) uint16
func (ReturnCode) GetLengthInBytes ¶
func (m ReturnCode) GetLengthInBytes(ctx context.Context) uint16
func (ReturnCode) GetValue ¶
func (e ReturnCode) GetValue() uint32
func (ReturnCode) PLC4XEnumName ¶
func (e ReturnCode) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ReturnCode) Serialize ¶
func (e ReturnCode) Serialize() ([]byte, error)
func (ReturnCode) SerializeWithWriteBuffer ¶
func (e ReturnCode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ReturnCode) String ¶
func (e ReturnCode) String() string
Source Files ¶
- AdsAddDeviceNotificationRequest.go
- AdsAddDeviceNotificationResponse.go
- AdsConstants.go
- AdsDataType.go
- AdsDataTypeArrayInfo.go
- AdsDataTypeTableChildEntry.go
- AdsDataTypeTableEntry.go
- AdsDeleteDeviceNotificationRequest.go
- AdsDeleteDeviceNotificationResponse.go
- AdsDeviceNotificationRequest.go
- AdsDeviceNotificationResponse.go
- AdsInvalidRequest.go
- AdsInvalidResponse.go
- AdsMultiRequestItem.go
- AdsMultiRequestItemRead.go
- AdsMultiRequestItemReadWrite.go
- AdsMultiRequestItemWrite.go
- AdsNotificationSample.go
- AdsReadDeviceInfoRequest.go
- AdsReadDeviceInfoResponse.go
- AdsReadRequest.go
- AdsReadResponse.go
- AdsReadStateRequest.go
- AdsReadStateResponse.go
- AdsReadWriteRequest.go
- AdsReadWriteResponse.go
- AdsStampHeader.go
- AdsSymbolTableEntry.go
- AdsTableSizes.go
- AdsTransMode.go
- AdsWriteControlRequest.go
- AdsWriteControlResponse.go
- AdsWriteRequest.go
- AdsWriteResponse.go
- AmsNetId.go
- AmsPacket.go
- AmsSerialAcknowledgeFrame.go
- AmsSerialFrame.go
- AmsSerialResetFrame.go
- AmsTCPPacket.go
- CommandId.go
- DataItem.go
- DefaultAmsPorts.go
- ErrorResponse.go
- ReservedIndexGroups.go
- ReturnCode.go
- StaticHelper.go
- plc4x_common.go