Documentation ¶
Index ¶
- Constants
- Variables
- func AsciiLrcCheck(ctx context.Context, address uint8, pdu ModbusPDU) func() (uint8, error)
- func DataItemParse(ctx context.Context, theBytes []byte, dataType ModbusDataType, ...) (api.PlcValue, error)
- func DataItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, dataType ModbusDataType, ...) (api.PlcValue, error)
- func DataItemSerialize(value api.PlcValue, dataType ModbusDataType, numberOfValues uint16, ...) ([]byte, error)
- func DataItemSerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer, value api.PlcValue, ...) error
- func DriverTypeKnows(value uint32) bool
- func ModbusADUParse[T ModbusADU](ctx context.Context, theBytes []byte, driverType DriverType, response bool) (T, error)
- func ModbusADUParseWithBuffer[T ModbusADU](ctx context.Context, readBuffer utils.ReadBuffer, driverType DriverType, ...) (T, error)
- func ModbusADUParseWithBufferProducer[T ModbusADU](driverType DriverType, response bool) func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
- func ModbusConstantsParseWithBufferProducer() ...
- func ModbusDataTypeKnows(value uint8) bool
- func ModbusDeviceInformationConformityLevelKnows(value uint8) bool
- func ModbusDeviceInformationLevelKnows(value uint8) bool
- func ModbusDeviceInformationMoreFollowsKnows(value uint8) bool
- func ModbusDeviceInformationObjectParseWithBufferProducer() ...
- func ModbusErrorCodeKnows(value uint8) bool
- func ModbusPDUParse[T ModbusPDU](ctx context.Context, theBytes []byte, response bool) (T, error)
- func ModbusPDUParseWithBuffer[T ModbusPDU](ctx context.Context, readBuffer utils.ReadBuffer, response bool) (T, error)
- func ModbusPDUParseWithBufferProducer[T ModbusPDU](response bool) func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
- func ModbusPDUReadFileRecordRequestItemParseWithBufferProducer() ...
- func ModbusPDUReadFileRecordResponseItemParseWithBufferProducer() ...
- func ModbusPDUWriteFileRecordRequestItemParseWithBufferProducer() ...
- func ModbusPDUWriteFileRecordResponseItemParseWithBufferProducer() ...
- func NewModbusADU(response bool) *_ModbusADU
- func NewModbusAsciiADU(address uint8, pdu ModbusPDU, response bool) *_ModbusAsciiADU
- func NewModbusConstants() *_ModbusConstants
- func NewModbusDeviceInformationObject(objectId uint8, data []byte) *_ModbusDeviceInformationObject
- func NewModbusPDU() *_ModbusPDU
- func NewModbusPDUDiagnosticRequest(subFunction uint16, data uint16) *_ModbusPDUDiagnosticRequest
- func NewModbusPDUDiagnosticResponse(subFunction uint16, data uint16) *_ModbusPDUDiagnosticResponse
- func NewModbusPDUError(exceptionCode ModbusErrorCode) *_ModbusPDUError
- func NewModbusPDUGetComEventCounterRequest() *_ModbusPDUGetComEventCounterRequest
- func NewModbusPDUGetComEventCounterResponse(status uint16, eventCount uint16) *_ModbusPDUGetComEventCounterResponse
- func NewModbusPDUGetComEventLogRequest() *_ModbusPDUGetComEventLogRequest
- func NewModbusPDUGetComEventLogResponse(status uint16, eventCount uint16, messageCount uint16, events []byte) *_ModbusPDUGetComEventLogResponse
- func NewModbusPDUMaskWriteHoldingRegisterRequest(referenceAddress uint16, andMask uint16, orMask uint16) *_ModbusPDUMaskWriteHoldingRegisterRequest
- func NewModbusPDUMaskWriteHoldingRegisterResponse(referenceAddress uint16, andMask uint16, orMask uint16) *_ModbusPDUMaskWriteHoldingRegisterResponse
- func NewModbusPDUReadCoilsRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadCoilsRequest
- func NewModbusPDUReadCoilsResponse(value []byte) *_ModbusPDUReadCoilsResponse
- func NewModbusPDUReadDeviceIdentificationRequest(level ModbusDeviceInformationLevel, objectId uint8) *_ModbusPDUReadDeviceIdentificationRequest
- func NewModbusPDUReadDeviceIdentificationResponse(level ModbusDeviceInformationLevel, individualAccess bool, ...) *_ModbusPDUReadDeviceIdentificationResponse
- func NewModbusPDUReadDiscreteInputsRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadDiscreteInputsRequest
- func NewModbusPDUReadDiscreteInputsResponse(value []byte) *_ModbusPDUReadDiscreteInputsResponse
- func NewModbusPDUReadExceptionStatusRequest() *_ModbusPDUReadExceptionStatusRequest
- func NewModbusPDUReadExceptionStatusResponse(value uint8) *_ModbusPDUReadExceptionStatusResponse
- func NewModbusPDUReadFifoQueueRequest(fifoPointerAddress uint16) *_ModbusPDUReadFifoQueueRequest
- func NewModbusPDUReadFifoQueueResponse(fifoValue []uint16) *_ModbusPDUReadFifoQueueResponse
- func NewModbusPDUReadFileRecordRequest(items []ModbusPDUReadFileRecordRequestItem) *_ModbusPDUReadFileRecordRequest
- func NewModbusPDUReadFileRecordRequestItem(referenceType uint8, fileNumber uint16, recordNumber uint16, ...) *_ModbusPDUReadFileRecordRequestItem
- func NewModbusPDUReadFileRecordResponse(items []ModbusPDUReadFileRecordResponseItem) *_ModbusPDUReadFileRecordResponse
- func NewModbusPDUReadFileRecordResponseItem(referenceType uint8, data []byte) *_ModbusPDUReadFileRecordResponseItem
- func NewModbusPDUReadHoldingRegistersRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadHoldingRegistersRequest
- func NewModbusPDUReadHoldingRegistersResponse(value []byte) *_ModbusPDUReadHoldingRegistersResponse
- func NewModbusPDUReadInputRegistersRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadInputRegistersRequest
- func NewModbusPDUReadInputRegistersResponse(value []byte) *_ModbusPDUReadInputRegistersResponse
- func NewModbusPDUReadWriteMultipleHoldingRegistersRequest(readStartingAddress uint16, readQuantity uint16, writeStartingAddress uint16, ...) *_ModbusPDUReadWriteMultipleHoldingRegistersRequest
- func NewModbusPDUReadWriteMultipleHoldingRegistersResponse(value []byte) *_ModbusPDUReadWriteMultipleHoldingRegistersResponse
- func NewModbusPDUReportServerIdRequest() *_ModbusPDUReportServerIdRequest
- func NewModbusPDUReportServerIdResponse(value []byte) *_ModbusPDUReportServerIdResponse
- func NewModbusPDUWriteFileRecordRequest(items []ModbusPDUWriteFileRecordRequestItem) *_ModbusPDUWriteFileRecordRequest
- func NewModbusPDUWriteFileRecordRequestItem(referenceType uint8, fileNumber uint16, recordNumber uint16, recordData []byte) *_ModbusPDUWriteFileRecordRequestItem
- func NewModbusPDUWriteFileRecordResponse(items []ModbusPDUWriteFileRecordResponseItem) *_ModbusPDUWriteFileRecordResponse
- func NewModbusPDUWriteFileRecordResponseItem(referenceType uint8, fileNumber uint16, recordNumber uint16, recordData []byte) *_ModbusPDUWriteFileRecordResponseItem
- func NewModbusPDUWriteMultipleCoilsRequest(startingAddress uint16, quantity uint16, value []byte) *_ModbusPDUWriteMultipleCoilsRequest
- func NewModbusPDUWriteMultipleCoilsResponse(startingAddress uint16, quantity uint16) *_ModbusPDUWriteMultipleCoilsResponse
- func NewModbusPDUWriteMultipleHoldingRegistersRequest(startingAddress uint16, quantity uint16, value []byte) *_ModbusPDUWriteMultipleHoldingRegistersRequest
- func NewModbusPDUWriteMultipleHoldingRegistersResponse(startingAddress uint16, quantity uint16) *_ModbusPDUWriteMultipleHoldingRegistersResponse
- func NewModbusPDUWriteSingleCoilRequest(address uint16, value uint16) *_ModbusPDUWriteSingleCoilRequest
- func NewModbusPDUWriteSingleCoilResponse(address uint16, value uint16) *_ModbusPDUWriteSingleCoilResponse
- func NewModbusPDUWriteSingleRegisterRequest(address uint16, value uint16) *_ModbusPDUWriteSingleRegisterRequest
- func NewModbusPDUWriteSingleRegisterResponse(address uint16, value uint16) *_ModbusPDUWriteSingleRegisterResponse
- func NewModbusRtuADU(address uint8, pdu ModbusPDU, response bool) *_ModbusRtuADU
- func NewModbusTcpADU(transactionIdentifier uint16, unitIdentifier uint8, pdu ModbusPDU, ...) *_ModbusTcpADU
- func RtuCrcCheck(ctx context.Context, address uint8, pdu ModbusPDU) func() (uint16, error)
- type DriverType
- func CastDriverType(structType any) DriverType
- func DriverTypeByName(value string) (enum DriverType, ok bool)
- func DriverTypeByValue(value uint32) (enum DriverType, ok bool)
- func DriverTypeParse(ctx context.Context, theBytes []byte) (DriverType, error)
- func DriverTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DriverType, error)
- func (m DriverType) GetLengthInBits(ctx context.Context) uint16
- func (m DriverType) GetLengthInBytes(ctx context.Context) uint16
- func (e DriverType) GetValue() uint32
- func (e DriverType) PLC4XEnumName() string
- func (e DriverType) Serialize() ([]byte, error)
- func (e DriverType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e DriverType) String() string
- type IDriverType
- type IModbusDataType
- type IModbusDeviceInformationConformityLevel
- type IModbusDeviceInformationLevel
- type IModbusDeviceInformationMoreFollows
- type IModbusErrorCode
- type ModbusADU
- type ModbusADUBuilder
- type ModbusADUContract
- type ModbusADURequirements
- type ModbusAsciiADU
- type ModbusAsciiADUBuilder
- type ModbusConstants
- type ModbusConstantsBuilder
- type ModbusDataType
- func CastModbusDataType(structType any) ModbusDataType
- func ModbusDataTypeByName(value string) (enum ModbusDataType, ok bool)
- func ModbusDataTypeByValue(value uint8) (enum ModbusDataType, ok bool)
- func ModbusDataTypeFirstEnumForFieldDataTypeSize(value uint8) (enum ModbusDataType, ok bool)
- func ModbusDataTypeParse(ctx context.Context, theBytes []byte) (ModbusDataType, error)
- func ModbusDataTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDataType, error)
- func (e ModbusDataType) DataTypeSize() uint8
- func (e ModbusDataType) GetDataTypeSize() uint8
- func (m ModbusDataType) GetLengthInBits(ctx context.Context) uint16
- func (m ModbusDataType) GetLengthInBytes(ctx context.Context) uint16
- func (e ModbusDataType) GetValue() uint8
- func (e ModbusDataType) PLC4XEnumName() string
- func (e ModbusDataType) Serialize() ([]byte, error)
- func (e ModbusDataType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ModbusDataType) String() string
- type ModbusDeviceInformationConformityLevel
- func CastModbusDeviceInformationConformityLevel(structType any) ModbusDeviceInformationConformityLevel
- func ModbusDeviceInformationConformityLevelByName(value string) (enum ModbusDeviceInformationConformityLevel, ok bool)
- func ModbusDeviceInformationConformityLevelByValue(value uint8) (enum ModbusDeviceInformationConformityLevel, ok bool)
- func ModbusDeviceInformationConformityLevelParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationConformityLevel, error)
- func ModbusDeviceInformationConformityLevelParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationConformityLevel, error)
- func (m ModbusDeviceInformationConformityLevel) GetLengthInBits(ctx context.Context) uint16
- func (m ModbusDeviceInformationConformityLevel) GetLengthInBytes(ctx context.Context) uint16
- func (e ModbusDeviceInformationConformityLevel) GetValue() uint8
- func (e ModbusDeviceInformationConformityLevel) PLC4XEnumName() string
- func (e ModbusDeviceInformationConformityLevel) Serialize() ([]byte, error)
- func (e ModbusDeviceInformationConformityLevel) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ModbusDeviceInformationConformityLevel) String() string
- type ModbusDeviceInformationLevel
- func CastModbusDeviceInformationLevel(structType any) ModbusDeviceInformationLevel
- func ModbusDeviceInformationLevelByName(value string) (enum ModbusDeviceInformationLevel, ok bool)
- func ModbusDeviceInformationLevelByValue(value uint8) (enum ModbusDeviceInformationLevel, ok bool)
- func ModbusDeviceInformationLevelParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationLevel, error)
- func ModbusDeviceInformationLevelParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationLevel, error)
- func (m ModbusDeviceInformationLevel) GetLengthInBits(ctx context.Context) uint16
- func (m ModbusDeviceInformationLevel) GetLengthInBytes(ctx context.Context) uint16
- func (e ModbusDeviceInformationLevel) GetValue() uint8
- func (e ModbusDeviceInformationLevel) PLC4XEnumName() string
- func (e ModbusDeviceInformationLevel) Serialize() ([]byte, error)
- func (e ModbusDeviceInformationLevel) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ModbusDeviceInformationLevel) String() string
- type ModbusDeviceInformationMoreFollows
- func CastModbusDeviceInformationMoreFollows(structType any) ModbusDeviceInformationMoreFollows
- func ModbusDeviceInformationMoreFollowsByName(value string) (enum ModbusDeviceInformationMoreFollows, ok bool)
- func ModbusDeviceInformationMoreFollowsByValue(value uint8) (enum ModbusDeviceInformationMoreFollows, ok bool)
- func ModbusDeviceInformationMoreFollowsParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationMoreFollows, error)
- func ModbusDeviceInformationMoreFollowsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationMoreFollows, error)
- func (m ModbusDeviceInformationMoreFollows) GetLengthInBits(ctx context.Context) uint16
- func (m ModbusDeviceInformationMoreFollows) GetLengthInBytes(ctx context.Context) uint16
- func (e ModbusDeviceInformationMoreFollows) GetValue() uint8
- func (e ModbusDeviceInformationMoreFollows) PLC4XEnumName() string
- func (e ModbusDeviceInformationMoreFollows) Serialize() ([]byte, error)
- func (e ModbusDeviceInformationMoreFollows) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ModbusDeviceInformationMoreFollows) String() string
- type ModbusDeviceInformationObject
- func CastModbusDeviceInformationObject(structType any) ModbusDeviceInformationObjectdeprecated
- func ModbusDeviceInformationObjectParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationObject, error)
- func ModbusDeviceInformationObjectParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationObject, error)
- type ModbusDeviceInformationObjectBuilder
- type ModbusErrorCode
- func CastModbusErrorCode(structType any) ModbusErrorCode
- func ModbusErrorCodeByName(value string) (enum ModbusErrorCode, ok bool)
- func ModbusErrorCodeByValue(value uint8) (enum ModbusErrorCode, ok bool)
- func ModbusErrorCodeParse(ctx context.Context, theBytes []byte) (ModbusErrorCode, error)
- func ModbusErrorCodeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusErrorCode, error)
- func (m ModbusErrorCode) GetLengthInBits(ctx context.Context) uint16
- func (m ModbusErrorCode) GetLengthInBytes(ctx context.Context) uint16
- func (e ModbusErrorCode) GetValue() uint8
- func (e ModbusErrorCode) PLC4XEnumName() string
- func (e ModbusErrorCode) Serialize() ([]byte, error)
- func (e ModbusErrorCode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (e ModbusErrorCode) String() string
- type ModbusPDU
- type ModbusPDUBuilder
- type ModbusPDUContract
- type ModbusPDUDiagnosticRequest
- type ModbusPDUDiagnosticRequestBuilder
- type ModbusPDUDiagnosticResponse
- type ModbusPDUDiagnosticResponseBuilder
- type ModbusPDUError
- type ModbusPDUErrorBuilder
- type ModbusPDUGetComEventCounterRequest
- type ModbusPDUGetComEventCounterRequestBuilder
- type ModbusPDUGetComEventCounterResponse
- type ModbusPDUGetComEventCounterResponseBuilder
- type ModbusPDUGetComEventLogRequest
- type ModbusPDUGetComEventLogRequestBuilder
- type ModbusPDUGetComEventLogResponse
- type ModbusPDUGetComEventLogResponseBuilder
- type ModbusPDUMaskWriteHoldingRegisterRequest
- type ModbusPDUMaskWriteHoldingRegisterRequestBuilder
- type ModbusPDUMaskWriteHoldingRegisterResponse
- type ModbusPDUMaskWriteHoldingRegisterResponseBuilder
- type ModbusPDUReadCoilsRequest
- type ModbusPDUReadCoilsRequestBuilder
- type ModbusPDUReadCoilsResponse
- type ModbusPDUReadCoilsResponseBuilder
- type ModbusPDUReadDeviceIdentificationRequest
- type ModbusPDUReadDeviceIdentificationRequestBuilder
- type ModbusPDUReadDeviceIdentificationResponse
- type ModbusPDUReadDeviceIdentificationResponseBuilder
- type ModbusPDUReadDiscreteInputsRequest
- type ModbusPDUReadDiscreteInputsRequestBuilder
- type ModbusPDUReadDiscreteInputsResponse
- type ModbusPDUReadDiscreteInputsResponseBuilder
- type ModbusPDUReadExceptionStatusRequest
- type ModbusPDUReadExceptionStatusRequestBuilder
- type ModbusPDUReadExceptionStatusResponse
- type ModbusPDUReadExceptionStatusResponseBuilder
- type ModbusPDUReadFifoQueueRequest
- type ModbusPDUReadFifoQueueRequestBuilder
- type ModbusPDUReadFifoQueueResponse
- type ModbusPDUReadFifoQueueResponseBuilder
- type ModbusPDUReadFileRecordRequest
- type ModbusPDUReadFileRecordRequestBuilder
- type ModbusPDUReadFileRecordRequestItem
- func CastModbusPDUReadFileRecordRequestItem(structType any) ModbusPDUReadFileRecordRequestItemdeprecated
- func ModbusPDUReadFileRecordRequestItemParse(ctx context.Context, theBytes []byte) (ModbusPDUReadFileRecordRequestItem, error)
- func ModbusPDUReadFileRecordRequestItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUReadFileRecordRequestItem, error)
- type ModbusPDUReadFileRecordRequestItemBuilder
- type ModbusPDUReadFileRecordResponse
- type ModbusPDUReadFileRecordResponseBuilder
- type ModbusPDUReadFileRecordResponseItem
- func CastModbusPDUReadFileRecordResponseItem(structType any) ModbusPDUReadFileRecordResponseItemdeprecated
- func ModbusPDUReadFileRecordResponseItemParse(ctx context.Context, theBytes []byte) (ModbusPDUReadFileRecordResponseItem, error)
- func ModbusPDUReadFileRecordResponseItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUReadFileRecordResponseItem, error)
- type ModbusPDUReadFileRecordResponseItemBuilder
- type ModbusPDUReadHoldingRegistersRequest
- type ModbusPDUReadHoldingRegistersRequestBuilder
- type ModbusPDUReadHoldingRegistersResponse
- type ModbusPDUReadHoldingRegistersResponseBuilder
- type ModbusPDUReadInputRegistersRequest
- type ModbusPDUReadInputRegistersRequestBuilder
- type ModbusPDUReadInputRegistersResponse
- type ModbusPDUReadInputRegistersResponseBuilder
- type ModbusPDUReadWriteMultipleHoldingRegistersRequest
- type ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder
- type ModbusPDUReadWriteMultipleHoldingRegistersResponse
- type ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder
- type ModbusPDUReportServerIdRequest
- type ModbusPDUReportServerIdRequestBuilder
- type ModbusPDUReportServerIdResponse
- type ModbusPDUReportServerIdResponseBuilder
- type ModbusPDURequirements
- type ModbusPDUWriteFileRecordRequest
- type ModbusPDUWriteFileRecordRequestBuilder
- type ModbusPDUWriteFileRecordRequestItem
- func CastModbusPDUWriteFileRecordRequestItem(structType any) ModbusPDUWriteFileRecordRequestItemdeprecated
- func ModbusPDUWriteFileRecordRequestItemParse(ctx context.Context, theBytes []byte) (ModbusPDUWriteFileRecordRequestItem, error)
- func ModbusPDUWriteFileRecordRequestItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUWriteFileRecordRequestItem, error)
- type ModbusPDUWriteFileRecordRequestItemBuilder
- type ModbusPDUWriteFileRecordResponse
- type ModbusPDUWriteFileRecordResponseBuilder
- type ModbusPDUWriteFileRecordResponseItem
- func CastModbusPDUWriteFileRecordResponseItem(structType any) ModbusPDUWriteFileRecordResponseItemdeprecated
- func ModbusPDUWriteFileRecordResponseItemParse(ctx context.Context, theBytes []byte) (ModbusPDUWriteFileRecordResponseItem, error)
- func ModbusPDUWriteFileRecordResponseItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUWriteFileRecordResponseItem, error)
- type ModbusPDUWriteFileRecordResponseItemBuilder
- type ModbusPDUWriteMultipleCoilsRequest
- type ModbusPDUWriteMultipleCoilsRequestBuilder
- type ModbusPDUWriteMultipleCoilsResponse
- type ModbusPDUWriteMultipleCoilsResponseBuilder
- type ModbusPDUWriteMultipleHoldingRegistersRequest
- type ModbusPDUWriteMultipleHoldingRegistersRequestBuilder
- type ModbusPDUWriteMultipleHoldingRegistersResponse
- type ModbusPDUWriteMultipleHoldingRegistersResponseBuilder
- type ModbusPDUWriteSingleCoilRequest
- type ModbusPDUWriteSingleCoilRequestBuilder
- type ModbusPDUWriteSingleCoilResponse
- type ModbusPDUWriteSingleCoilResponseBuilder
- type ModbusPDUWriteSingleRegisterRequest
- type ModbusPDUWriteSingleRegisterRequestBuilder
- type ModbusPDUWriteSingleRegisterResponse
- type ModbusPDUWriteSingleRegisterResponseBuilder
- type ModbusRtuADU
- type ModbusRtuADUBuilder
- type ModbusTcpADU
- type ModbusTcpADUBuilder
Constants ¶
const ModbusConstants_MODBUSTCPDEFAULTPORT uint16 = uint16(502)
Constant values.
const ModbusPDUReadDeviceIdentificationRequest_MEITYPE uint8 = 0x0E
Constant values.
const ModbusPDUReadDeviceIdentificationResponse_MEITYPE uint8 = 0x0E
Constant values.
const ModbusTcpADU_PROTOCOLIDENTIFIER uint16 = 0x0000
Constant values.
Variables ¶
var DriverTypeValues []DriverType
var ModbusDataTypeValues []ModbusDataType
var ModbusDeviceInformationConformityLevelValues []ModbusDeviceInformationConformityLevel
var ModbusDeviceInformationLevelValues []ModbusDeviceInformationLevel
var ModbusDeviceInformationMoreFollowsValues []ModbusDeviceInformationMoreFollows
var ModbusErrorCodeValues []ModbusErrorCode
Functions ¶
func AsciiLrcCheck ¶
func DataItemParse ¶
func DataItemParseWithBuffer ¶
func DataItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer, dataType ModbusDataType, numberOfValues uint16, bigEndian bool) (api.PlcValue, error)
func DataItemSerialize ¶
func DataItemSerializeWithWriteBuffer ¶
func DataItemSerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer, value api.PlcValue, dataType ModbusDataType, numberOfValues uint16, bigEndian bool) error
func DriverTypeKnows ¶
func ModbusADUParse ¶
func ModbusADUParseWithBuffer ¶
func ModbusADUParseWithBuffer[T ModbusADU](ctx context.Context, readBuffer utils.ReadBuffer, driverType DriverType, response bool) (T, error)
func ModbusADUParseWithBufferProducer ¶
func ModbusADUParseWithBufferProducer[T ModbusADU](driverType DriverType, response bool) func(ctx context.Context, readBuffer utils.ReadBuffer) (T, error)
func ModbusConstantsParseWithBufferProducer ¶
func ModbusConstantsParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusConstants, error)
func ModbusDataTypeKnows ¶
func ModbusDeviceInformationObjectParseWithBufferProducer ¶
func ModbusDeviceInformationObjectParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationObject, error)
func ModbusErrorCodeKnows ¶
func ModbusPDUParse ¶
func ModbusPDUReadFileRecordRequestItemParseWithBufferProducer ¶
func ModbusPDUReadFileRecordRequestItemParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUReadFileRecordRequestItem, error)
func ModbusPDUReadFileRecordResponseItemParseWithBufferProducer ¶
func ModbusPDUReadFileRecordResponseItemParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUReadFileRecordResponseItem, error)
func ModbusPDUWriteFileRecordRequestItemParseWithBufferProducer ¶
func ModbusPDUWriteFileRecordRequestItemParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUWriteFileRecordRequestItem, error)
func ModbusPDUWriteFileRecordResponseItemParseWithBufferProducer ¶
func ModbusPDUWriteFileRecordResponseItemParseWithBufferProducer() func(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUWriteFileRecordResponseItem, error)
func NewModbusADU ¶
func NewModbusADU(response bool) *_ModbusADU
NewModbusADU factory function for _ModbusADU
func NewModbusAsciiADU ¶
NewModbusAsciiADU factory function for _ModbusAsciiADU
func NewModbusConstants ¶
func NewModbusConstants() *_ModbusConstants
NewModbusConstants factory function for _ModbusConstants
func NewModbusDeviceInformationObject ¶
NewModbusDeviceInformationObject factory function for _ModbusDeviceInformationObject
func NewModbusPDUDiagnosticRequest ¶
NewModbusPDUDiagnosticRequest factory function for _ModbusPDUDiagnosticRequest
func NewModbusPDUDiagnosticResponse ¶
NewModbusPDUDiagnosticResponse factory function for _ModbusPDUDiagnosticResponse
func NewModbusPDUError ¶
func NewModbusPDUError(exceptionCode ModbusErrorCode) *_ModbusPDUError
NewModbusPDUError factory function for _ModbusPDUError
func NewModbusPDUGetComEventCounterRequest ¶
func NewModbusPDUGetComEventCounterRequest() *_ModbusPDUGetComEventCounterRequest
NewModbusPDUGetComEventCounterRequest factory function for _ModbusPDUGetComEventCounterRequest
func NewModbusPDUGetComEventCounterResponse ¶
func NewModbusPDUGetComEventCounterResponse(status uint16, eventCount uint16) *_ModbusPDUGetComEventCounterResponse
NewModbusPDUGetComEventCounterResponse factory function for _ModbusPDUGetComEventCounterResponse
func NewModbusPDUGetComEventLogRequest ¶
func NewModbusPDUGetComEventLogRequest() *_ModbusPDUGetComEventLogRequest
NewModbusPDUGetComEventLogRequest factory function for _ModbusPDUGetComEventLogRequest
func NewModbusPDUGetComEventLogResponse ¶
func NewModbusPDUGetComEventLogResponse(status uint16, eventCount uint16, messageCount uint16, events []byte) *_ModbusPDUGetComEventLogResponse
NewModbusPDUGetComEventLogResponse factory function for _ModbusPDUGetComEventLogResponse
func NewModbusPDUMaskWriteHoldingRegisterRequest ¶
func NewModbusPDUMaskWriteHoldingRegisterRequest(referenceAddress uint16, andMask uint16, orMask uint16) *_ModbusPDUMaskWriteHoldingRegisterRequest
NewModbusPDUMaskWriteHoldingRegisterRequest factory function for _ModbusPDUMaskWriteHoldingRegisterRequest
func NewModbusPDUMaskWriteHoldingRegisterResponse ¶
func NewModbusPDUMaskWriteHoldingRegisterResponse(referenceAddress uint16, andMask uint16, orMask uint16) *_ModbusPDUMaskWriteHoldingRegisterResponse
NewModbusPDUMaskWriteHoldingRegisterResponse factory function for _ModbusPDUMaskWriteHoldingRegisterResponse
func NewModbusPDUReadCoilsRequest ¶
func NewModbusPDUReadCoilsRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadCoilsRequest
NewModbusPDUReadCoilsRequest factory function for _ModbusPDUReadCoilsRequest
func NewModbusPDUReadCoilsResponse ¶
func NewModbusPDUReadCoilsResponse(value []byte) *_ModbusPDUReadCoilsResponse
NewModbusPDUReadCoilsResponse factory function for _ModbusPDUReadCoilsResponse
func NewModbusPDUReadDeviceIdentificationRequest ¶
func NewModbusPDUReadDeviceIdentificationRequest(level ModbusDeviceInformationLevel, objectId uint8) *_ModbusPDUReadDeviceIdentificationRequest
NewModbusPDUReadDeviceIdentificationRequest factory function for _ModbusPDUReadDeviceIdentificationRequest
func NewModbusPDUReadDeviceIdentificationResponse ¶
func NewModbusPDUReadDeviceIdentificationResponse(level ModbusDeviceInformationLevel, individualAccess bool, conformityLevel ModbusDeviceInformationConformityLevel, moreFollows ModbusDeviceInformationMoreFollows, nextObjectId uint8, objects []ModbusDeviceInformationObject) *_ModbusPDUReadDeviceIdentificationResponse
NewModbusPDUReadDeviceIdentificationResponse factory function for _ModbusPDUReadDeviceIdentificationResponse
func NewModbusPDUReadDiscreteInputsRequest ¶
func NewModbusPDUReadDiscreteInputsRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadDiscreteInputsRequest
NewModbusPDUReadDiscreteInputsRequest factory function for _ModbusPDUReadDiscreteInputsRequest
func NewModbusPDUReadDiscreteInputsResponse ¶
func NewModbusPDUReadDiscreteInputsResponse(value []byte) *_ModbusPDUReadDiscreteInputsResponse
NewModbusPDUReadDiscreteInputsResponse factory function for _ModbusPDUReadDiscreteInputsResponse
func NewModbusPDUReadExceptionStatusRequest ¶
func NewModbusPDUReadExceptionStatusRequest() *_ModbusPDUReadExceptionStatusRequest
NewModbusPDUReadExceptionStatusRequest factory function for _ModbusPDUReadExceptionStatusRequest
func NewModbusPDUReadExceptionStatusResponse ¶
func NewModbusPDUReadExceptionStatusResponse(value uint8) *_ModbusPDUReadExceptionStatusResponse
NewModbusPDUReadExceptionStatusResponse factory function for _ModbusPDUReadExceptionStatusResponse
func NewModbusPDUReadFifoQueueRequest ¶
func NewModbusPDUReadFifoQueueRequest(fifoPointerAddress uint16) *_ModbusPDUReadFifoQueueRequest
NewModbusPDUReadFifoQueueRequest factory function for _ModbusPDUReadFifoQueueRequest
func NewModbusPDUReadFifoQueueResponse ¶
func NewModbusPDUReadFifoQueueResponse(fifoValue []uint16) *_ModbusPDUReadFifoQueueResponse
NewModbusPDUReadFifoQueueResponse factory function for _ModbusPDUReadFifoQueueResponse
func NewModbusPDUReadFileRecordRequest ¶
func NewModbusPDUReadFileRecordRequest(items []ModbusPDUReadFileRecordRequestItem) *_ModbusPDUReadFileRecordRequest
NewModbusPDUReadFileRecordRequest factory function for _ModbusPDUReadFileRecordRequest
func NewModbusPDUReadFileRecordRequestItem ¶
func NewModbusPDUReadFileRecordRequestItem(referenceType uint8, fileNumber uint16, recordNumber uint16, recordLength uint16) *_ModbusPDUReadFileRecordRequestItem
NewModbusPDUReadFileRecordRequestItem factory function for _ModbusPDUReadFileRecordRequestItem
func NewModbusPDUReadFileRecordResponse ¶
func NewModbusPDUReadFileRecordResponse(items []ModbusPDUReadFileRecordResponseItem) *_ModbusPDUReadFileRecordResponse
NewModbusPDUReadFileRecordResponse factory function for _ModbusPDUReadFileRecordResponse
func NewModbusPDUReadFileRecordResponseItem ¶
func NewModbusPDUReadFileRecordResponseItem(referenceType uint8, data []byte) *_ModbusPDUReadFileRecordResponseItem
NewModbusPDUReadFileRecordResponseItem factory function for _ModbusPDUReadFileRecordResponseItem
func NewModbusPDUReadHoldingRegistersRequest ¶
func NewModbusPDUReadHoldingRegistersRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadHoldingRegistersRequest
NewModbusPDUReadHoldingRegistersRequest factory function for _ModbusPDUReadHoldingRegistersRequest
func NewModbusPDUReadHoldingRegistersResponse ¶
func NewModbusPDUReadHoldingRegistersResponse(value []byte) *_ModbusPDUReadHoldingRegistersResponse
NewModbusPDUReadHoldingRegistersResponse factory function for _ModbusPDUReadHoldingRegistersResponse
func NewModbusPDUReadInputRegistersRequest ¶
func NewModbusPDUReadInputRegistersRequest(startingAddress uint16, quantity uint16) *_ModbusPDUReadInputRegistersRequest
NewModbusPDUReadInputRegistersRequest factory function for _ModbusPDUReadInputRegistersRequest
func NewModbusPDUReadInputRegistersResponse ¶
func NewModbusPDUReadInputRegistersResponse(value []byte) *_ModbusPDUReadInputRegistersResponse
NewModbusPDUReadInputRegistersResponse factory function for _ModbusPDUReadInputRegistersResponse
func NewModbusPDUReadWriteMultipleHoldingRegistersRequest ¶
func NewModbusPDUReadWriteMultipleHoldingRegistersRequest(readStartingAddress uint16, readQuantity uint16, writeStartingAddress uint16, writeQuantity uint16, value []byte) *_ModbusPDUReadWriteMultipleHoldingRegistersRequest
NewModbusPDUReadWriteMultipleHoldingRegistersRequest factory function for _ModbusPDUReadWriteMultipleHoldingRegistersRequest
func NewModbusPDUReadWriteMultipleHoldingRegistersResponse ¶
func NewModbusPDUReadWriteMultipleHoldingRegistersResponse(value []byte) *_ModbusPDUReadWriteMultipleHoldingRegistersResponse
NewModbusPDUReadWriteMultipleHoldingRegistersResponse factory function for _ModbusPDUReadWriteMultipleHoldingRegistersResponse
func NewModbusPDUReportServerIdRequest ¶
func NewModbusPDUReportServerIdRequest() *_ModbusPDUReportServerIdRequest
NewModbusPDUReportServerIdRequest factory function for _ModbusPDUReportServerIdRequest
func NewModbusPDUReportServerIdResponse ¶
func NewModbusPDUReportServerIdResponse(value []byte) *_ModbusPDUReportServerIdResponse
NewModbusPDUReportServerIdResponse factory function for _ModbusPDUReportServerIdResponse
func NewModbusPDUWriteFileRecordRequest ¶
func NewModbusPDUWriteFileRecordRequest(items []ModbusPDUWriteFileRecordRequestItem) *_ModbusPDUWriteFileRecordRequest
NewModbusPDUWriteFileRecordRequest factory function for _ModbusPDUWriteFileRecordRequest
func NewModbusPDUWriteFileRecordRequestItem ¶
func NewModbusPDUWriteFileRecordRequestItem(referenceType uint8, fileNumber uint16, recordNumber uint16, recordData []byte) *_ModbusPDUWriteFileRecordRequestItem
NewModbusPDUWriteFileRecordRequestItem factory function for _ModbusPDUWriteFileRecordRequestItem
func NewModbusPDUWriteFileRecordResponse ¶
func NewModbusPDUWriteFileRecordResponse(items []ModbusPDUWriteFileRecordResponseItem) *_ModbusPDUWriteFileRecordResponse
NewModbusPDUWriteFileRecordResponse factory function for _ModbusPDUWriteFileRecordResponse
func NewModbusPDUWriteFileRecordResponseItem ¶
func NewModbusPDUWriteFileRecordResponseItem(referenceType uint8, fileNumber uint16, recordNumber uint16, recordData []byte) *_ModbusPDUWriteFileRecordResponseItem
NewModbusPDUWriteFileRecordResponseItem factory function for _ModbusPDUWriteFileRecordResponseItem
func NewModbusPDUWriteMultipleCoilsRequest ¶
func NewModbusPDUWriteMultipleCoilsRequest(startingAddress uint16, quantity uint16, value []byte) *_ModbusPDUWriteMultipleCoilsRequest
NewModbusPDUWriteMultipleCoilsRequest factory function for _ModbusPDUWriteMultipleCoilsRequest
func NewModbusPDUWriteMultipleCoilsResponse ¶
func NewModbusPDUWriteMultipleCoilsResponse(startingAddress uint16, quantity uint16) *_ModbusPDUWriteMultipleCoilsResponse
NewModbusPDUWriteMultipleCoilsResponse factory function for _ModbusPDUWriteMultipleCoilsResponse
func NewModbusPDUWriteMultipleHoldingRegistersRequest ¶
func NewModbusPDUWriteMultipleHoldingRegistersRequest(startingAddress uint16, quantity uint16, value []byte) *_ModbusPDUWriteMultipleHoldingRegistersRequest
NewModbusPDUWriteMultipleHoldingRegistersRequest factory function for _ModbusPDUWriteMultipleHoldingRegistersRequest
func NewModbusPDUWriteMultipleHoldingRegistersResponse ¶
func NewModbusPDUWriteMultipleHoldingRegistersResponse(startingAddress uint16, quantity uint16) *_ModbusPDUWriteMultipleHoldingRegistersResponse
NewModbusPDUWriteMultipleHoldingRegistersResponse factory function for _ModbusPDUWriteMultipleHoldingRegistersResponse
func NewModbusPDUWriteSingleCoilRequest ¶
func NewModbusPDUWriteSingleCoilRequest(address uint16, value uint16) *_ModbusPDUWriteSingleCoilRequest
NewModbusPDUWriteSingleCoilRequest factory function for _ModbusPDUWriteSingleCoilRequest
func NewModbusPDUWriteSingleCoilResponse ¶
func NewModbusPDUWriteSingleCoilResponse(address uint16, value uint16) *_ModbusPDUWriteSingleCoilResponse
NewModbusPDUWriteSingleCoilResponse factory function for _ModbusPDUWriteSingleCoilResponse
func NewModbusPDUWriteSingleRegisterRequest ¶
func NewModbusPDUWriteSingleRegisterRequest(address uint16, value uint16) *_ModbusPDUWriteSingleRegisterRequest
NewModbusPDUWriteSingleRegisterRequest factory function for _ModbusPDUWriteSingleRegisterRequest
func NewModbusPDUWriteSingleRegisterResponse ¶
func NewModbusPDUWriteSingleRegisterResponse(address uint16, value uint16) *_ModbusPDUWriteSingleRegisterResponse
NewModbusPDUWriteSingleRegisterResponse factory function for _ModbusPDUWriteSingleRegisterResponse
func NewModbusRtuADU ¶
NewModbusRtuADU factory function for _ModbusRtuADU
Types ¶
type DriverType ¶
type DriverType uint32
DriverType is an enum
const ( DriverType_MODBUS_TCP DriverType = 0x01 DriverType_MODBUS_RTU DriverType = 0x02 DriverType_MODBUS_ASCII DriverType = 0x03 )
func CastDriverType ¶
func CastDriverType(structType any) DriverType
func DriverTypeByName ¶
func DriverTypeByName(value string) (enum DriverType, ok bool)
func DriverTypeByValue ¶
func DriverTypeByValue(value uint32) (enum DriverType, ok bool)
func DriverTypeParse ¶
func DriverTypeParse(ctx context.Context, theBytes []byte) (DriverType, error)
func DriverTypeParseWithBuffer ¶
func DriverTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (DriverType, error)
func (DriverType) GetLengthInBits ¶
func (m DriverType) GetLengthInBits(ctx context.Context) uint16
func (DriverType) GetLengthInBytes ¶
func (m DriverType) GetLengthInBytes(ctx context.Context) uint16
func (DriverType) GetValue ¶
func (e DriverType) GetValue() uint32
func (DriverType) PLC4XEnumName ¶
func (e DriverType) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (DriverType) Serialize ¶
func (e DriverType) Serialize() ([]byte, error)
func (DriverType) SerializeWithWriteBuffer ¶
func (e DriverType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (DriverType) String ¶
func (e DriverType) String() string
type IDriverType ¶
type IDriverType interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IModbusDataType ¶
type IModbusDataType interface { fmt.Stringer utils.LengthAware utils.Serializable DataTypeSize() uint8 }
type IModbusDeviceInformationConformityLevel ¶
type IModbusDeviceInformationConformityLevel interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IModbusDeviceInformationLevel ¶
type IModbusDeviceInformationLevel interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IModbusDeviceInformationMoreFollows ¶
type IModbusDeviceInformationMoreFollows interface { fmt.Stringer utils.LengthAware utils.Serializable }
type IModbusErrorCode ¶
type IModbusErrorCode interface { fmt.Stringer utils.LengthAware utils.Serializable }
type ModbusADU ¶
type ModbusADU interface { ModbusADUContract ModbusADURequirements fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // IsModbusADU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusADU() // CreateBuilder creates a ModbusADUBuilder CreateModbusADUBuilder() ModbusADUBuilder }
ModbusADU is the corresponding interface of ModbusADU
func CastModbusADU
deprecated
type ModbusADUBuilder ¶
type ModbusADUBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusADUBuilder // WithArgResponse sets a parser argument WithArgResponse(bool) ModbusADUBuilder // AsModbusTcpADU converts this build to a subType of ModbusADU. It is always possible to return to current builder using Done() AsModbusTcpADU() ModbusTcpADUBuilder // AsModbusRtuADU converts this build to a subType of ModbusADU. It is always possible to return to current builder using Done() AsModbusRtuADU() ModbusRtuADUBuilder // AsModbusAsciiADU converts this build to a subType of ModbusADU. It is always possible to return to current builder using Done() AsModbusAsciiADU() ModbusAsciiADUBuilder // Build builds the ModbusADU or returns an error if something is wrong PartialBuild() (ModbusADUContract, error) // MustBuild does the same as Build but panics on error PartialMustBuild() ModbusADUContract // Build builds the ModbusADU or returns an error if something is wrong Build() (ModbusADU, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusADU }
ModbusADUBuilder is a builder for ModbusADU
func NewModbusADUBuilder ¶
func NewModbusADUBuilder() ModbusADUBuilder
NewModbusADUBuilder() creates a ModbusADUBuilder
type ModbusADUContract ¶
type ModbusADUContract interface { // GetResponse() returns a parser argument GetResponse() bool // IsModbusADU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusADU() // CreateBuilder creates a ModbusADUBuilder CreateModbusADUBuilder() ModbusADUBuilder }
ModbusADUContract provides a set of functions which can be overwritten by a sub struct
type ModbusADURequirements ¶
type ModbusADURequirements interface { GetLengthInBits(ctx context.Context) uint16 GetLengthInBytes(ctx context.Context) uint16 // GetDriverType returns DriverType (discriminator field) GetDriverType() DriverType }
ModbusADURequirements provides a set of functions which need to be implemented by a sub struct
type ModbusAsciiADU ¶
type ModbusAsciiADU interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusADU // GetAddress returns Address (property field) GetAddress() uint8 // GetPdu returns Pdu (property field) GetPdu() ModbusPDU // IsModbusAsciiADU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusAsciiADU() // CreateBuilder creates a ModbusAsciiADUBuilder CreateModbusAsciiADUBuilder() ModbusAsciiADUBuilder }
ModbusAsciiADU is the corresponding interface of ModbusAsciiADU
func CastModbusAsciiADU
deprecated
func CastModbusAsciiADU(structType any) ModbusAsciiADU
Deprecated: use the interface for direct cast
type ModbusAsciiADUBuilder ¶
type ModbusAsciiADUBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(address uint8, pdu ModbusPDU) ModbusAsciiADUBuilder // WithAddress adds Address (property field) WithAddress(uint8) ModbusAsciiADUBuilder // WithPdu adds Pdu (property field) WithPdu(ModbusPDU) ModbusAsciiADUBuilder // WithPduBuilder adds Pdu (property field) which is build by the builder WithPduBuilder(func(ModbusPDUBuilder) ModbusPDUBuilder) ModbusAsciiADUBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusADUBuilder // Build builds the ModbusAsciiADU or returns an error if something is wrong Build() (ModbusAsciiADU, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusAsciiADU }
ModbusAsciiADUBuilder is a builder for ModbusAsciiADU
func NewModbusAsciiADUBuilder ¶
func NewModbusAsciiADUBuilder() ModbusAsciiADUBuilder
NewModbusAsciiADUBuilder() creates a ModbusAsciiADUBuilder
type ModbusConstants ¶
type ModbusConstants interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // IsModbusConstants is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusConstants() // CreateBuilder creates a ModbusConstantsBuilder CreateModbusConstantsBuilder() ModbusConstantsBuilder }
ModbusConstants is the corresponding interface of ModbusConstants
func CastModbusConstants
deprecated
func CastModbusConstants(structType any) ModbusConstants
Deprecated: use the interface for direct cast
func ModbusConstantsParse ¶
func ModbusConstantsParse(ctx context.Context, theBytes []byte) (ModbusConstants, error)
func ModbusConstantsParseWithBuffer ¶
func ModbusConstantsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusConstants, error)
type ModbusConstantsBuilder ¶
type ModbusConstantsBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusConstantsBuilder // Build builds the ModbusConstants or returns an error if something is wrong Build() (ModbusConstants, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusConstants }
ModbusConstantsBuilder is a builder for ModbusConstants
func NewModbusConstantsBuilder ¶
func NewModbusConstantsBuilder() ModbusConstantsBuilder
NewModbusConstantsBuilder() creates a ModbusConstantsBuilder
type ModbusDataType ¶
type ModbusDataType uint8
ModbusDataType is an enum
const ( ModbusDataType_BOOL ModbusDataType = 1 ModbusDataType_BYTE ModbusDataType = 2 ModbusDataType_WORD ModbusDataType = 3 ModbusDataType_DWORD ModbusDataType = 4 ModbusDataType_LWORD ModbusDataType = 5 ModbusDataType_SINT ModbusDataType = 6 ModbusDataType_INT ModbusDataType = 7 ModbusDataType_DINT ModbusDataType = 8 ModbusDataType_LINT ModbusDataType = 9 ModbusDataType_USINT ModbusDataType = 10 ModbusDataType_UINT ModbusDataType = 11 ModbusDataType_UDINT ModbusDataType = 12 ModbusDataType_ULINT ModbusDataType = 13 ModbusDataType_REAL ModbusDataType = 14 ModbusDataType_LREAL ModbusDataType = 15 ModbusDataType_TIME ModbusDataType = 16 ModbusDataType_LTIME ModbusDataType = 17 ModbusDataType_DATE ModbusDataType = 18 ModbusDataType_LDATE ModbusDataType = 19 ModbusDataType_TIME_OF_DAY ModbusDataType = 20 ModbusDataType_LTIME_OF_DAY ModbusDataType = 21 ModbusDataType_DATE_AND_TIME ModbusDataType = 22 ModbusDataType_LDATE_AND_TIME ModbusDataType = 23 ModbusDataType_CHAR ModbusDataType = 24 ModbusDataType_WCHAR ModbusDataType = 25 ModbusDataType_STRING ModbusDataType = 26 ModbusDataType_WSTRING ModbusDataType = 27 )
func CastModbusDataType ¶
func CastModbusDataType(structType any) ModbusDataType
func ModbusDataTypeByName ¶
func ModbusDataTypeByName(value string) (enum ModbusDataType, ok bool)
func ModbusDataTypeByValue ¶
func ModbusDataTypeByValue(value uint8) (enum ModbusDataType, ok bool)
func ModbusDataTypeFirstEnumForFieldDataTypeSize ¶
func ModbusDataTypeFirstEnumForFieldDataTypeSize(value uint8) (enum ModbusDataType, ok bool)
func ModbusDataTypeParse ¶
func ModbusDataTypeParse(ctx context.Context, theBytes []byte) (ModbusDataType, error)
func ModbusDataTypeParseWithBuffer ¶
func ModbusDataTypeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDataType, error)
func (ModbusDataType) DataTypeSize ¶
func (e ModbusDataType) DataTypeSize() uint8
func (ModbusDataType) GetDataTypeSize ¶
func (e ModbusDataType) GetDataTypeSize() uint8
func (ModbusDataType) GetLengthInBits ¶
func (m ModbusDataType) GetLengthInBits(ctx context.Context) uint16
func (ModbusDataType) GetLengthInBytes ¶
func (m ModbusDataType) GetLengthInBytes(ctx context.Context) uint16
func (ModbusDataType) GetValue ¶
func (e ModbusDataType) GetValue() uint8
func (ModbusDataType) PLC4XEnumName ¶
func (e ModbusDataType) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ModbusDataType) Serialize ¶
func (e ModbusDataType) Serialize() ([]byte, error)
func (ModbusDataType) SerializeWithWriteBuffer ¶
func (e ModbusDataType) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ModbusDataType) String ¶
func (e ModbusDataType) String() string
type ModbusDeviceInformationConformityLevel ¶
type ModbusDeviceInformationConformityLevel uint8
ModbusDeviceInformationConformityLevel is an enum
const ( ModbusDeviceInformationConformityLevel_BASIC_STREAM_ONLY ModbusDeviceInformationConformityLevel = 0x01 ModbusDeviceInformationConformityLevel_REGULAR_STREAM_ONLY ModbusDeviceInformationConformityLevel = 0x02 ModbusDeviceInformationConformityLevel_EXTENDED_STREAM_ONLY ModbusDeviceInformationConformityLevel = 0x03 )
func CastModbusDeviceInformationConformityLevel ¶
func CastModbusDeviceInformationConformityLevel(structType any) ModbusDeviceInformationConformityLevel
func ModbusDeviceInformationConformityLevelByName ¶
func ModbusDeviceInformationConformityLevelByName(value string) (enum ModbusDeviceInformationConformityLevel, ok bool)
func ModbusDeviceInformationConformityLevelByValue ¶
func ModbusDeviceInformationConformityLevelByValue(value uint8) (enum ModbusDeviceInformationConformityLevel, ok bool)
func ModbusDeviceInformationConformityLevelParse ¶
func ModbusDeviceInformationConformityLevelParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationConformityLevel, error)
func ModbusDeviceInformationConformityLevelParseWithBuffer ¶
func ModbusDeviceInformationConformityLevelParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationConformityLevel, error)
func (ModbusDeviceInformationConformityLevel) GetLengthInBits ¶
func (m ModbusDeviceInformationConformityLevel) GetLengthInBits(ctx context.Context) uint16
func (ModbusDeviceInformationConformityLevel) GetLengthInBytes ¶
func (m ModbusDeviceInformationConformityLevel) GetLengthInBytes(ctx context.Context) uint16
func (ModbusDeviceInformationConformityLevel) GetValue ¶
func (e ModbusDeviceInformationConformityLevel) GetValue() uint8
func (ModbusDeviceInformationConformityLevel) PLC4XEnumName ¶
func (e ModbusDeviceInformationConformityLevel) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ModbusDeviceInformationConformityLevel) Serialize ¶
func (e ModbusDeviceInformationConformityLevel) Serialize() ([]byte, error)
func (ModbusDeviceInformationConformityLevel) SerializeWithWriteBuffer ¶
func (e ModbusDeviceInformationConformityLevel) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ModbusDeviceInformationConformityLevel) String ¶
func (e ModbusDeviceInformationConformityLevel) String() string
type ModbusDeviceInformationLevel ¶
type ModbusDeviceInformationLevel uint8
ModbusDeviceInformationLevel is an enum
const ( ModbusDeviceInformationLevel_BASIC ModbusDeviceInformationLevel = 0x01 ModbusDeviceInformationLevel_REGULAR ModbusDeviceInformationLevel = 0x02 ModbusDeviceInformationLevel_EXTENDED ModbusDeviceInformationLevel = 0x03 ModbusDeviceInformationLevel_INDIVIDUAL ModbusDeviceInformationLevel = 0x04 )
func CastModbusDeviceInformationLevel ¶
func CastModbusDeviceInformationLevel(structType any) ModbusDeviceInformationLevel
func ModbusDeviceInformationLevelByName ¶
func ModbusDeviceInformationLevelByName(value string) (enum ModbusDeviceInformationLevel, ok bool)
func ModbusDeviceInformationLevelByValue ¶
func ModbusDeviceInformationLevelByValue(value uint8) (enum ModbusDeviceInformationLevel, ok bool)
func ModbusDeviceInformationLevelParse ¶
func ModbusDeviceInformationLevelParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationLevel, error)
func ModbusDeviceInformationLevelParseWithBuffer ¶
func ModbusDeviceInformationLevelParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationLevel, error)
func (ModbusDeviceInformationLevel) GetLengthInBits ¶
func (m ModbusDeviceInformationLevel) GetLengthInBits(ctx context.Context) uint16
func (ModbusDeviceInformationLevel) GetLengthInBytes ¶
func (m ModbusDeviceInformationLevel) GetLengthInBytes(ctx context.Context) uint16
func (ModbusDeviceInformationLevel) GetValue ¶
func (e ModbusDeviceInformationLevel) GetValue() uint8
func (ModbusDeviceInformationLevel) PLC4XEnumName ¶
func (e ModbusDeviceInformationLevel) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ModbusDeviceInformationLevel) Serialize ¶
func (e ModbusDeviceInformationLevel) Serialize() ([]byte, error)
func (ModbusDeviceInformationLevel) SerializeWithWriteBuffer ¶
func (e ModbusDeviceInformationLevel) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ModbusDeviceInformationLevel) String ¶
func (e ModbusDeviceInformationLevel) String() string
type ModbusDeviceInformationMoreFollows ¶
type ModbusDeviceInformationMoreFollows uint8
ModbusDeviceInformationMoreFollows is an enum
const ( ModbusDeviceInformationMoreFollows_NO_MORE_OBJECTS_AVAILABLE ModbusDeviceInformationMoreFollows = 0x00 ModbusDeviceInformationMoreFollows_MORE_OBJECTS_AVAILABLE ModbusDeviceInformationMoreFollows = 0xFF )
func CastModbusDeviceInformationMoreFollows ¶
func CastModbusDeviceInformationMoreFollows(structType any) ModbusDeviceInformationMoreFollows
func ModbusDeviceInformationMoreFollowsByName ¶
func ModbusDeviceInformationMoreFollowsByName(value string) (enum ModbusDeviceInformationMoreFollows, ok bool)
func ModbusDeviceInformationMoreFollowsByValue ¶
func ModbusDeviceInformationMoreFollowsByValue(value uint8) (enum ModbusDeviceInformationMoreFollows, ok bool)
func ModbusDeviceInformationMoreFollowsParse ¶
func ModbusDeviceInformationMoreFollowsParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationMoreFollows, error)
func ModbusDeviceInformationMoreFollowsParseWithBuffer ¶
func ModbusDeviceInformationMoreFollowsParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationMoreFollows, error)
func (ModbusDeviceInformationMoreFollows) GetLengthInBits ¶
func (m ModbusDeviceInformationMoreFollows) GetLengthInBits(ctx context.Context) uint16
func (ModbusDeviceInformationMoreFollows) GetLengthInBytes ¶
func (m ModbusDeviceInformationMoreFollows) GetLengthInBytes(ctx context.Context) uint16
func (ModbusDeviceInformationMoreFollows) GetValue ¶
func (e ModbusDeviceInformationMoreFollows) GetValue() uint8
func (ModbusDeviceInformationMoreFollows) PLC4XEnumName ¶
func (e ModbusDeviceInformationMoreFollows) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ModbusDeviceInformationMoreFollows) Serialize ¶
func (e ModbusDeviceInformationMoreFollows) Serialize() ([]byte, error)
func (ModbusDeviceInformationMoreFollows) SerializeWithWriteBuffer ¶
func (e ModbusDeviceInformationMoreFollows) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ModbusDeviceInformationMoreFollows) String ¶
func (e ModbusDeviceInformationMoreFollows) String() string
type ModbusDeviceInformationObject ¶
type ModbusDeviceInformationObject interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetObjectId returns ObjectId (property field) GetObjectId() uint8 // GetData returns Data (property field) GetData() []byte // IsModbusDeviceInformationObject is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusDeviceInformationObject() // CreateBuilder creates a ModbusDeviceInformationObjectBuilder CreateModbusDeviceInformationObjectBuilder() ModbusDeviceInformationObjectBuilder }
ModbusDeviceInformationObject is the corresponding interface of ModbusDeviceInformationObject
func CastModbusDeviceInformationObject
deprecated
func CastModbusDeviceInformationObject(structType any) ModbusDeviceInformationObject
Deprecated: use the interface for direct cast
func ModbusDeviceInformationObjectParse ¶
func ModbusDeviceInformationObjectParse(ctx context.Context, theBytes []byte) (ModbusDeviceInformationObject, error)
func ModbusDeviceInformationObjectParseWithBuffer ¶
func ModbusDeviceInformationObjectParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusDeviceInformationObject, error)
type ModbusDeviceInformationObjectBuilder ¶
type ModbusDeviceInformationObjectBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(objectId uint8, data []byte) ModbusDeviceInformationObjectBuilder // WithObjectId adds ObjectId (property field) WithObjectId(uint8) ModbusDeviceInformationObjectBuilder // WithData adds Data (property field) WithData(...byte) ModbusDeviceInformationObjectBuilder // Build builds the ModbusDeviceInformationObject or returns an error if something is wrong Build() (ModbusDeviceInformationObject, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusDeviceInformationObject }
ModbusDeviceInformationObjectBuilder is a builder for ModbusDeviceInformationObject
func NewModbusDeviceInformationObjectBuilder ¶
func NewModbusDeviceInformationObjectBuilder() ModbusDeviceInformationObjectBuilder
NewModbusDeviceInformationObjectBuilder() creates a ModbusDeviceInformationObjectBuilder
type ModbusErrorCode ¶
type ModbusErrorCode uint8
ModbusErrorCode is an enum
const ( ModbusErrorCode_ILLEGAL_FUNCTION ModbusErrorCode = 1 ModbusErrorCode_ILLEGAL_DATA_ADDRESS ModbusErrorCode = 2 ModbusErrorCode_ILLEGAL_DATA_VALUE ModbusErrorCode = 3 ModbusErrorCode_SLAVE_DEVICE_FAILURE ModbusErrorCode = 4 ModbusErrorCode_ACKNOWLEDGE ModbusErrorCode = 5 ModbusErrorCode_SLAVE_DEVICE_BUSY ModbusErrorCode = 6 ModbusErrorCode_NEGATIVE_ACKNOWLEDGE ModbusErrorCode = 7 ModbusErrorCode_MEMORY_PARITY_ERROR ModbusErrorCode = 8 ModbusErrorCode_GATEWAY_PATH_UNAVAILABLE ModbusErrorCode = 10 ModbusErrorCode_GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND ModbusErrorCode = 11 )
func CastModbusErrorCode ¶
func CastModbusErrorCode(structType any) ModbusErrorCode
func ModbusErrorCodeByName ¶
func ModbusErrorCodeByName(value string) (enum ModbusErrorCode, ok bool)
func ModbusErrorCodeByValue ¶
func ModbusErrorCodeByValue(value uint8) (enum ModbusErrorCode, ok bool)
func ModbusErrorCodeParse ¶
func ModbusErrorCodeParse(ctx context.Context, theBytes []byte) (ModbusErrorCode, error)
func ModbusErrorCodeParseWithBuffer ¶
func ModbusErrorCodeParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusErrorCode, error)
func (ModbusErrorCode) GetLengthInBits ¶
func (m ModbusErrorCode) GetLengthInBits(ctx context.Context) uint16
func (ModbusErrorCode) GetLengthInBytes ¶
func (m ModbusErrorCode) GetLengthInBytes(ctx context.Context) uint16
func (ModbusErrorCode) GetValue ¶
func (e ModbusErrorCode) GetValue() uint8
func (ModbusErrorCode) PLC4XEnumName ¶
func (e ModbusErrorCode) PLC4XEnumName() string
PLC4XEnumName returns the name that is used in code to identify this enum
func (ModbusErrorCode) Serialize ¶
func (e ModbusErrorCode) Serialize() ([]byte, error)
func (ModbusErrorCode) SerializeWithWriteBuffer ¶
func (e ModbusErrorCode) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (ModbusErrorCode) String ¶
func (e ModbusErrorCode) String() string
type ModbusPDU ¶
type ModbusPDU interface { ModbusPDUContract ModbusPDURequirements fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // IsModbusPDU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDU() // CreateBuilder creates a ModbusPDUBuilder CreateModbusPDUBuilder() ModbusPDUBuilder }
ModbusPDU is the corresponding interface of ModbusPDU
func CastModbusPDU
deprecated
type ModbusPDUBuilder ¶
type ModbusPDUBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusPDUBuilder // AsModbusPDUError converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUError() ModbusPDUErrorBuilder // AsModbusPDUReadDiscreteInputsRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadDiscreteInputsRequest() ModbusPDUReadDiscreteInputsRequestBuilder // AsModbusPDUReadDiscreteInputsResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadDiscreteInputsResponse() ModbusPDUReadDiscreteInputsResponseBuilder // AsModbusPDUReadCoilsRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadCoilsRequest() ModbusPDUReadCoilsRequestBuilder // AsModbusPDUReadCoilsResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadCoilsResponse() ModbusPDUReadCoilsResponseBuilder // AsModbusPDUWriteSingleCoilRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteSingleCoilRequest() ModbusPDUWriteSingleCoilRequestBuilder // AsModbusPDUWriteSingleCoilResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteSingleCoilResponse() ModbusPDUWriteSingleCoilResponseBuilder // AsModbusPDUWriteMultipleCoilsRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteMultipleCoilsRequest() ModbusPDUWriteMultipleCoilsRequestBuilder // AsModbusPDUWriteMultipleCoilsResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteMultipleCoilsResponse() ModbusPDUWriteMultipleCoilsResponseBuilder // AsModbusPDUReadInputRegistersRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadInputRegistersRequest() ModbusPDUReadInputRegistersRequestBuilder // AsModbusPDUReadInputRegistersResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadInputRegistersResponse() ModbusPDUReadInputRegistersResponseBuilder // AsModbusPDUReadHoldingRegistersRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadHoldingRegistersRequest() ModbusPDUReadHoldingRegistersRequestBuilder // AsModbusPDUReadHoldingRegistersResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadHoldingRegistersResponse() ModbusPDUReadHoldingRegistersResponseBuilder // AsModbusPDUWriteSingleRegisterRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteSingleRegisterRequest() ModbusPDUWriteSingleRegisterRequestBuilder // AsModbusPDUWriteSingleRegisterResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteSingleRegisterResponse() ModbusPDUWriteSingleRegisterResponseBuilder // AsModbusPDUWriteMultipleHoldingRegistersRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteMultipleHoldingRegistersRequest() ModbusPDUWriteMultipleHoldingRegistersRequestBuilder // AsModbusPDUWriteMultipleHoldingRegistersResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteMultipleHoldingRegistersResponse() ModbusPDUWriteMultipleHoldingRegistersResponseBuilder // AsModbusPDUReadWriteMultipleHoldingRegistersRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadWriteMultipleHoldingRegistersRequest() ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // AsModbusPDUReadWriteMultipleHoldingRegistersResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadWriteMultipleHoldingRegistersResponse() ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder // AsModbusPDUMaskWriteHoldingRegisterRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUMaskWriteHoldingRegisterRequest() ModbusPDUMaskWriteHoldingRegisterRequestBuilder // AsModbusPDUMaskWriteHoldingRegisterResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUMaskWriteHoldingRegisterResponse() ModbusPDUMaskWriteHoldingRegisterResponseBuilder // AsModbusPDUReadFifoQueueRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadFifoQueueRequest() ModbusPDUReadFifoQueueRequestBuilder // AsModbusPDUReadFifoQueueResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadFifoQueueResponse() ModbusPDUReadFifoQueueResponseBuilder // AsModbusPDUReadFileRecordRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadFileRecordRequest() ModbusPDUReadFileRecordRequestBuilder // AsModbusPDUReadFileRecordResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadFileRecordResponse() ModbusPDUReadFileRecordResponseBuilder // AsModbusPDUWriteFileRecordRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteFileRecordRequest() ModbusPDUWriteFileRecordRequestBuilder // AsModbusPDUWriteFileRecordResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUWriteFileRecordResponse() ModbusPDUWriteFileRecordResponseBuilder // AsModbusPDUReadExceptionStatusRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadExceptionStatusRequest() ModbusPDUReadExceptionStatusRequestBuilder // AsModbusPDUReadExceptionStatusResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadExceptionStatusResponse() ModbusPDUReadExceptionStatusResponseBuilder // AsModbusPDUDiagnosticRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUDiagnosticRequest() ModbusPDUDiagnosticRequestBuilder // AsModbusPDUDiagnosticResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUDiagnosticResponse() ModbusPDUDiagnosticResponseBuilder // AsModbusPDUGetComEventCounterRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUGetComEventCounterRequest() ModbusPDUGetComEventCounterRequestBuilder // AsModbusPDUGetComEventCounterResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUGetComEventCounterResponse() ModbusPDUGetComEventCounterResponseBuilder // AsModbusPDUGetComEventLogRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUGetComEventLogRequest() ModbusPDUGetComEventLogRequestBuilder // AsModbusPDUGetComEventLogResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUGetComEventLogResponse() ModbusPDUGetComEventLogResponseBuilder // AsModbusPDUReportServerIdRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReportServerIdRequest() ModbusPDUReportServerIdRequestBuilder // AsModbusPDUReportServerIdResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReportServerIdResponse() ModbusPDUReportServerIdResponseBuilder // AsModbusPDUReadDeviceIdentificationRequest converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadDeviceIdentificationRequest() ModbusPDUReadDeviceIdentificationRequestBuilder // AsModbusPDUReadDeviceIdentificationResponse converts this build to a subType of ModbusPDU. It is always possible to return to current builder using Done() AsModbusPDUReadDeviceIdentificationResponse() ModbusPDUReadDeviceIdentificationResponseBuilder // Build builds the ModbusPDU or returns an error if something is wrong PartialBuild() (ModbusPDUContract, error) // MustBuild does the same as Build but panics on error PartialMustBuild() ModbusPDUContract // Build builds the ModbusPDU or returns an error if something is wrong Build() (ModbusPDU, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDU }
ModbusPDUBuilder is a builder for ModbusPDU
func NewModbusPDUBuilder ¶
func NewModbusPDUBuilder() ModbusPDUBuilder
NewModbusPDUBuilder() creates a ModbusPDUBuilder
type ModbusPDUContract ¶
type ModbusPDUContract interface { // IsModbusPDU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDU() // CreateBuilder creates a ModbusPDUBuilder CreateModbusPDUBuilder() ModbusPDUBuilder }
ModbusPDUContract provides a set of functions which can be overwritten by a sub struct
type ModbusPDUDiagnosticRequest ¶
type ModbusPDUDiagnosticRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetSubFunction returns SubFunction (property field) GetSubFunction() uint16 // GetData returns Data (property field) GetData() uint16 // IsModbusPDUDiagnosticRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUDiagnosticRequest() // CreateBuilder creates a ModbusPDUDiagnosticRequestBuilder CreateModbusPDUDiagnosticRequestBuilder() ModbusPDUDiagnosticRequestBuilder }
ModbusPDUDiagnosticRequest is the corresponding interface of ModbusPDUDiagnosticRequest
func CastModbusPDUDiagnosticRequest
deprecated
func CastModbusPDUDiagnosticRequest(structType any) ModbusPDUDiagnosticRequest
Deprecated: use the interface for direct cast
type ModbusPDUDiagnosticRequestBuilder ¶
type ModbusPDUDiagnosticRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(subFunction uint16, data uint16) ModbusPDUDiagnosticRequestBuilder // WithSubFunction adds SubFunction (property field) WithSubFunction(uint16) ModbusPDUDiagnosticRequestBuilder // WithData adds Data (property field) WithData(uint16) ModbusPDUDiagnosticRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUDiagnosticRequest or returns an error if something is wrong Build() (ModbusPDUDiagnosticRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUDiagnosticRequest }
ModbusPDUDiagnosticRequestBuilder is a builder for ModbusPDUDiagnosticRequest
func NewModbusPDUDiagnosticRequestBuilder ¶
func NewModbusPDUDiagnosticRequestBuilder() ModbusPDUDiagnosticRequestBuilder
NewModbusPDUDiagnosticRequestBuilder() creates a ModbusPDUDiagnosticRequestBuilder
type ModbusPDUDiagnosticResponse ¶
type ModbusPDUDiagnosticResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetSubFunction returns SubFunction (property field) GetSubFunction() uint16 // GetData returns Data (property field) GetData() uint16 // IsModbusPDUDiagnosticResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUDiagnosticResponse() // CreateBuilder creates a ModbusPDUDiagnosticResponseBuilder CreateModbusPDUDiagnosticResponseBuilder() ModbusPDUDiagnosticResponseBuilder }
ModbusPDUDiagnosticResponse is the corresponding interface of ModbusPDUDiagnosticResponse
func CastModbusPDUDiagnosticResponse
deprecated
func CastModbusPDUDiagnosticResponse(structType any) ModbusPDUDiagnosticResponse
Deprecated: use the interface for direct cast
type ModbusPDUDiagnosticResponseBuilder ¶
type ModbusPDUDiagnosticResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(subFunction uint16, data uint16) ModbusPDUDiagnosticResponseBuilder // WithSubFunction adds SubFunction (property field) WithSubFunction(uint16) ModbusPDUDiagnosticResponseBuilder // WithData adds Data (property field) WithData(uint16) ModbusPDUDiagnosticResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUDiagnosticResponse or returns an error if something is wrong Build() (ModbusPDUDiagnosticResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUDiagnosticResponse }
ModbusPDUDiagnosticResponseBuilder is a builder for ModbusPDUDiagnosticResponse
func NewModbusPDUDiagnosticResponseBuilder ¶
func NewModbusPDUDiagnosticResponseBuilder() ModbusPDUDiagnosticResponseBuilder
NewModbusPDUDiagnosticResponseBuilder() creates a ModbusPDUDiagnosticResponseBuilder
type ModbusPDUError ¶
type ModbusPDUError interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetExceptionCode returns ExceptionCode (property field) GetExceptionCode() ModbusErrorCode // IsModbusPDUError is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUError() // CreateBuilder creates a ModbusPDUErrorBuilder CreateModbusPDUErrorBuilder() ModbusPDUErrorBuilder }
ModbusPDUError is the corresponding interface of ModbusPDUError
func CastModbusPDUError
deprecated
func CastModbusPDUError(structType any) ModbusPDUError
Deprecated: use the interface for direct cast
type ModbusPDUErrorBuilder ¶
type ModbusPDUErrorBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(exceptionCode ModbusErrorCode) ModbusPDUErrorBuilder // WithExceptionCode adds ExceptionCode (property field) WithExceptionCode(ModbusErrorCode) ModbusPDUErrorBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUError or returns an error if something is wrong Build() (ModbusPDUError, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUError }
ModbusPDUErrorBuilder is a builder for ModbusPDUError
func NewModbusPDUErrorBuilder ¶
func NewModbusPDUErrorBuilder() ModbusPDUErrorBuilder
NewModbusPDUErrorBuilder() creates a ModbusPDUErrorBuilder
type ModbusPDUGetComEventCounterRequest ¶
type ModbusPDUGetComEventCounterRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // IsModbusPDUGetComEventCounterRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUGetComEventCounterRequest() // CreateBuilder creates a ModbusPDUGetComEventCounterRequestBuilder CreateModbusPDUGetComEventCounterRequestBuilder() ModbusPDUGetComEventCounterRequestBuilder }
ModbusPDUGetComEventCounterRequest is the corresponding interface of ModbusPDUGetComEventCounterRequest
func CastModbusPDUGetComEventCounterRequest
deprecated
func CastModbusPDUGetComEventCounterRequest(structType any) ModbusPDUGetComEventCounterRequest
Deprecated: use the interface for direct cast
type ModbusPDUGetComEventCounterRequestBuilder ¶
type ModbusPDUGetComEventCounterRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusPDUGetComEventCounterRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUGetComEventCounterRequest or returns an error if something is wrong Build() (ModbusPDUGetComEventCounterRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUGetComEventCounterRequest }
ModbusPDUGetComEventCounterRequestBuilder is a builder for ModbusPDUGetComEventCounterRequest
func NewModbusPDUGetComEventCounterRequestBuilder ¶
func NewModbusPDUGetComEventCounterRequestBuilder() ModbusPDUGetComEventCounterRequestBuilder
NewModbusPDUGetComEventCounterRequestBuilder() creates a ModbusPDUGetComEventCounterRequestBuilder
type ModbusPDUGetComEventCounterResponse ¶
type ModbusPDUGetComEventCounterResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStatus returns Status (property field) GetStatus() uint16 // GetEventCount returns EventCount (property field) GetEventCount() uint16 // IsModbusPDUGetComEventCounterResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUGetComEventCounterResponse() // CreateBuilder creates a ModbusPDUGetComEventCounterResponseBuilder CreateModbusPDUGetComEventCounterResponseBuilder() ModbusPDUGetComEventCounterResponseBuilder }
ModbusPDUGetComEventCounterResponse is the corresponding interface of ModbusPDUGetComEventCounterResponse
func CastModbusPDUGetComEventCounterResponse
deprecated
func CastModbusPDUGetComEventCounterResponse(structType any) ModbusPDUGetComEventCounterResponse
Deprecated: use the interface for direct cast
type ModbusPDUGetComEventCounterResponseBuilder ¶
type ModbusPDUGetComEventCounterResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(status uint16, eventCount uint16) ModbusPDUGetComEventCounterResponseBuilder // WithStatus adds Status (property field) WithStatus(uint16) ModbusPDUGetComEventCounterResponseBuilder // WithEventCount adds EventCount (property field) WithEventCount(uint16) ModbusPDUGetComEventCounterResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUGetComEventCounterResponse or returns an error if something is wrong Build() (ModbusPDUGetComEventCounterResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUGetComEventCounterResponse }
ModbusPDUGetComEventCounterResponseBuilder is a builder for ModbusPDUGetComEventCounterResponse
func NewModbusPDUGetComEventCounterResponseBuilder ¶
func NewModbusPDUGetComEventCounterResponseBuilder() ModbusPDUGetComEventCounterResponseBuilder
NewModbusPDUGetComEventCounterResponseBuilder() creates a ModbusPDUGetComEventCounterResponseBuilder
type ModbusPDUGetComEventLogRequest ¶
type ModbusPDUGetComEventLogRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // IsModbusPDUGetComEventLogRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUGetComEventLogRequest() // CreateBuilder creates a ModbusPDUGetComEventLogRequestBuilder CreateModbusPDUGetComEventLogRequestBuilder() ModbusPDUGetComEventLogRequestBuilder }
ModbusPDUGetComEventLogRequest is the corresponding interface of ModbusPDUGetComEventLogRequest
func CastModbusPDUGetComEventLogRequest
deprecated
func CastModbusPDUGetComEventLogRequest(structType any) ModbusPDUGetComEventLogRequest
Deprecated: use the interface for direct cast
type ModbusPDUGetComEventLogRequestBuilder ¶
type ModbusPDUGetComEventLogRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusPDUGetComEventLogRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUGetComEventLogRequest or returns an error if something is wrong Build() (ModbusPDUGetComEventLogRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUGetComEventLogRequest }
ModbusPDUGetComEventLogRequestBuilder is a builder for ModbusPDUGetComEventLogRequest
func NewModbusPDUGetComEventLogRequestBuilder ¶
func NewModbusPDUGetComEventLogRequestBuilder() ModbusPDUGetComEventLogRequestBuilder
NewModbusPDUGetComEventLogRequestBuilder() creates a ModbusPDUGetComEventLogRequestBuilder
type ModbusPDUGetComEventLogResponse ¶
type ModbusPDUGetComEventLogResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStatus returns Status (property field) GetStatus() uint16 // GetEventCount returns EventCount (property field) GetEventCount() uint16 // GetMessageCount returns MessageCount (property field) GetMessageCount() uint16 // GetEvents returns Events (property field) GetEvents() []byte // IsModbusPDUGetComEventLogResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUGetComEventLogResponse() // CreateBuilder creates a ModbusPDUGetComEventLogResponseBuilder CreateModbusPDUGetComEventLogResponseBuilder() ModbusPDUGetComEventLogResponseBuilder }
ModbusPDUGetComEventLogResponse is the corresponding interface of ModbusPDUGetComEventLogResponse
func CastModbusPDUGetComEventLogResponse
deprecated
func CastModbusPDUGetComEventLogResponse(structType any) ModbusPDUGetComEventLogResponse
Deprecated: use the interface for direct cast
type ModbusPDUGetComEventLogResponseBuilder ¶
type ModbusPDUGetComEventLogResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(status uint16, eventCount uint16, messageCount uint16, events []byte) ModbusPDUGetComEventLogResponseBuilder // WithStatus adds Status (property field) WithStatus(uint16) ModbusPDUGetComEventLogResponseBuilder // WithEventCount adds EventCount (property field) WithEventCount(uint16) ModbusPDUGetComEventLogResponseBuilder // WithMessageCount adds MessageCount (property field) WithMessageCount(uint16) ModbusPDUGetComEventLogResponseBuilder // WithEvents adds Events (property field) WithEvents(...byte) ModbusPDUGetComEventLogResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUGetComEventLogResponse or returns an error if something is wrong Build() (ModbusPDUGetComEventLogResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUGetComEventLogResponse }
ModbusPDUGetComEventLogResponseBuilder is a builder for ModbusPDUGetComEventLogResponse
func NewModbusPDUGetComEventLogResponseBuilder ¶
func NewModbusPDUGetComEventLogResponseBuilder() ModbusPDUGetComEventLogResponseBuilder
NewModbusPDUGetComEventLogResponseBuilder() creates a ModbusPDUGetComEventLogResponseBuilder
type ModbusPDUMaskWriteHoldingRegisterRequest ¶
type ModbusPDUMaskWriteHoldingRegisterRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetReferenceAddress returns ReferenceAddress (property field) GetReferenceAddress() uint16 // GetAndMask returns AndMask (property field) GetAndMask() uint16 // GetOrMask returns OrMask (property field) GetOrMask() uint16 // IsModbusPDUMaskWriteHoldingRegisterRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUMaskWriteHoldingRegisterRequest() // CreateBuilder creates a ModbusPDUMaskWriteHoldingRegisterRequestBuilder CreateModbusPDUMaskWriteHoldingRegisterRequestBuilder() ModbusPDUMaskWriteHoldingRegisterRequestBuilder }
ModbusPDUMaskWriteHoldingRegisterRequest is the corresponding interface of ModbusPDUMaskWriteHoldingRegisterRequest
func CastModbusPDUMaskWriteHoldingRegisterRequest
deprecated
func CastModbusPDUMaskWriteHoldingRegisterRequest(structType any) ModbusPDUMaskWriteHoldingRegisterRequest
Deprecated: use the interface for direct cast
type ModbusPDUMaskWriteHoldingRegisterRequestBuilder ¶
type ModbusPDUMaskWriteHoldingRegisterRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(referenceAddress uint16, andMask uint16, orMask uint16) ModbusPDUMaskWriteHoldingRegisterRequestBuilder // WithReferenceAddress adds ReferenceAddress (property field) WithReferenceAddress(uint16) ModbusPDUMaskWriteHoldingRegisterRequestBuilder // WithAndMask adds AndMask (property field) WithAndMask(uint16) ModbusPDUMaskWriteHoldingRegisterRequestBuilder // WithOrMask adds OrMask (property field) WithOrMask(uint16) ModbusPDUMaskWriteHoldingRegisterRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUMaskWriteHoldingRegisterRequest or returns an error if something is wrong Build() (ModbusPDUMaskWriteHoldingRegisterRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUMaskWriteHoldingRegisterRequest }
ModbusPDUMaskWriteHoldingRegisterRequestBuilder is a builder for ModbusPDUMaskWriteHoldingRegisterRequest
func NewModbusPDUMaskWriteHoldingRegisterRequestBuilder ¶
func NewModbusPDUMaskWriteHoldingRegisterRequestBuilder() ModbusPDUMaskWriteHoldingRegisterRequestBuilder
NewModbusPDUMaskWriteHoldingRegisterRequestBuilder() creates a ModbusPDUMaskWriteHoldingRegisterRequestBuilder
type ModbusPDUMaskWriteHoldingRegisterResponse ¶
type ModbusPDUMaskWriteHoldingRegisterResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetReferenceAddress returns ReferenceAddress (property field) GetReferenceAddress() uint16 // GetAndMask returns AndMask (property field) GetAndMask() uint16 // GetOrMask returns OrMask (property field) GetOrMask() uint16 // IsModbusPDUMaskWriteHoldingRegisterResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUMaskWriteHoldingRegisterResponse() // CreateBuilder creates a ModbusPDUMaskWriteHoldingRegisterResponseBuilder CreateModbusPDUMaskWriteHoldingRegisterResponseBuilder() ModbusPDUMaskWriteHoldingRegisterResponseBuilder }
ModbusPDUMaskWriteHoldingRegisterResponse is the corresponding interface of ModbusPDUMaskWriteHoldingRegisterResponse
func CastModbusPDUMaskWriteHoldingRegisterResponse
deprecated
func CastModbusPDUMaskWriteHoldingRegisterResponse(structType any) ModbusPDUMaskWriteHoldingRegisterResponse
Deprecated: use the interface for direct cast
type ModbusPDUMaskWriteHoldingRegisterResponseBuilder ¶
type ModbusPDUMaskWriteHoldingRegisterResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(referenceAddress uint16, andMask uint16, orMask uint16) ModbusPDUMaskWriteHoldingRegisterResponseBuilder // WithReferenceAddress adds ReferenceAddress (property field) WithReferenceAddress(uint16) ModbusPDUMaskWriteHoldingRegisterResponseBuilder // WithAndMask adds AndMask (property field) WithAndMask(uint16) ModbusPDUMaskWriteHoldingRegisterResponseBuilder // WithOrMask adds OrMask (property field) WithOrMask(uint16) ModbusPDUMaskWriteHoldingRegisterResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUMaskWriteHoldingRegisterResponse or returns an error if something is wrong Build() (ModbusPDUMaskWriteHoldingRegisterResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUMaskWriteHoldingRegisterResponse }
ModbusPDUMaskWriteHoldingRegisterResponseBuilder is a builder for ModbusPDUMaskWriteHoldingRegisterResponse
func NewModbusPDUMaskWriteHoldingRegisterResponseBuilder ¶
func NewModbusPDUMaskWriteHoldingRegisterResponseBuilder() ModbusPDUMaskWriteHoldingRegisterResponseBuilder
NewModbusPDUMaskWriteHoldingRegisterResponseBuilder() creates a ModbusPDUMaskWriteHoldingRegisterResponseBuilder
type ModbusPDUReadCoilsRequest ¶
type ModbusPDUReadCoilsRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // IsModbusPDUReadCoilsRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadCoilsRequest() // CreateBuilder creates a ModbusPDUReadCoilsRequestBuilder CreateModbusPDUReadCoilsRequestBuilder() ModbusPDUReadCoilsRequestBuilder }
ModbusPDUReadCoilsRequest is the corresponding interface of ModbusPDUReadCoilsRequest
func CastModbusPDUReadCoilsRequest
deprecated
func CastModbusPDUReadCoilsRequest(structType any) ModbusPDUReadCoilsRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadCoilsRequestBuilder ¶
type ModbusPDUReadCoilsRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16) ModbusPDUReadCoilsRequestBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUReadCoilsRequestBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUReadCoilsRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadCoilsRequest or returns an error if something is wrong Build() (ModbusPDUReadCoilsRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadCoilsRequest }
ModbusPDUReadCoilsRequestBuilder is a builder for ModbusPDUReadCoilsRequest
func NewModbusPDUReadCoilsRequestBuilder ¶
func NewModbusPDUReadCoilsRequestBuilder() ModbusPDUReadCoilsRequestBuilder
NewModbusPDUReadCoilsRequestBuilder() creates a ModbusPDUReadCoilsRequestBuilder
type ModbusPDUReadCoilsResponse ¶
type ModbusPDUReadCoilsResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReadCoilsResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadCoilsResponse() // CreateBuilder creates a ModbusPDUReadCoilsResponseBuilder CreateModbusPDUReadCoilsResponseBuilder() ModbusPDUReadCoilsResponseBuilder }
ModbusPDUReadCoilsResponse is the corresponding interface of ModbusPDUReadCoilsResponse
func CastModbusPDUReadCoilsResponse
deprecated
func CastModbusPDUReadCoilsResponse(structType any) ModbusPDUReadCoilsResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadCoilsResponseBuilder ¶
type ModbusPDUReadCoilsResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value []byte) ModbusPDUReadCoilsResponseBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReadCoilsResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadCoilsResponse or returns an error if something is wrong Build() (ModbusPDUReadCoilsResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadCoilsResponse }
ModbusPDUReadCoilsResponseBuilder is a builder for ModbusPDUReadCoilsResponse
func NewModbusPDUReadCoilsResponseBuilder ¶
func NewModbusPDUReadCoilsResponseBuilder() ModbusPDUReadCoilsResponseBuilder
NewModbusPDUReadCoilsResponseBuilder() creates a ModbusPDUReadCoilsResponseBuilder
type ModbusPDUReadDeviceIdentificationRequest ¶
type ModbusPDUReadDeviceIdentificationRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetLevel returns Level (property field) GetLevel() ModbusDeviceInformationLevel // GetObjectId returns ObjectId (property field) GetObjectId() uint8 // IsModbusPDUReadDeviceIdentificationRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadDeviceIdentificationRequest() // CreateBuilder creates a ModbusPDUReadDeviceIdentificationRequestBuilder CreateModbusPDUReadDeviceIdentificationRequestBuilder() ModbusPDUReadDeviceIdentificationRequestBuilder }
ModbusPDUReadDeviceIdentificationRequest is the corresponding interface of ModbusPDUReadDeviceIdentificationRequest
func CastModbusPDUReadDeviceIdentificationRequest
deprecated
func CastModbusPDUReadDeviceIdentificationRequest(structType any) ModbusPDUReadDeviceIdentificationRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadDeviceIdentificationRequestBuilder ¶
type ModbusPDUReadDeviceIdentificationRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(level ModbusDeviceInformationLevel, objectId uint8) ModbusPDUReadDeviceIdentificationRequestBuilder // WithLevel adds Level (property field) WithLevel(ModbusDeviceInformationLevel) ModbusPDUReadDeviceIdentificationRequestBuilder // WithObjectId adds ObjectId (property field) WithObjectId(uint8) ModbusPDUReadDeviceIdentificationRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadDeviceIdentificationRequest or returns an error if something is wrong Build() (ModbusPDUReadDeviceIdentificationRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadDeviceIdentificationRequest }
ModbusPDUReadDeviceIdentificationRequestBuilder is a builder for ModbusPDUReadDeviceIdentificationRequest
func NewModbusPDUReadDeviceIdentificationRequestBuilder ¶
func NewModbusPDUReadDeviceIdentificationRequestBuilder() ModbusPDUReadDeviceIdentificationRequestBuilder
NewModbusPDUReadDeviceIdentificationRequestBuilder() creates a ModbusPDUReadDeviceIdentificationRequestBuilder
type ModbusPDUReadDeviceIdentificationResponse ¶
type ModbusPDUReadDeviceIdentificationResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetLevel returns Level (property field) GetLevel() ModbusDeviceInformationLevel // GetIndividualAccess returns IndividualAccess (property field) GetIndividualAccess() bool // GetConformityLevel returns ConformityLevel (property field) GetConformityLevel() ModbusDeviceInformationConformityLevel // GetMoreFollows returns MoreFollows (property field) GetMoreFollows() ModbusDeviceInformationMoreFollows // GetNextObjectId returns NextObjectId (property field) GetNextObjectId() uint8 // GetObjects returns Objects (property field) GetObjects() []ModbusDeviceInformationObject // IsModbusPDUReadDeviceIdentificationResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadDeviceIdentificationResponse() // CreateBuilder creates a ModbusPDUReadDeviceIdentificationResponseBuilder CreateModbusPDUReadDeviceIdentificationResponseBuilder() ModbusPDUReadDeviceIdentificationResponseBuilder }
ModbusPDUReadDeviceIdentificationResponse is the corresponding interface of ModbusPDUReadDeviceIdentificationResponse
func CastModbusPDUReadDeviceIdentificationResponse
deprecated
func CastModbusPDUReadDeviceIdentificationResponse(structType any) ModbusPDUReadDeviceIdentificationResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadDeviceIdentificationResponseBuilder ¶
type ModbusPDUReadDeviceIdentificationResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(level ModbusDeviceInformationLevel, individualAccess bool, conformityLevel ModbusDeviceInformationConformityLevel, moreFollows ModbusDeviceInformationMoreFollows, nextObjectId uint8, objects []ModbusDeviceInformationObject) ModbusPDUReadDeviceIdentificationResponseBuilder // WithLevel adds Level (property field) WithLevel(ModbusDeviceInformationLevel) ModbusPDUReadDeviceIdentificationResponseBuilder // WithIndividualAccess adds IndividualAccess (property field) WithIndividualAccess(bool) ModbusPDUReadDeviceIdentificationResponseBuilder // WithConformityLevel adds ConformityLevel (property field) WithConformityLevel(ModbusDeviceInformationConformityLevel) ModbusPDUReadDeviceIdentificationResponseBuilder // WithMoreFollows adds MoreFollows (property field) WithMoreFollows(ModbusDeviceInformationMoreFollows) ModbusPDUReadDeviceIdentificationResponseBuilder // WithNextObjectId adds NextObjectId (property field) WithNextObjectId(uint8) ModbusPDUReadDeviceIdentificationResponseBuilder // WithObjects adds Objects (property field) WithObjects(...ModbusDeviceInformationObject) ModbusPDUReadDeviceIdentificationResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadDeviceIdentificationResponse or returns an error if something is wrong Build() (ModbusPDUReadDeviceIdentificationResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadDeviceIdentificationResponse }
ModbusPDUReadDeviceIdentificationResponseBuilder is a builder for ModbusPDUReadDeviceIdentificationResponse
func NewModbusPDUReadDeviceIdentificationResponseBuilder ¶
func NewModbusPDUReadDeviceIdentificationResponseBuilder() ModbusPDUReadDeviceIdentificationResponseBuilder
NewModbusPDUReadDeviceIdentificationResponseBuilder() creates a ModbusPDUReadDeviceIdentificationResponseBuilder
type ModbusPDUReadDiscreteInputsRequest ¶
type ModbusPDUReadDiscreteInputsRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // IsModbusPDUReadDiscreteInputsRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadDiscreteInputsRequest() // CreateBuilder creates a ModbusPDUReadDiscreteInputsRequestBuilder CreateModbusPDUReadDiscreteInputsRequestBuilder() ModbusPDUReadDiscreteInputsRequestBuilder }
ModbusPDUReadDiscreteInputsRequest is the corresponding interface of ModbusPDUReadDiscreteInputsRequest
func CastModbusPDUReadDiscreteInputsRequest
deprecated
func CastModbusPDUReadDiscreteInputsRequest(structType any) ModbusPDUReadDiscreteInputsRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadDiscreteInputsRequestBuilder ¶
type ModbusPDUReadDiscreteInputsRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16) ModbusPDUReadDiscreteInputsRequestBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUReadDiscreteInputsRequestBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUReadDiscreteInputsRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadDiscreteInputsRequest or returns an error if something is wrong Build() (ModbusPDUReadDiscreteInputsRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadDiscreteInputsRequest }
ModbusPDUReadDiscreteInputsRequestBuilder is a builder for ModbusPDUReadDiscreteInputsRequest
func NewModbusPDUReadDiscreteInputsRequestBuilder ¶
func NewModbusPDUReadDiscreteInputsRequestBuilder() ModbusPDUReadDiscreteInputsRequestBuilder
NewModbusPDUReadDiscreteInputsRequestBuilder() creates a ModbusPDUReadDiscreteInputsRequestBuilder
type ModbusPDUReadDiscreteInputsResponse ¶
type ModbusPDUReadDiscreteInputsResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReadDiscreteInputsResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadDiscreteInputsResponse() // CreateBuilder creates a ModbusPDUReadDiscreteInputsResponseBuilder CreateModbusPDUReadDiscreteInputsResponseBuilder() ModbusPDUReadDiscreteInputsResponseBuilder }
ModbusPDUReadDiscreteInputsResponse is the corresponding interface of ModbusPDUReadDiscreteInputsResponse
func CastModbusPDUReadDiscreteInputsResponse
deprecated
func CastModbusPDUReadDiscreteInputsResponse(structType any) ModbusPDUReadDiscreteInputsResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadDiscreteInputsResponseBuilder ¶
type ModbusPDUReadDiscreteInputsResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value []byte) ModbusPDUReadDiscreteInputsResponseBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReadDiscreteInputsResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadDiscreteInputsResponse or returns an error if something is wrong Build() (ModbusPDUReadDiscreteInputsResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadDiscreteInputsResponse }
ModbusPDUReadDiscreteInputsResponseBuilder is a builder for ModbusPDUReadDiscreteInputsResponse
func NewModbusPDUReadDiscreteInputsResponseBuilder ¶
func NewModbusPDUReadDiscreteInputsResponseBuilder() ModbusPDUReadDiscreteInputsResponseBuilder
NewModbusPDUReadDiscreteInputsResponseBuilder() creates a ModbusPDUReadDiscreteInputsResponseBuilder
type ModbusPDUReadExceptionStatusRequest ¶
type ModbusPDUReadExceptionStatusRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // IsModbusPDUReadExceptionStatusRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadExceptionStatusRequest() // CreateBuilder creates a ModbusPDUReadExceptionStatusRequestBuilder CreateModbusPDUReadExceptionStatusRequestBuilder() ModbusPDUReadExceptionStatusRequestBuilder }
ModbusPDUReadExceptionStatusRequest is the corresponding interface of ModbusPDUReadExceptionStatusRequest
func CastModbusPDUReadExceptionStatusRequest
deprecated
func CastModbusPDUReadExceptionStatusRequest(structType any) ModbusPDUReadExceptionStatusRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadExceptionStatusRequestBuilder ¶
type ModbusPDUReadExceptionStatusRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusPDUReadExceptionStatusRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadExceptionStatusRequest or returns an error if something is wrong Build() (ModbusPDUReadExceptionStatusRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadExceptionStatusRequest }
ModbusPDUReadExceptionStatusRequestBuilder is a builder for ModbusPDUReadExceptionStatusRequest
func NewModbusPDUReadExceptionStatusRequestBuilder ¶
func NewModbusPDUReadExceptionStatusRequestBuilder() ModbusPDUReadExceptionStatusRequestBuilder
NewModbusPDUReadExceptionStatusRequestBuilder() creates a ModbusPDUReadExceptionStatusRequestBuilder
type ModbusPDUReadExceptionStatusResponse ¶
type ModbusPDUReadExceptionStatusResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() uint8 // IsModbusPDUReadExceptionStatusResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadExceptionStatusResponse() // CreateBuilder creates a ModbusPDUReadExceptionStatusResponseBuilder CreateModbusPDUReadExceptionStatusResponseBuilder() ModbusPDUReadExceptionStatusResponseBuilder }
ModbusPDUReadExceptionStatusResponse is the corresponding interface of ModbusPDUReadExceptionStatusResponse
func CastModbusPDUReadExceptionStatusResponse
deprecated
func CastModbusPDUReadExceptionStatusResponse(structType any) ModbusPDUReadExceptionStatusResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadExceptionStatusResponseBuilder ¶
type ModbusPDUReadExceptionStatusResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value uint8) ModbusPDUReadExceptionStatusResponseBuilder // WithValue adds Value (property field) WithValue(uint8) ModbusPDUReadExceptionStatusResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadExceptionStatusResponse or returns an error if something is wrong Build() (ModbusPDUReadExceptionStatusResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadExceptionStatusResponse }
ModbusPDUReadExceptionStatusResponseBuilder is a builder for ModbusPDUReadExceptionStatusResponse
func NewModbusPDUReadExceptionStatusResponseBuilder ¶
func NewModbusPDUReadExceptionStatusResponseBuilder() ModbusPDUReadExceptionStatusResponseBuilder
NewModbusPDUReadExceptionStatusResponseBuilder() creates a ModbusPDUReadExceptionStatusResponseBuilder
type ModbusPDUReadFifoQueueRequest ¶
type ModbusPDUReadFifoQueueRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetFifoPointerAddress returns FifoPointerAddress (property field) GetFifoPointerAddress() uint16 // IsModbusPDUReadFifoQueueRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadFifoQueueRequest() // CreateBuilder creates a ModbusPDUReadFifoQueueRequestBuilder CreateModbusPDUReadFifoQueueRequestBuilder() ModbusPDUReadFifoQueueRequestBuilder }
ModbusPDUReadFifoQueueRequest is the corresponding interface of ModbusPDUReadFifoQueueRequest
func CastModbusPDUReadFifoQueueRequest
deprecated
func CastModbusPDUReadFifoQueueRequest(structType any) ModbusPDUReadFifoQueueRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadFifoQueueRequestBuilder ¶
type ModbusPDUReadFifoQueueRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(fifoPointerAddress uint16) ModbusPDUReadFifoQueueRequestBuilder // WithFifoPointerAddress adds FifoPointerAddress (property field) WithFifoPointerAddress(uint16) ModbusPDUReadFifoQueueRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadFifoQueueRequest or returns an error if something is wrong Build() (ModbusPDUReadFifoQueueRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadFifoQueueRequest }
ModbusPDUReadFifoQueueRequestBuilder is a builder for ModbusPDUReadFifoQueueRequest
func NewModbusPDUReadFifoQueueRequestBuilder ¶
func NewModbusPDUReadFifoQueueRequestBuilder() ModbusPDUReadFifoQueueRequestBuilder
NewModbusPDUReadFifoQueueRequestBuilder() creates a ModbusPDUReadFifoQueueRequestBuilder
type ModbusPDUReadFifoQueueResponse ¶
type ModbusPDUReadFifoQueueResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetFifoValue returns FifoValue (property field) GetFifoValue() []uint16 // IsModbusPDUReadFifoQueueResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadFifoQueueResponse() // CreateBuilder creates a ModbusPDUReadFifoQueueResponseBuilder CreateModbusPDUReadFifoQueueResponseBuilder() ModbusPDUReadFifoQueueResponseBuilder }
ModbusPDUReadFifoQueueResponse is the corresponding interface of ModbusPDUReadFifoQueueResponse
func CastModbusPDUReadFifoQueueResponse
deprecated
func CastModbusPDUReadFifoQueueResponse(structType any) ModbusPDUReadFifoQueueResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadFifoQueueResponseBuilder ¶
type ModbusPDUReadFifoQueueResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(fifoValue []uint16) ModbusPDUReadFifoQueueResponseBuilder // WithFifoValue adds FifoValue (property field) WithFifoValue(...uint16) ModbusPDUReadFifoQueueResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadFifoQueueResponse or returns an error if something is wrong Build() (ModbusPDUReadFifoQueueResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadFifoQueueResponse }
ModbusPDUReadFifoQueueResponseBuilder is a builder for ModbusPDUReadFifoQueueResponse
func NewModbusPDUReadFifoQueueResponseBuilder ¶
func NewModbusPDUReadFifoQueueResponseBuilder() ModbusPDUReadFifoQueueResponseBuilder
NewModbusPDUReadFifoQueueResponseBuilder() creates a ModbusPDUReadFifoQueueResponseBuilder
type ModbusPDUReadFileRecordRequest ¶
type ModbusPDUReadFileRecordRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetItems returns Items (property field) GetItems() []ModbusPDUReadFileRecordRequestItem // IsModbusPDUReadFileRecordRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadFileRecordRequest() // CreateBuilder creates a ModbusPDUReadFileRecordRequestBuilder CreateModbusPDUReadFileRecordRequestBuilder() ModbusPDUReadFileRecordRequestBuilder }
ModbusPDUReadFileRecordRequest is the corresponding interface of ModbusPDUReadFileRecordRequest
func CastModbusPDUReadFileRecordRequest
deprecated
func CastModbusPDUReadFileRecordRequest(structType any) ModbusPDUReadFileRecordRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadFileRecordRequestBuilder ¶
type ModbusPDUReadFileRecordRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(items []ModbusPDUReadFileRecordRequestItem) ModbusPDUReadFileRecordRequestBuilder // WithItems adds Items (property field) WithItems(...ModbusPDUReadFileRecordRequestItem) ModbusPDUReadFileRecordRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadFileRecordRequest or returns an error if something is wrong Build() (ModbusPDUReadFileRecordRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadFileRecordRequest }
ModbusPDUReadFileRecordRequestBuilder is a builder for ModbusPDUReadFileRecordRequest
func NewModbusPDUReadFileRecordRequestBuilder ¶
func NewModbusPDUReadFileRecordRequestBuilder() ModbusPDUReadFileRecordRequestBuilder
NewModbusPDUReadFileRecordRequestBuilder() creates a ModbusPDUReadFileRecordRequestBuilder
type ModbusPDUReadFileRecordRequestItem ¶
type ModbusPDUReadFileRecordRequestItem interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetReferenceType returns ReferenceType (property field) GetReferenceType() uint8 // GetFileNumber returns FileNumber (property field) GetFileNumber() uint16 // GetRecordNumber returns RecordNumber (property field) GetRecordNumber() uint16 // GetRecordLength returns RecordLength (property field) GetRecordLength() uint16 // IsModbusPDUReadFileRecordRequestItem is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadFileRecordRequestItem() // CreateBuilder creates a ModbusPDUReadFileRecordRequestItemBuilder CreateModbusPDUReadFileRecordRequestItemBuilder() ModbusPDUReadFileRecordRequestItemBuilder }
ModbusPDUReadFileRecordRequestItem is the corresponding interface of ModbusPDUReadFileRecordRequestItem
func CastModbusPDUReadFileRecordRequestItem
deprecated
func CastModbusPDUReadFileRecordRequestItem(structType any) ModbusPDUReadFileRecordRequestItem
Deprecated: use the interface for direct cast
func ModbusPDUReadFileRecordRequestItemParse ¶
func ModbusPDUReadFileRecordRequestItemParse(ctx context.Context, theBytes []byte) (ModbusPDUReadFileRecordRequestItem, error)
func ModbusPDUReadFileRecordRequestItemParseWithBuffer ¶
func ModbusPDUReadFileRecordRequestItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUReadFileRecordRequestItem, error)
type ModbusPDUReadFileRecordRequestItemBuilder ¶
type ModbusPDUReadFileRecordRequestItemBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(referenceType uint8, fileNumber uint16, recordNumber uint16, recordLength uint16) ModbusPDUReadFileRecordRequestItemBuilder // WithReferenceType adds ReferenceType (property field) WithReferenceType(uint8) ModbusPDUReadFileRecordRequestItemBuilder // WithFileNumber adds FileNumber (property field) WithFileNumber(uint16) ModbusPDUReadFileRecordRequestItemBuilder // WithRecordNumber adds RecordNumber (property field) WithRecordNumber(uint16) ModbusPDUReadFileRecordRequestItemBuilder // WithRecordLength adds RecordLength (property field) WithRecordLength(uint16) ModbusPDUReadFileRecordRequestItemBuilder // Build builds the ModbusPDUReadFileRecordRequestItem or returns an error if something is wrong Build() (ModbusPDUReadFileRecordRequestItem, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadFileRecordRequestItem }
ModbusPDUReadFileRecordRequestItemBuilder is a builder for ModbusPDUReadFileRecordRequestItem
func NewModbusPDUReadFileRecordRequestItemBuilder ¶
func NewModbusPDUReadFileRecordRequestItemBuilder() ModbusPDUReadFileRecordRequestItemBuilder
NewModbusPDUReadFileRecordRequestItemBuilder() creates a ModbusPDUReadFileRecordRequestItemBuilder
type ModbusPDUReadFileRecordResponse ¶
type ModbusPDUReadFileRecordResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetItems returns Items (property field) GetItems() []ModbusPDUReadFileRecordResponseItem // IsModbusPDUReadFileRecordResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadFileRecordResponse() // CreateBuilder creates a ModbusPDUReadFileRecordResponseBuilder CreateModbusPDUReadFileRecordResponseBuilder() ModbusPDUReadFileRecordResponseBuilder }
ModbusPDUReadFileRecordResponse is the corresponding interface of ModbusPDUReadFileRecordResponse
func CastModbusPDUReadFileRecordResponse
deprecated
func CastModbusPDUReadFileRecordResponse(structType any) ModbusPDUReadFileRecordResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadFileRecordResponseBuilder ¶
type ModbusPDUReadFileRecordResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(items []ModbusPDUReadFileRecordResponseItem) ModbusPDUReadFileRecordResponseBuilder // WithItems adds Items (property field) WithItems(...ModbusPDUReadFileRecordResponseItem) ModbusPDUReadFileRecordResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadFileRecordResponse or returns an error if something is wrong Build() (ModbusPDUReadFileRecordResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadFileRecordResponse }
ModbusPDUReadFileRecordResponseBuilder is a builder for ModbusPDUReadFileRecordResponse
func NewModbusPDUReadFileRecordResponseBuilder ¶
func NewModbusPDUReadFileRecordResponseBuilder() ModbusPDUReadFileRecordResponseBuilder
NewModbusPDUReadFileRecordResponseBuilder() creates a ModbusPDUReadFileRecordResponseBuilder
type ModbusPDUReadFileRecordResponseItem ¶
type ModbusPDUReadFileRecordResponseItem interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetReferenceType returns ReferenceType (property field) GetReferenceType() uint8 // GetData returns Data (property field) GetData() []byte // IsModbusPDUReadFileRecordResponseItem is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadFileRecordResponseItem() // CreateBuilder creates a ModbusPDUReadFileRecordResponseItemBuilder CreateModbusPDUReadFileRecordResponseItemBuilder() ModbusPDUReadFileRecordResponseItemBuilder }
ModbusPDUReadFileRecordResponseItem is the corresponding interface of ModbusPDUReadFileRecordResponseItem
func CastModbusPDUReadFileRecordResponseItem
deprecated
func CastModbusPDUReadFileRecordResponseItem(structType any) ModbusPDUReadFileRecordResponseItem
Deprecated: use the interface for direct cast
func ModbusPDUReadFileRecordResponseItemParse ¶
func ModbusPDUReadFileRecordResponseItemParse(ctx context.Context, theBytes []byte) (ModbusPDUReadFileRecordResponseItem, error)
func ModbusPDUReadFileRecordResponseItemParseWithBuffer ¶
func ModbusPDUReadFileRecordResponseItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUReadFileRecordResponseItem, error)
type ModbusPDUReadFileRecordResponseItemBuilder ¶
type ModbusPDUReadFileRecordResponseItemBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(referenceType uint8, data []byte) ModbusPDUReadFileRecordResponseItemBuilder // WithReferenceType adds ReferenceType (property field) WithReferenceType(uint8) ModbusPDUReadFileRecordResponseItemBuilder // WithData adds Data (property field) WithData(...byte) ModbusPDUReadFileRecordResponseItemBuilder // Build builds the ModbusPDUReadFileRecordResponseItem or returns an error if something is wrong Build() (ModbusPDUReadFileRecordResponseItem, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadFileRecordResponseItem }
ModbusPDUReadFileRecordResponseItemBuilder is a builder for ModbusPDUReadFileRecordResponseItem
func NewModbusPDUReadFileRecordResponseItemBuilder ¶
func NewModbusPDUReadFileRecordResponseItemBuilder() ModbusPDUReadFileRecordResponseItemBuilder
NewModbusPDUReadFileRecordResponseItemBuilder() creates a ModbusPDUReadFileRecordResponseItemBuilder
type ModbusPDUReadHoldingRegistersRequest ¶
type ModbusPDUReadHoldingRegistersRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // IsModbusPDUReadHoldingRegistersRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadHoldingRegistersRequest() // CreateBuilder creates a ModbusPDUReadHoldingRegistersRequestBuilder CreateModbusPDUReadHoldingRegistersRequestBuilder() ModbusPDUReadHoldingRegistersRequestBuilder }
ModbusPDUReadHoldingRegistersRequest is the corresponding interface of ModbusPDUReadHoldingRegistersRequest
func CastModbusPDUReadHoldingRegistersRequest
deprecated
func CastModbusPDUReadHoldingRegistersRequest(structType any) ModbusPDUReadHoldingRegistersRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadHoldingRegistersRequestBuilder ¶
type ModbusPDUReadHoldingRegistersRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16) ModbusPDUReadHoldingRegistersRequestBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUReadHoldingRegistersRequestBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUReadHoldingRegistersRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadHoldingRegistersRequest or returns an error if something is wrong Build() (ModbusPDUReadHoldingRegistersRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadHoldingRegistersRequest }
ModbusPDUReadHoldingRegistersRequestBuilder is a builder for ModbusPDUReadHoldingRegistersRequest
func NewModbusPDUReadHoldingRegistersRequestBuilder ¶
func NewModbusPDUReadHoldingRegistersRequestBuilder() ModbusPDUReadHoldingRegistersRequestBuilder
NewModbusPDUReadHoldingRegistersRequestBuilder() creates a ModbusPDUReadHoldingRegistersRequestBuilder
type ModbusPDUReadHoldingRegistersResponse ¶
type ModbusPDUReadHoldingRegistersResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReadHoldingRegistersResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadHoldingRegistersResponse() // CreateBuilder creates a ModbusPDUReadHoldingRegistersResponseBuilder CreateModbusPDUReadHoldingRegistersResponseBuilder() ModbusPDUReadHoldingRegistersResponseBuilder }
ModbusPDUReadHoldingRegistersResponse is the corresponding interface of ModbusPDUReadHoldingRegistersResponse
func CastModbusPDUReadHoldingRegistersResponse
deprecated
func CastModbusPDUReadHoldingRegistersResponse(structType any) ModbusPDUReadHoldingRegistersResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadHoldingRegistersResponseBuilder ¶
type ModbusPDUReadHoldingRegistersResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value []byte) ModbusPDUReadHoldingRegistersResponseBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReadHoldingRegistersResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadHoldingRegistersResponse or returns an error if something is wrong Build() (ModbusPDUReadHoldingRegistersResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadHoldingRegistersResponse }
ModbusPDUReadHoldingRegistersResponseBuilder is a builder for ModbusPDUReadHoldingRegistersResponse
func NewModbusPDUReadHoldingRegistersResponseBuilder ¶
func NewModbusPDUReadHoldingRegistersResponseBuilder() ModbusPDUReadHoldingRegistersResponseBuilder
NewModbusPDUReadHoldingRegistersResponseBuilder() creates a ModbusPDUReadHoldingRegistersResponseBuilder
type ModbusPDUReadInputRegistersRequest ¶
type ModbusPDUReadInputRegistersRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // IsModbusPDUReadInputRegistersRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadInputRegistersRequest() // CreateBuilder creates a ModbusPDUReadInputRegistersRequestBuilder CreateModbusPDUReadInputRegistersRequestBuilder() ModbusPDUReadInputRegistersRequestBuilder }
ModbusPDUReadInputRegistersRequest is the corresponding interface of ModbusPDUReadInputRegistersRequest
func CastModbusPDUReadInputRegistersRequest
deprecated
func CastModbusPDUReadInputRegistersRequest(structType any) ModbusPDUReadInputRegistersRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadInputRegistersRequestBuilder ¶
type ModbusPDUReadInputRegistersRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16) ModbusPDUReadInputRegistersRequestBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUReadInputRegistersRequestBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUReadInputRegistersRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadInputRegistersRequest or returns an error if something is wrong Build() (ModbusPDUReadInputRegistersRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadInputRegistersRequest }
ModbusPDUReadInputRegistersRequestBuilder is a builder for ModbusPDUReadInputRegistersRequest
func NewModbusPDUReadInputRegistersRequestBuilder ¶
func NewModbusPDUReadInputRegistersRequestBuilder() ModbusPDUReadInputRegistersRequestBuilder
NewModbusPDUReadInputRegistersRequestBuilder() creates a ModbusPDUReadInputRegistersRequestBuilder
type ModbusPDUReadInputRegistersResponse ¶
type ModbusPDUReadInputRegistersResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReadInputRegistersResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadInputRegistersResponse() // CreateBuilder creates a ModbusPDUReadInputRegistersResponseBuilder CreateModbusPDUReadInputRegistersResponseBuilder() ModbusPDUReadInputRegistersResponseBuilder }
ModbusPDUReadInputRegistersResponse is the corresponding interface of ModbusPDUReadInputRegistersResponse
func CastModbusPDUReadInputRegistersResponse
deprecated
func CastModbusPDUReadInputRegistersResponse(structType any) ModbusPDUReadInputRegistersResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadInputRegistersResponseBuilder ¶
type ModbusPDUReadInputRegistersResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value []byte) ModbusPDUReadInputRegistersResponseBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReadInputRegistersResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadInputRegistersResponse or returns an error if something is wrong Build() (ModbusPDUReadInputRegistersResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadInputRegistersResponse }
ModbusPDUReadInputRegistersResponseBuilder is a builder for ModbusPDUReadInputRegistersResponse
func NewModbusPDUReadInputRegistersResponseBuilder ¶
func NewModbusPDUReadInputRegistersResponseBuilder() ModbusPDUReadInputRegistersResponseBuilder
NewModbusPDUReadInputRegistersResponseBuilder() creates a ModbusPDUReadInputRegistersResponseBuilder
type ModbusPDUReadWriteMultipleHoldingRegistersRequest ¶
type ModbusPDUReadWriteMultipleHoldingRegistersRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetReadStartingAddress returns ReadStartingAddress (property field) GetReadStartingAddress() uint16 // GetReadQuantity returns ReadQuantity (property field) GetReadQuantity() uint16 // GetWriteStartingAddress returns WriteStartingAddress (property field) GetWriteStartingAddress() uint16 // GetWriteQuantity returns WriteQuantity (property field) GetWriteQuantity() uint16 // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReadWriteMultipleHoldingRegistersRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadWriteMultipleHoldingRegistersRequest() // CreateBuilder creates a ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder CreateModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder() ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder }
ModbusPDUReadWriteMultipleHoldingRegistersRequest is the corresponding interface of ModbusPDUReadWriteMultipleHoldingRegistersRequest
func CastModbusPDUReadWriteMultipleHoldingRegistersRequest
deprecated
func CastModbusPDUReadWriteMultipleHoldingRegistersRequest(structType any) ModbusPDUReadWriteMultipleHoldingRegistersRequest
Deprecated: use the interface for direct cast
type ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder ¶
type ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(readStartingAddress uint16, readQuantity uint16, writeStartingAddress uint16, writeQuantity uint16, value []byte) ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // WithReadStartingAddress adds ReadStartingAddress (property field) WithReadStartingAddress(uint16) ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // WithReadQuantity adds ReadQuantity (property field) WithReadQuantity(uint16) ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // WithWriteStartingAddress adds WriteStartingAddress (property field) WithWriteStartingAddress(uint16) ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // WithWriteQuantity adds WriteQuantity (property field) WithWriteQuantity(uint16) ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadWriteMultipleHoldingRegistersRequest or returns an error if something is wrong Build() (ModbusPDUReadWriteMultipleHoldingRegistersRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadWriteMultipleHoldingRegistersRequest }
ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder is a builder for ModbusPDUReadWriteMultipleHoldingRegistersRequest
func NewModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder ¶
func NewModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder() ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder
NewModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder() creates a ModbusPDUReadWriteMultipleHoldingRegistersRequestBuilder
type ModbusPDUReadWriteMultipleHoldingRegistersResponse ¶
type ModbusPDUReadWriteMultipleHoldingRegistersResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReadWriteMultipleHoldingRegistersResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReadWriteMultipleHoldingRegistersResponse() // CreateBuilder creates a ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder CreateModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder() ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder }
ModbusPDUReadWriteMultipleHoldingRegistersResponse is the corresponding interface of ModbusPDUReadWriteMultipleHoldingRegistersResponse
func CastModbusPDUReadWriteMultipleHoldingRegistersResponse
deprecated
func CastModbusPDUReadWriteMultipleHoldingRegistersResponse(structType any) ModbusPDUReadWriteMultipleHoldingRegistersResponse
Deprecated: use the interface for direct cast
type ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder ¶
type ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value []byte) ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReadWriteMultipleHoldingRegistersResponse or returns an error if something is wrong Build() (ModbusPDUReadWriteMultipleHoldingRegistersResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReadWriteMultipleHoldingRegistersResponse }
ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder is a builder for ModbusPDUReadWriteMultipleHoldingRegistersResponse
func NewModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder ¶
func NewModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder() ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder
NewModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder() creates a ModbusPDUReadWriteMultipleHoldingRegistersResponseBuilder
type ModbusPDUReportServerIdRequest ¶
type ModbusPDUReportServerIdRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // IsModbusPDUReportServerIdRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReportServerIdRequest() // CreateBuilder creates a ModbusPDUReportServerIdRequestBuilder CreateModbusPDUReportServerIdRequestBuilder() ModbusPDUReportServerIdRequestBuilder }
ModbusPDUReportServerIdRequest is the corresponding interface of ModbusPDUReportServerIdRequest
func CastModbusPDUReportServerIdRequest
deprecated
func CastModbusPDUReportServerIdRequest(structType any) ModbusPDUReportServerIdRequest
Deprecated: use the interface for direct cast
type ModbusPDUReportServerIdRequestBuilder ¶
type ModbusPDUReportServerIdRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields() ModbusPDUReportServerIdRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReportServerIdRequest or returns an error if something is wrong Build() (ModbusPDUReportServerIdRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReportServerIdRequest }
ModbusPDUReportServerIdRequestBuilder is a builder for ModbusPDUReportServerIdRequest
func NewModbusPDUReportServerIdRequestBuilder ¶
func NewModbusPDUReportServerIdRequestBuilder() ModbusPDUReportServerIdRequestBuilder
NewModbusPDUReportServerIdRequestBuilder() creates a ModbusPDUReportServerIdRequestBuilder
type ModbusPDUReportServerIdResponse ¶
type ModbusPDUReportServerIdResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUReportServerIdResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUReportServerIdResponse() // CreateBuilder creates a ModbusPDUReportServerIdResponseBuilder CreateModbusPDUReportServerIdResponseBuilder() ModbusPDUReportServerIdResponseBuilder }
ModbusPDUReportServerIdResponse is the corresponding interface of ModbusPDUReportServerIdResponse
func CastModbusPDUReportServerIdResponse
deprecated
func CastModbusPDUReportServerIdResponse(structType any) ModbusPDUReportServerIdResponse
Deprecated: use the interface for direct cast
type ModbusPDUReportServerIdResponseBuilder ¶
type ModbusPDUReportServerIdResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(value []byte) ModbusPDUReportServerIdResponseBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUReportServerIdResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUReportServerIdResponse or returns an error if something is wrong Build() (ModbusPDUReportServerIdResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUReportServerIdResponse }
ModbusPDUReportServerIdResponseBuilder is a builder for ModbusPDUReportServerIdResponse
func NewModbusPDUReportServerIdResponseBuilder ¶
func NewModbusPDUReportServerIdResponseBuilder() ModbusPDUReportServerIdResponseBuilder
NewModbusPDUReportServerIdResponseBuilder() creates a ModbusPDUReportServerIdResponseBuilder
type ModbusPDURequirements ¶
type ModbusPDURequirements interface { GetLengthInBits(ctx context.Context) uint16 GetLengthInBytes(ctx context.Context) uint16 // GetErrorFlag returns ErrorFlag (discriminator field) GetErrorFlag() bool // GetFunctionFlag returns FunctionFlag (discriminator field) GetFunctionFlag() uint8 // GetResponse returns Response (discriminator field) GetResponse() bool }
ModbusPDURequirements provides a set of functions which need to be implemented by a sub struct
type ModbusPDUWriteFileRecordRequest ¶
type ModbusPDUWriteFileRecordRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetItems returns Items (property field) GetItems() []ModbusPDUWriteFileRecordRequestItem // IsModbusPDUWriteFileRecordRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteFileRecordRequest() // CreateBuilder creates a ModbusPDUWriteFileRecordRequestBuilder CreateModbusPDUWriteFileRecordRequestBuilder() ModbusPDUWriteFileRecordRequestBuilder }
ModbusPDUWriteFileRecordRequest is the corresponding interface of ModbusPDUWriteFileRecordRequest
func CastModbusPDUWriteFileRecordRequest
deprecated
func CastModbusPDUWriteFileRecordRequest(structType any) ModbusPDUWriteFileRecordRequest
Deprecated: use the interface for direct cast
type ModbusPDUWriteFileRecordRequestBuilder ¶
type ModbusPDUWriteFileRecordRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(items []ModbusPDUWriteFileRecordRequestItem) ModbusPDUWriteFileRecordRequestBuilder // WithItems adds Items (property field) WithItems(...ModbusPDUWriteFileRecordRequestItem) ModbusPDUWriteFileRecordRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteFileRecordRequest or returns an error if something is wrong Build() (ModbusPDUWriteFileRecordRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteFileRecordRequest }
ModbusPDUWriteFileRecordRequestBuilder is a builder for ModbusPDUWriteFileRecordRequest
func NewModbusPDUWriteFileRecordRequestBuilder ¶
func NewModbusPDUWriteFileRecordRequestBuilder() ModbusPDUWriteFileRecordRequestBuilder
NewModbusPDUWriteFileRecordRequestBuilder() creates a ModbusPDUWriteFileRecordRequestBuilder
type ModbusPDUWriteFileRecordRequestItem ¶
type ModbusPDUWriteFileRecordRequestItem interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetReferenceType returns ReferenceType (property field) GetReferenceType() uint8 // GetFileNumber returns FileNumber (property field) GetFileNumber() uint16 // GetRecordNumber returns RecordNumber (property field) GetRecordNumber() uint16 // GetRecordData returns RecordData (property field) GetRecordData() []byte // IsModbusPDUWriteFileRecordRequestItem is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteFileRecordRequestItem() // CreateBuilder creates a ModbusPDUWriteFileRecordRequestItemBuilder CreateModbusPDUWriteFileRecordRequestItemBuilder() ModbusPDUWriteFileRecordRequestItemBuilder }
ModbusPDUWriteFileRecordRequestItem is the corresponding interface of ModbusPDUWriteFileRecordRequestItem
func CastModbusPDUWriteFileRecordRequestItem
deprecated
func CastModbusPDUWriteFileRecordRequestItem(structType any) ModbusPDUWriteFileRecordRequestItem
Deprecated: use the interface for direct cast
func ModbusPDUWriteFileRecordRequestItemParse ¶
func ModbusPDUWriteFileRecordRequestItemParse(ctx context.Context, theBytes []byte) (ModbusPDUWriteFileRecordRequestItem, error)
func ModbusPDUWriteFileRecordRequestItemParseWithBuffer ¶
func ModbusPDUWriteFileRecordRequestItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUWriteFileRecordRequestItem, error)
type ModbusPDUWriteFileRecordRequestItemBuilder ¶
type ModbusPDUWriteFileRecordRequestItemBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(referenceType uint8, fileNumber uint16, recordNumber uint16, recordData []byte) ModbusPDUWriteFileRecordRequestItemBuilder // WithReferenceType adds ReferenceType (property field) WithReferenceType(uint8) ModbusPDUWriteFileRecordRequestItemBuilder // WithFileNumber adds FileNumber (property field) WithFileNumber(uint16) ModbusPDUWriteFileRecordRequestItemBuilder // WithRecordNumber adds RecordNumber (property field) WithRecordNumber(uint16) ModbusPDUWriteFileRecordRequestItemBuilder // WithRecordData adds RecordData (property field) WithRecordData(...byte) ModbusPDUWriteFileRecordRequestItemBuilder // Build builds the ModbusPDUWriteFileRecordRequestItem or returns an error if something is wrong Build() (ModbusPDUWriteFileRecordRequestItem, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteFileRecordRequestItem }
ModbusPDUWriteFileRecordRequestItemBuilder is a builder for ModbusPDUWriteFileRecordRequestItem
func NewModbusPDUWriteFileRecordRequestItemBuilder ¶
func NewModbusPDUWriteFileRecordRequestItemBuilder() ModbusPDUWriteFileRecordRequestItemBuilder
NewModbusPDUWriteFileRecordRequestItemBuilder() creates a ModbusPDUWriteFileRecordRequestItemBuilder
type ModbusPDUWriteFileRecordResponse ¶
type ModbusPDUWriteFileRecordResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetItems returns Items (property field) GetItems() []ModbusPDUWriteFileRecordResponseItem // IsModbusPDUWriteFileRecordResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteFileRecordResponse() // CreateBuilder creates a ModbusPDUWriteFileRecordResponseBuilder CreateModbusPDUWriteFileRecordResponseBuilder() ModbusPDUWriteFileRecordResponseBuilder }
ModbusPDUWriteFileRecordResponse is the corresponding interface of ModbusPDUWriteFileRecordResponse
func CastModbusPDUWriteFileRecordResponse
deprecated
func CastModbusPDUWriteFileRecordResponse(structType any) ModbusPDUWriteFileRecordResponse
Deprecated: use the interface for direct cast
type ModbusPDUWriteFileRecordResponseBuilder ¶
type ModbusPDUWriteFileRecordResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(items []ModbusPDUWriteFileRecordResponseItem) ModbusPDUWriteFileRecordResponseBuilder // WithItems adds Items (property field) WithItems(...ModbusPDUWriteFileRecordResponseItem) ModbusPDUWriteFileRecordResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteFileRecordResponse or returns an error if something is wrong Build() (ModbusPDUWriteFileRecordResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteFileRecordResponse }
ModbusPDUWriteFileRecordResponseBuilder is a builder for ModbusPDUWriteFileRecordResponse
func NewModbusPDUWriteFileRecordResponseBuilder ¶
func NewModbusPDUWriteFileRecordResponseBuilder() ModbusPDUWriteFileRecordResponseBuilder
NewModbusPDUWriteFileRecordResponseBuilder() creates a ModbusPDUWriteFileRecordResponseBuilder
type ModbusPDUWriteFileRecordResponseItem ¶
type ModbusPDUWriteFileRecordResponseItem interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable // GetReferenceType returns ReferenceType (property field) GetReferenceType() uint8 // GetFileNumber returns FileNumber (property field) GetFileNumber() uint16 // GetRecordNumber returns RecordNumber (property field) GetRecordNumber() uint16 // GetRecordData returns RecordData (property field) GetRecordData() []byte // IsModbusPDUWriteFileRecordResponseItem is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteFileRecordResponseItem() // CreateBuilder creates a ModbusPDUWriteFileRecordResponseItemBuilder CreateModbusPDUWriteFileRecordResponseItemBuilder() ModbusPDUWriteFileRecordResponseItemBuilder }
ModbusPDUWriteFileRecordResponseItem is the corresponding interface of ModbusPDUWriteFileRecordResponseItem
func CastModbusPDUWriteFileRecordResponseItem
deprecated
func CastModbusPDUWriteFileRecordResponseItem(structType any) ModbusPDUWriteFileRecordResponseItem
Deprecated: use the interface for direct cast
func ModbusPDUWriteFileRecordResponseItemParse ¶
func ModbusPDUWriteFileRecordResponseItemParse(ctx context.Context, theBytes []byte) (ModbusPDUWriteFileRecordResponseItem, error)
func ModbusPDUWriteFileRecordResponseItemParseWithBuffer ¶
func ModbusPDUWriteFileRecordResponseItemParseWithBuffer(ctx context.Context, readBuffer utils.ReadBuffer) (ModbusPDUWriteFileRecordResponseItem, error)
type ModbusPDUWriteFileRecordResponseItemBuilder ¶
type ModbusPDUWriteFileRecordResponseItemBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(referenceType uint8, fileNumber uint16, recordNumber uint16, recordData []byte) ModbusPDUWriteFileRecordResponseItemBuilder // WithReferenceType adds ReferenceType (property field) WithReferenceType(uint8) ModbusPDUWriteFileRecordResponseItemBuilder // WithFileNumber adds FileNumber (property field) WithFileNumber(uint16) ModbusPDUWriteFileRecordResponseItemBuilder // WithRecordNumber adds RecordNumber (property field) WithRecordNumber(uint16) ModbusPDUWriteFileRecordResponseItemBuilder // WithRecordData adds RecordData (property field) WithRecordData(...byte) ModbusPDUWriteFileRecordResponseItemBuilder // Build builds the ModbusPDUWriteFileRecordResponseItem or returns an error if something is wrong Build() (ModbusPDUWriteFileRecordResponseItem, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteFileRecordResponseItem }
ModbusPDUWriteFileRecordResponseItemBuilder is a builder for ModbusPDUWriteFileRecordResponseItem
func NewModbusPDUWriteFileRecordResponseItemBuilder ¶
func NewModbusPDUWriteFileRecordResponseItemBuilder() ModbusPDUWriteFileRecordResponseItemBuilder
NewModbusPDUWriteFileRecordResponseItemBuilder() creates a ModbusPDUWriteFileRecordResponseItemBuilder
type ModbusPDUWriteMultipleCoilsRequest ¶
type ModbusPDUWriteMultipleCoilsRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUWriteMultipleCoilsRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteMultipleCoilsRequest() // CreateBuilder creates a ModbusPDUWriteMultipleCoilsRequestBuilder CreateModbusPDUWriteMultipleCoilsRequestBuilder() ModbusPDUWriteMultipleCoilsRequestBuilder }
ModbusPDUWriteMultipleCoilsRequest is the corresponding interface of ModbusPDUWriteMultipleCoilsRequest
func CastModbusPDUWriteMultipleCoilsRequest
deprecated
func CastModbusPDUWriteMultipleCoilsRequest(structType any) ModbusPDUWriteMultipleCoilsRequest
Deprecated: use the interface for direct cast
type ModbusPDUWriteMultipleCoilsRequestBuilder ¶
type ModbusPDUWriteMultipleCoilsRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16, value []byte) ModbusPDUWriteMultipleCoilsRequestBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUWriteMultipleCoilsRequestBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUWriteMultipleCoilsRequestBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUWriteMultipleCoilsRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteMultipleCoilsRequest or returns an error if something is wrong Build() (ModbusPDUWriteMultipleCoilsRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteMultipleCoilsRequest }
ModbusPDUWriteMultipleCoilsRequestBuilder is a builder for ModbusPDUWriteMultipleCoilsRequest
func NewModbusPDUWriteMultipleCoilsRequestBuilder ¶
func NewModbusPDUWriteMultipleCoilsRequestBuilder() ModbusPDUWriteMultipleCoilsRequestBuilder
NewModbusPDUWriteMultipleCoilsRequestBuilder() creates a ModbusPDUWriteMultipleCoilsRequestBuilder
type ModbusPDUWriteMultipleCoilsResponse ¶
type ModbusPDUWriteMultipleCoilsResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // IsModbusPDUWriteMultipleCoilsResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteMultipleCoilsResponse() // CreateBuilder creates a ModbusPDUWriteMultipleCoilsResponseBuilder CreateModbusPDUWriteMultipleCoilsResponseBuilder() ModbusPDUWriteMultipleCoilsResponseBuilder }
ModbusPDUWriteMultipleCoilsResponse is the corresponding interface of ModbusPDUWriteMultipleCoilsResponse
func CastModbusPDUWriteMultipleCoilsResponse
deprecated
func CastModbusPDUWriteMultipleCoilsResponse(structType any) ModbusPDUWriteMultipleCoilsResponse
Deprecated: use the interface for direct cast
type ModbusPDUWriteMultipleCoilsResponseBuilder ¶
type ModbusPDUWriteMultipleCoilsResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16) ModbusPDUWriteMultipleCoilsResponseBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUWriteMultipleCoilsResponseBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUWriteMultipleCoilsResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteMultipleCoilsResponse or returns an error if something is wrong Build() (ModbusPDUWriteMultipleCoilsResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteMultipleCoilsResponse }
ModbusPDUWriteMultipleCoilsResponseBuilder is a builder for ModbusPDUWriteMultipleCoilsResponse
func NewModbusPDUWriteMultipleCoilsResponseBuilder ¶
func NewModbusPDUWriteMultipleCoilsResponseBuilder() ModbusPDUWriteMultipleCoilsResponseBuilder
NewModbusPDUWriteMultipleCoilsResponseBuilder() creates a ModbusPDUWriteMultipleCoilsResponseBuilder
type ModbusPDUWriteMultipleHoldingRegistersRequest ¶
type ModbusPDUWriteMultipleHoldingRegistersRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // GetValue returns Value (property field) GetValue() []byte // IsModbusPDUWriteMultipleHoldingRegistersRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteMultipleHoldingRegistersRequest() // CreateBuilder creates a ModbusPDUWriteMultipleHoldingRegistersRequestBuilder CreateModbusPDUWriteMultipleHoldingRegistersRequestBuilder() ModbusPDUWriteMultipleHoldingRegistersRequestBuilder }
ModbusPDUWriteMultipleHoldingRegistersRequest is the corresponding interface of ModbusPDUWriteMultipleHoldingRegistersRequest
func CastModbusPDUWriteMultipleHoldingRegistersRequest
deprecated
func CastModbusPDUWriteMultipleHoldingRegistersRequest(structType any) ModbusPDUWriteMultipleHoldingRegistersRequest
Deprecated: use the interface for direct cast
type ModbusPDUWriteMultipleHoldingRegistersRequestBuilder ¶
type ModbusPDUWriteMultipleHoldingRegistersRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16, value []byte) ModbusPDUWriteMultipleHoldingRegistersRequestBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUWriteMultipleHoldingRegistersRequestBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUWriteMultipleHoldingRegistersRequestBuilder // WithValue adds Value (property field) WithValue(...byte) ModbusPDUWriteMultipleHoldingRegistersRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteMultipleHoldingRegistersRequest or returns an error if something is wrong Build() (ModbusPDUWriteMultipleHoldingRegistersRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteMultipleHoldingRegistersRequest }
ModbusPDUWriteMultipleHoldingRegistersRequestBuilder is a builder for ModbusPDUWriteMultipleHoldingRegistersRequest
func NewModbusPDUWriteMultipleHoldingRegistersRequestBuilder ¶
func NewModbusPDUWriteMultipleHoldingRegistersRequestBuilder() ModbusPDUWriteMultipleHoldingRegistersRequestBuilder
NewModbusPDUWriteMultipleHoldingRegistersRequestBuilder() creates a ModbusPDUWriteMultipleHoldingRegistersRequestBuilder
type ModbusPDUWriteMultipleHoldingRegistersResponse ¶
type ModbusPDUWriteMultipleHoldingRegistersResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetStartingAddress returns StartingAddress (property field) GetStartingAddress() uint16 // GetQuantity returns Quantity (property field) GetQuantity() uint16 // IsModbusPDUWriteMultipleHoldingRegistersResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteMultipleHoldingRegistersResponse() // CreateBuilder creates a ModbusPDUWriteMultipleHoldingRegistersResponseBuilder CreateModbusPDUWriteMultipleHoldingRegistersResponseBuilder() ModbusPDUWriteMultipleHoldingRegistersResponseBuilder }
ModbusPDUWriteMultipleHoldingRegistersResponse is the corresponding interface of ModbusPDUWriteMultipleHoldingRegistersResponse
func CastModbusPDUWriteMultipleHoldingRegistersResponse
deprecated
func CastModbusPDUWriteMultipleHoldingRegistersResponse(structType any) ModbusPDUWriteMultipleHoldingRegistersResponse
Deprecated: use the interface for direct cast
type ModbusPDUWriteMultipleHoldingRegistersResponseBuilder ¶
type ModbusPDUWriteMultipleHoldingRegistersResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(startingAddress uint16, quantity uint16) ModbusPDUWriteMultipleHoldingRegistersResponseBuilder // WithStartingAddress adds StartingAddress (property field) WithStartingAddress(uint16) ModbusPDUWriteMultipleHoldingRegistersResponseBuilder // WithQuantity adds Quantity (property field) WithQuantity(uint16) ModbusPDUWriteMultipleHoldingRegistersResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteMultipleHoldingRegistersResponse or returns an error if something is wrong Build() (ModbusPDUWriteMultipleHoldingRegistersResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteMultipleHoldingRegistersResponse }
ModbusPDUWriteMultipleHoldingRegistersResponseBuilder is a builder for ModbusPDUWriteMultipleHoldingRegistersResponse
func NewModbusPDUWriteMultipleHoldingRegistersResponseBuilder ¶
func NewModbusPDUWriteMultipleHoldingRegistersResponseBuilder() ModbusPDUWriteMultipleHoldingRegistersResponseBuilder
NewModbusPDUWriteMultipleHoldingRegistersResponseBuilder() creates a ModbusPDUWriteMultipleHoldingRegistersResponseBuilder
type ModbusPDUWriteSingleCoilRequest ¶
type ModbusPDUWriteSingleCoilRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetAddress returns Address (property field) GetAddress() uint16 // GetValue returns Value (property field) GetValue() uint16 // IsModbusPDUWriteSingleCoilRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteSingleCoilRequest() // CreateBuilder creates a ModbusPDUWriteSingleCoilRequestBuilder CreateModbusPDUWriteSingleCoilRequestBuilder() ModbusPDUWriteSingleCoilRequestBuilder }
ModbusPDUWriteSingleCoilRequest is the corresponding interface of ModbusPDUWriteSingleCoilRequest
func CastModbusPDUWriteSingleCoilRequest
deprecated
func CastModbusPDUWriteSingleCoilRequest(structType any) ModbusPDUWriteSingleCoilRequest
Deprecated: use the interface for direct cast
type ModbusPDUWriteSingleCoilRequestBuilder ¶
type ModbusPDUWriteSingleCoilRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(address uint16, value uint16) ModbusPDUWriteSingleCoilRequestBuilder // WithAddress adds Address (property field) WithAddress(uint16) ModbusPDUWriteSingleCoilRequestBuilder // WithValue adds Value (property field) WithValue(uint16) ModbusPDUWriteSingleCoilRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteSingleCoilRequest or returns an error if something is wrong Build() (ModbusPDUWriteSingleCoilRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteSingleCoilRequest }
ModbusPDUWriteSingleCoilRequestBuilder is a builder for ModbusPDUWriteSingleCoilRequest
func NewModbusPDUWriteSingleCoilRequestBuilder ¶
func NewModbusPDUWriteSingleCoilRequestBuilder() ModbusPDUWriteSingleCoilRequestBuilder
NewModbusPDUWriteSingleCoilRequestBuilder() creates a ModbusPDUWriteSingleCoilRequestBuilder
type ModbusPDUWriteSingleCoilResponse ¶
type ModbusPDUWriteSingleCoilResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetAddress returns Address (property field) GetAddress() uint16 // GetValue returns Value (property field) GetValue() uint16 // IsModbusPDUWriteSingleCoilResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteSingleCoilResponse() // CreateBuilder creates a ModbusPDUWriteSingleCoilResponseBuilder CreateModbusPDUWriteSingleCoilResponseBuilder() ModbusPDUWriteSingleCoilResponseBuilder }
ModbusPDUWriteSingleCoilResponse is the corresponding interface of ModbusPDUWriteSingleCoilResponse
func CastModbusPDUWriteSingleCoilResponse
deprecated
func CastModbusPDUWriteSingleCoilResponse(structType any) ModbusPDUWriteSingleCoilResponse
Deprecated: use the interface for direct cast
type ModbusPDUWriteSingleCoilResponseBuilder ¶
type ModbusPDUWriteSingleCoilResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(address uint16, value uint16) ModbusPDUWriteSingleCoilResponseBuilder // WithAddress adds Address (property field) WithAddress(uint16) ModbusPDUWriteSingleCoilResponseBuilder // WithValue adds Value (property field) WithValue(uint16) ModbusPDUWriteSingleCoilResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteSingleCoilResponse or returns an error if something is wrong Build() (ModbusPDUWriteSingleCoilResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteSingleCoilResponse }
ModbusPDUWriteSingleCoilResponseBuilder is a builder for ModbusPDUWriteSingleCoilResponse
func NewModbusPDUWriteSingleCoilResponseBuilder ¶
func NewModbusPDUWriteSingleCoilResponseBuilder() ModbusPDUWriteSingleCoilResponseBuilder
NewModbusPDUWriteSingleCoilResponseBuilder() creates a ModbusPDUWriteSingleCoilResponseBuilder
type ModbusPDUWriteSingleRegisterRequest ¶
type ModbusPDUWriteSingleRegisterRequest interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetAddress returns Address (property field) GetAddress() uint16 // GetValue returns Value (property field) GetValue() uint16 // IsModbusPDUWriteSingleRegisterRequest is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteSingleRegisterRequest() // CreateBuilder creates a ModbusPDUWriteSingleRegisterRequestBuilder CreateModbusPDUWriteSingleRegisterRequestBuilder() ModbusPDUWriteSingleRegisterRequestBuilder }
ModbusPDUWriteSingleRegisterRequest is the corresponding interface of ModbusPDUWriteSingleRegisterRequest
func CastModbusPDUWriteSingleRegisterRequest
deprecated
func CastModbusPDUWriteSingleRegisterRequest(structType any) ModbusPDUWriteSingleRegisterRequest
Deprecated: use the interface for direct cast
type ModbusPDUWriteSingleRegisterRequestBuilder ¶
type ModbusPDUWriteSingleRegisterRequestBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(address uint16, value uint16) ModbusPDUWriteSingleRegisterRequestBuilder // WithAddress adds Address (property field) WithAddress(uint16) ModbusPDUWriteSingleRegisterRequestBuilder // WithValue adds Value (property field) WithValue(uint16) ModbusPDUWriteSingleRegisterRequestBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteSingleRegisterRequest or returns an error if something is wrong Build() (ModbusPDUWriteSingleRegisterRequest, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteSingleRegisterRequest }
ModbusPDUWriteSingleRegisterRequestBuilder is a builder for ModbusPDUWriteSingleRegisterRequest
func NewModbusPDUWriteSingleRegisterRequestBuilder ¶
func NewModbusPDUWriteSingleRegisterRequestBuilder() ModbusPDUWriteSingleRegisterRequestBuilder
NewModbusPDUWriteSingleRegisterRequestBuilder() creates a ModbusPDUWriteSingleRegisterRequestBuilder
type ModbusPDUWriteSingleRegisterResponse ¶
type ModbusPDUWriteSingleRegisterResponse interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusPDU // GetAddress returns Address (property field) GetAddress() uint16 // GetValue returns Value (property field) GetValue() uint16 // IsModbusPDUWriteSingleRegisterResponse is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusPDUWriteSingleRegisterResponse() // CreateBuilder creates a ModbusPDUWriteSingleRegisterResponseBuilder CreateModbusPDUWriteSingleRegisterResponseBuilder() ModbusPDUWriteSingleRegisterResponseBuilder }
ModbusPDUWriteSingleRegisterResponse is the corresponding interface of ModbusPDUWriteSingleRegisterResponse
func CastModbusPDUWriteSingleRegisterResponse
deprecated
func CastModbusPDUWriteSingleRegisterResponse(structType any) ModbusPDUWriteSingleRegisterResponse
Deprecated: use the interface for direct cast
type ModbusPDUWriteSingleRegisterResponseBuilder ¶
type ModbusPDUWriteSingleRegisterResponseBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(address uint16, value uint16) ModbusPDUWriteSingleRegisterResponseBuilder // WithAddress adds Address (property field) WithAddress(uint16) ModbusPDUWriteSingleRegisterResponseBuilder // WithValue adds Value (property field) WithValue(uint16) ModbusPDUWriteSingleRegisterResponseBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusPDUBuilder // Build builds the ModbusPDUWriteSingleRegisterResponse or returns an error if something is wrong Build() (ModbusPDUWriteSingleRegisterResponse, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusPDUWriteSingleRegisterResponse }
ModbusPDUWriteSingleRegisterResponseBuilder is a builder for ModbusPDUWriteSingleRegisterResponse
func NewModbusPDUWriteSingleRegisterResponseBuilder ¶
func NewModbusPDUWriteSingleRegisterResponseBuilder() ModbusPDUWriteSingleRegisterResponseBuilder
NewModbusPDUWriteSingleRegisterResponseBuilder() creates a ModbusPDUWriteSingleRegisterResponseBuilder
type ModbusRtuADU ¶
type ModbusRtuADU interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusADU // GetAddress returns Address (property field) GetAddress() uint8 // GetPdu returns Pdu (property field) GetPdu() ModbusPDU // IsModbusRtuADU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusRtuADU() // CreateBuilder creates a ModbusRtuADUBuilder CreateModbusRtuADUBuilder() ModbusRtuADUBuilder }
ModbusRtuADU is the corresponding interface of ModbusRtuADU
func CastModbusRtuADU
deprecated
func CastModbusRtuADU(structType any) ModbusRtuADU
Deprecated: use the interface for direct cast
type ModbusRtuADUBuilder ¶
type ModbusRtuADUBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(address uint8, pdu ModbusPDU) ModbusRtuADUBuilder // WithAddress adds Address (property field) WithAddress(uint8) ModbusRtuADUBuilder // WithPdu adds Pdu (property field) WithPdu(ModbusPDU) ModbusRtuADUBuilder // WithPduBuilder adds Pdu (property field) which is build by the builder WithPduBuilder(func(ModbusPDUBuilder) ModbusPDUBuilder) ModbusRtuADUBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusADUBuilder // Build builds the ModbusRtuADU or returns an error if something is wrong Build() (ModbusRtuADU, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusRtuADU }
ModbusRtuADUBuilder is a builder for ModbusRtuADU
func NewModbusRtuADUBuilder ¶
func NewModbusRtuADUBuilder() ModbusRtuADUBuilder
NewModbusRtuADUBuilder() creates a ModbusRtuADUBuilder
type ModbusTcpADU ¶
type ModbusTcpADU interface { fmt.Stringer utils.LengthAware utils.Serializable utils.Copyable ModbusADU // GetTransactionIdentifier returns TransactionIdentifier (property field) GetTransactionIdentifier() uint16 // GetUnitIdentifier returns UnitIdentifier (property field) GetUnitIdentifier() uint8 // GetPdu returns Pdu (property field) GetPdu() ModbusPDU // IsModbusTcpADU is a marker method to prevent unintentional type checks (interfaces of same signature) IsModbusTcpADU() // CreateBuilder creates a ModbusTcpADUBuilder CreateModbusTcpADUBuilder() ModbusTcpADUBuilder }
ModbusTcpADU is the corresponding interface of ModbusTcpADU
func CastModbusTcpADU
deprecated
func CastModbusTcpADU(structType any) ModbusTcpADU
Deprecated: use the interface for direct cast
type ModbusTcpADUBuilder ¶
type ModbusTcpADUBuilder interface { utils.Copyable // WithMandatoryFields adds all mandatory fields (convenience for using multiple builder calls) WithMandatoryFields(transactionIdentifier uint16, unitIdentifier uint8, pdu ModbusPDU) ModbusTcpADUBuilder // WithTransactionIdentifier adds TransactionIdentifier (property field) WithTransactionIdentifier(uint16) ModbusTcpADUBuilder // WithUnitIdentifier adds UnitIdentifier (property field) WithUnitIdentifier(uint8) ModbusTcpADUBuilder // WithPdu adds Pdu (property field) WithPdu(ModbusPDU) ModbusTcpADUBuilder // WithPduBuilder adds Pdu (property field) which is build by the builder WithPduBuilder(func(ModbusPDUBuilder) ModbusPDUBuilder) ModbusTcpADUBuilder // Done is used to finish work on this child and return (or create one if none) to the parent builder Done() ModbusADUBuilder // Build builds the ModbusTcpADU or returns an error if something is wrong Build() (ModbusTcpADU, error) // MustBuild does the same as Build but panics on error MustBuild() ModbusTcpADU }
ModbusTcpADUBuilder is a builder for ModbusTcpADU
func NewModbusTcpADUBuilder ¶
func NewModbusTcpADUBuilder() ModbusTcpADUBuilder
NewModbusTcpADUBuilder() creates a ModbusTcpADUBuilder
Source Files ¶
- DataItem.go
- DriverType.go
- ModbusADU.go
- ModbusAsciiADU.go
- ModbusConstants.go
- ModbusDataType.go
- ModbusDeviceInformationConformityLevel.go
- ModbusDeviceInformationLevel.go
- ModbusDeviceInformationMoreFollows.go
- ModbusDeviceInformationObject.go
- ModbusErrorCode.go
- ModbusPDU.go
- ModbusPDUDiagnosticRequest.go
- ModbusPDUDiagnosticResponse.go
- ModbusPDUError.go
- ModbusPDUGetComEventCounterRequest.go
- ModbusPDUGetComEventCounterResponse.go
- ModbusPDUGetComEventLogRequest.go
- ModbusPDUGetComEventLogResponse.go
- ModbusPDUMaskWriteHoldingRegisterRequest.go
- ModbusPDUMaskWriteHoldingRegisterResponse.go
- ModbusPDUReadCoilsRequest.go
- ModbusPDUReadCoilsResponse.go
- ModbusPDUReadDeviceIdentificationRequest.go
- ModbusPDUReadDeviceIdentificationResponse.go
- ModbusPDUReadDiscreteInputsRequest.go
- ModbusPDUReadDiscreteInputsResponse.go
- ModbusPDUReadExceptionStatusRequest.go
- ModbusPDUReadExceptionStatusResponse.go
- ModbusPDUReadFifoQueueRequest.go
- ModbusPDUReadFifoQueueResponse.go
- ModbusPDUReadFileRecordRequest.go
- ModbusPDUReadFileRecordRequestItem.go
- ModbusPDUReadFileRecordResponse.go
- ModbusPDUReadFileRecordResponseItem.go
- ModbusPDUReadHoldingRegistersRequest.go
- ModbusPDUReadHoldingRegistersResponse.go
- ModbusPDUReadInputRegistersRequest.go
- ModbusPDUReadInputRegistersResponse.go
- ModbusPDUReadWriteMultipleHoldingRegistersRequest.go
- ModbusPDUReadWriteMultipleHoldingRegistersResponse.go
- ModbusPDUReportServerIdRequest.go
- ModbusPDUReportServerIdResponse.go
- ModbusPDUWriteFileRecordRequest.go
- ModbusPDUWriteFileRecordRequestItem.go
- ModbusPDUWriteFileRecordResponse.go
- ModbusPDUWriteFileRecordResponseItem.go
- ModbusPDUWriteMultipleCoilsRequest.go
- ModbusPDUWriteMultipleCoilsResponse.go
- ModbusPDUWriteMultipleHoldingRegistersRequest.go
- ModbusPDUWriteMultipleHoldingRegistersResponse.go
- ModbusPDUWriteSingleCoilRequest.go
- ModbusPDUWriteSingleCoilResponse.go
- ModbusPDUWriteSingleRegisterRequest.go
- ModbusPDUWriteSingleRegisterResponse.go
- ModbusRtuADU.go
- ModbusTcpADU.go
- StaticHelper.go
- plc4x_common.go