Documentation ¶
Index ¶
- Constants
- Variables
- func IsEvenDayOfMonth(day int) bool
- func IsEvenMonth(month int) bool
- func IsLastDayOfMonth(day int) bool
- func IsOddDayOfMonth(day int) bool
- func IsOddMonth(month int) bool
- type APDUMetadata
- type Decoder
- func (d *Decoder) APDU(a *bactype.APDU) error
- func (d *Decoder) Address(a *bactype.Address)
- func (d *Decoder) AppData() (interface{}, error)
- func (d *Decoder) AppDataOfTag(tag uint8, len int) (interface{}, error)
- func (d *Decoder) BVLC(b *bactype.BVLC) error
- func (d *Decoder) Bytes() []byte
- func (d *Decoder) Error() error
- func (d *Decoder) IAm(id *types.IAm) error
- func (d *Decoder) NPDU(n *bactype.NPDU) error
- func (d *Decoder) Read(data []byte) (int, error)
- func (d *Decoder) ReadByte() (byte, error)
- func (d *Decoder) ReadMultiplePropertyAck(data *bactype.MultiplePropertyData) error
- func (d *Decoder) ReadProperty(data *bactype.PropertyData) error
- func (d *Decoder) Skip(n uint32) error
- func (d *Decoder) UnreadByte() error
- func (d *Decoder) WhoIs(low, high *int32) error
- type Encoder
- func (e *Encoder) APDU(a bactype.APDU) error
- func (e *Encoder) AppData(i interface{}) error
- func (e *Encoder) BVLC(b bactype.BVLC) error
- func (e *Encoder) Bytes() []byte
- func (e *Encoder) Error() error
- func (enc *Encoder) IAm(id types.IAm) error
- func (e *Encoder) NPDU(n *bactype.NPDU)
- func (e *Encoder) ReadMultipleProperty(invokeID uint8, data bactype.MultiplePropertyData) error
- func (e *Encoder) ReadMultiplePropertyAck(invokeID uint8, data bactype.MultiplePropertyData) error
- func (e *Encoder) ReadProperty(invokeID uint8, data bactype.PropertyData) error
- func (e *Encoder) ReadPropertyAck(invokeID uint8, data bactype.PropertyData) error
- func (e *Encoder) WhoIs(low, high int32) error
- func (e *Encoder) WriteMultiProperty(invokeID uint8, data bactype.MultiplePropertyData) error
- func (e *Encoder) WriteProperty(invokeID uint8, data bactype.PropertyData) error
- type ErrorIncorrectTag
- type ErrorWrongTagType
- type NPDUMetadata
- func (n *NPDUMetadata) ExpectingReply() bool
- func (n *NPDUMetadata) HasDestination() bool
- func (n *NPDUMetadata) HasSource() bool
- func (n *NPDUMetadata) IsNetworkLayerMessage() bool
- func (n *NPDUMetadata) Priority() bactype.NPDUPriority
- func (n *NPDUMetadata) SetDestination(b bool)
- func (n *NPDUMetadata) SetExpectingReply(b bool)
- func (n *NPDUMetadata) SetNetworkLayerMessage(b bool)
- func (n *NPDUMetadata) SetPriority(p bactype.NPDUPriority)
- func (n *NPDUMetadata) SetSource(b bool)
- type TagType
Constants ¶
const ArrayAll uint32 = ^uint32(0)
ArrayAll is an argument typically passed during a read to signify where to read
const InstanceBits = 22
const MaxAPDU = MaxAPDUOverIP
const MaxAPDUOverIP = 1476
MaxAPDU using bacnet over IP
const MaxInstance = 0x3FFFFF
const MaxObject = 0x3FF
const MaxPropertyID = 4194303
Variables ¶
var EncodingEndian binary.ByteOrder = binary.BigEndian
Functions ¶
func IsEvenDayOfMonth ¶
func IsEvenMonth ¶
func IsLastDayOfMonth ¶
func IsOddDayOfMonth ¶
func IsOddMonth ¶
Types ¶
type APDUMetadata ¶
type APDUMetadata byte
func (*APDUMetadata) DataType ¶
func (meta *APDUMetadata) DataType() bactype.PDUType
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder used
func NewDecoder ¶
func (*Decoder) AppDataOfTag ¶ added in v1.0.1
func (*Decoder) ReadMultiplePropertyAck ¶
func (d *Decoder) ReadMultiplePropertyAck(data *bactype.MultiplePropertyData) error
func (*Decoder) ReadProperty ¶
func (d *Decoder) ReadProperty(data *bactype.PropertyData) error
func (*Decoder) UnreadByte ¶ added in v1.0.1
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
func (*Encoder) ReadMultipleProperty ¶
func (e *Encoder) ReadMultipleProperty(invokeID uint8, data bactype.MultiplePropertyData) error
func (*Encoder) ReadMultiplePropertyAck ¶
func (e *Encoder) ReadMultiplePropertyAck(invokeID uint8, data bactype.MultiplePropertyData) error
func (*Encoder) ReadProperty ¶
func (e *Encoder) ReadProperty(invokeID uint8, data bactype.PropertyData) error
ReadProperty is a service request to read a property that is passed.
func (*Encoder) ReadPropertyAck ¶
func (e *Encoder) ReadPropertyAck(invokeID uint8, data bactype.PropertyData) error
ReadPropertyAck is the response made to a ReadProperty service request.
func (*Encoder) WriteMultiProperty ¶
func (e *Encoder) WriteMultiProperty(invokeID uint8, data bactype.MultiplePropertyData) error
WriteProperty encodes a write property request
func (*Encoder) WriteProperty ¶
func (e *Encoder) WriteProperty(invokeID uint8, data bactype.PropertyData) error
WriteProperty encodes a write property request
type ErrorIncorrectTag ¶
func (*ErrorIncorrectTag) Error ¶
func (e *ErrorIncorrectTag) Error() string
type ErrorWrongTagType ¶
type ErrorWrongTagType struct {
Type TagType
}
ErrorWrongTagType is given when a certain tag type is expected but not given when encoding/decoding
func (*ErrorWrongTagType) Error ¶
func (e *ErrorWrongTagType) Error() string
type NPDUMetadata ¶
type NPDUMetadata byte
NPDUMetadata includes additional metadata about npdu message
func (*NPDUMetadata) ExpectingReply ¶
func (n *NPDUMetadata) ExpectingReply() bool
IsNetworkLayerMessage returns true if it is a network layer message
func (*NPDUMetadata) HasDestination ¶
func (n *NPDUMetadata) HasDestination() bool
func (*NPDUMetadata) HasSource ¶
func (n *NPDUMetadata) HasSource() bool
func (*NPDUMetadata) IsNetworkLayerMessage ¶
func (n *NPDUMetadata) IsNetworkLayerMessage() bool
IsNetworkLayerMessage returns true if it is a network layer message
func (*NPDUMetadata) Priority ¶
func (n *NPDUMetadata) Priority() bactype.NPDUPriority
Priority returns priority
func (*NPDUMetadata) SetDestination ¶
func (n *NPDUMetadata) SetDestination(b bool)
func (*NPDUMetadata) SetExpectingReply ¶
func (n *NPDUMetadata) SetExpectingReply(b bool)
func (*NPDUMetadata) SetNetworkLayerMessage ¶
func (n *NPDUMetadata) SetNetworkLayerMessage(b bool)
func (*NPDUMetadata) SetPriority ¶
func (n *NPDUMetadata) SetPriority(p bactype.NPDUPriority)
SetPriority for NPDU
func (*NPDUMetadata) SetSource ¶
func (n *NPDUMetadata) SetSource(b bool)