Package org.osgi.service.zigbee
Interface ZCLHeader
public interface ZCLHeader
This interface represents the ZCL Frame Header.
-
Method Summary
Modifier and TypeMethodDescriptionshortReturns the command identifier of this frame.shortReturns the Frame Control field of this frame.intReturns the manufacturer code of this frame.byteReturns the transaction Sequence Number of this frame.booleanChecks the client server direction of the frame.booleanChecks the frame Type Sub-field of the frame control field.booleanChecks if the default response is disabled.booleanChecks if the frame is manufacturer specific.
-
Method Details
-
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.
-