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 *btypes.APDU) error
- func (d *Decoder) Address(a *btypes.Address)
- func (d *Decoder) AppData() (interface{}, error)
- func (d *Decoder) AppDataOfTag(tag uint8, len int) (interface{}, error)
- func (d *Decoder) BVLC(b *btypes.BVLC) error
- func (d *Decoder) Bytes() []byte
- func (d *Decoder) Error() error
- func (d *Decoder) IAm(id *btypes.IAm) error
- func (d *Decoder) NPDU(n *btypes.NPDU) (addr []btypes.Address, err error)
- func (d *Decoder) Read(data []byte) (int, error)
- func (d *Decoder) ReadByte() (byte, error)
- func (d *Decoder) ReadMultiplePropertyAck(data *btypes.MultiplePropertyData) error
- func (d *Decoder) ReadProperty(data *btypes.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 btypes.APDU) error
- func (e *Encoder) AppData(i interface{}, typeBVBO bool) error
- func (e *Encoder) BVLC(b btypes.BVLC) error
- func (e *Encoder) Bytes() []byte
- func (e *Encoder) Error() error
- func (e *Encoder) IAm(id btypes.IAm) error
- func (e *Encoder) NPDU(n *btypes.NPDU)
- func (e *Encoder) ReadMultipleProperty(invokeID uint8, data btypes.MultiplePropertyData) error
- func (e *Encoder) ReadMultiplePropertyAck(invokeID uint8, data btypes.MultiplePropertyData) error
- func (e *Encoder) ReadProperty(invokeID uint8, data btypes.PropertyData) error
- func (e *Encoder) ReadPropertyAck(invokeID uint8, data btypes.PropertyData) error
- func (e *Encoder) WhoIs(low, high int32) error
- func (e *Encoder) WriteMultiProperty(invokeID uint8, data btypes.MultiplePropertyData) error
- func (e *Encoder) WriteProperty(invokeID uint8, data btypes.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() btypes.NPDUPriority
- func (n *NPDUMetadata) SetDestination(b bool)
- func (n *NPDUMetadata) SetExpectingReply(b bool)
- func (n *NPDUMetadata) SetNetworkLayerMessage(b bool)
- func (n *NPDUMetadata) SetPriority(p btypes.NPDUPriority)
- func (n *NPDUMetadata) SetSource(b bool)
- type RouterToNetworkList
- type TagType
Constants ¶
View Source
const ArrayAll uint32 = ^uint32(0)
ArrayAll is an argument typically passed during a read to signify where to read
View Source
const InstanceBits = 22
View Source
const MaxAPDU = MaxAPDUOverIP
View Source
const MaxAPDUOverIP = 1476
View Source
const MaxInstance = 0x3FFFFF
View Source
const MaxObject = 0x3FF
View Source
const MaxPropertyID = 4194303
Variables ¶
View Source
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() btypes.PDUType
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder used
func NewDecoder ¶
func (*Decoder) AppDataOfTag ¶
func (*Decoder) ReadMultiplePropertyAck ¶
func (d *Decoder) ReadMultiplePropertyAck(data *btypes.MultiplePropertyData) error
func (*Decoder) ReadProperty ¶
func (d *Decoder) ReadProperty(data *btypes.PropertyData) error
func (*Decoder) UnreadByte ¶
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 btypes.MultiplePropertyData) error
func (*Encoder) ReadMultiplePropertyAck ¶
func (e *Encoder) ReadMultiplePropertyAck(invokeID uint8, data btypes.MultiplePropertyData) error
func (*Encoder) ReadProperty ¶
func (e *Encoder) ReadProperty(invokeID uint8, data btypes.PropertyData) error
ReadProperty is a service request to read a property that is passed.
func (*Encoder) ReadPropertyAck ¶
func (e *Encoder) ReadPropertyAck(invokeID uint8, data btypes.PropertyData) error
ReadPropertyAck is the response made to a ReadProperty service request.
func (*Encoder) WriteMultiProperty ¶
func (e *Encoder) WriteMultiProperty(invokeID uint8, data btypes.MultiplePropertyData) error
WriteMultiProperty encodes a writes property request
func (*Encoder) WriteProperty ¶
func (e *Encoder) WriteProperty(invokeID uint8, data btypes.PropertyData) error
WriteProperty encodes a write 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
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() btypes.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 btypes.NPDUPriority)
SetPriority for NPDU
func (*NPDUMetadata) SetSource ¶
func (n *NPDUMetadata) SetSource(b bool)
type RouterToNetworkList ¶
Click to show internal directories.
Click to hide internal directories.