func (LDataInd) MessageCode() MessageCode {
	return LDataIndCode
}
MessageCode returns the message code for L_Data.ind.
package cemi
import "github.com/vapourismo/knx-go/knx/util"
type LData struct {
	Info        Info
	Control1    ControlField1
	Control2    ControlField2
	Source      IndividualAddr
	Destination uint16
	Data        TransportUnit
}
func (ldata *LData) Unpack(data []byte) (n uint, err error) {
	if n, err = util.UnpackSome(
		data,
		&ldata.Info,
		(*uint8)(&ldata.Control1),
		(*uint8)(&ldata.Control2),
		(*uint16)(&ldata.Source),
		&ldata.Destination,
	); err != nil {
		return
	}
	m, err := unpackTransportUnit(data[n:], &ldata.Data)
	n += m
	return
}
func (ldata *LData) Size() uint {
	return ldata.Info.Size() + 6 + ldata.Data.Size()
}
func (ldata *LData) Pack(buffer []byte) {
	util.PackSome(
		buffer,
		ldata.Info,
		uint8(ldata.Control1),
		uint8(ldata.Control2),
		uint16(ldata.Source),
		ldata.Destination,
		ldata.Data,
	)
}
type LDataReq struct {
	LData
}
func (LDataReq) MessageCode() MessageCode {
	return LDataReqCode
}
type LDataCon struct {
	LData
}
func (LDataCon) MessageCode() MessageCode {
	return LDataConCode
}
type LDataInd struct {
	LData
}