Package org.osgi.service.zigbee
Interface ZCLHeader
-
public interface ZCLHeaderThis interface represents the ZCL Frame Header.- Author:
- $Id: 69b3f887ad1d7065820715473e1a25669c3f1885 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description shortgetCommandId()Returns the command identifier of this frame.shortgetFrameControlField()Returns the Frame Control field of this frame.intgetManufacturerCode()Returns the manufacturer code of this frame.bytegetSequenceNumber()Returns the transaction Sequence Number of this frame.booleanisClientServerDirection()Checks the client server direction of the frame.booleanisClusterSpecificCommand()Checks the frame Type Sub-field of the frame control field.booleanisDefaultResponseDisabled()Checks if the default response is disabled.booleanisManufacturerSpecific()Checks if the frame is manufacturer specific.
-
-
-
Method Detail
-
getCommandId
short getCommandId()
Returns the command identifier of this frame.- Returns:
- the command identifier of this frame.
-
getManufacturerCode
int getManufacturerCode()
Returns the manufacturer code of this frame.- Returns:
- the manufacturer code if the ZCL Frame is manufacturer specific, otherwise returns -1.
-
isClusterSpecificCommand
boolean isClusterSpecificCommand()
Checks the frame Type Sub-field of the frame control field.- Returns:
- true if the frame control field states that the command is cluster specific. Returns false otherwise.
-
isManufacturerSpecific
boolean isManufacturerSpecific()
Checks if the frame is manufacturer specific.- Returns:
- true if the ZCL frame is manufacturer specific (that is, the Manufacturer Specific Sub-field of the ZCL Frame Control Field is 1.
-
isClientServerDirection
boolean isClientServerDirection()
Checks the client server direction of the frame.- Returns:
- the isClientServerDirection value.
-
isDefaultResponseDisabled
boolean isDefaultResponseDisabled()
Checks if the default response is disabled.- Returns:
trueif the ZCL Header Frame Control Field "Disable Default Response Sub-field" is 1. Returnsfalseotherwise.
-
getSequenceNumber
byte getSequenceNumber()
Returns the transaction Sequence Number of this frame.- Returns:
- the transaction sequence number of this frame.
-
getFrameControlField
short getFrameControlField()
Returns the Frame Control field of this frame.- Returns:
- the frame control field of this frame.
-
-