ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the header of a ZCL frame. More...
#include <ZCLHeader.h>
Public Member Functions | |
FrameControl * | getFrameControl () |
Get the frame control field of this ZCL frame. | |
bool | isManufacturerCodePresent () const |
Check if the manufacturer code is present in this ZCL frame. | |
dbyte | getManufacturerCode () const |
Get the manufacturer code of this ZCL frame (optional). | |
void | setManufacturerCode (dbyte manufacturerCode) |
Set the manufacturer code of this ZCL frame (optional). | |
byte | getTransactionSequenceNumber () const |
Get the transaction sequence number of this ZCL frame. | |
void | setTransactionSequenceNumber (byte number) |
Set the transaction sequence number of this ZCL frame. | |
CmdId::Value | getCmdIdentifier () const |
Get the command identifier of this ZCL frame. | |
void | setCmdIdentifier (CmdId::Value cmdId) |
Set the command identifier of this ZCL frame. | |
byte | getCmdIdentifierAsValue () const |
Get the command identifier as a specific cluster value of this ZCL frame. | |
void | setCmdIdentifierAsValue (byte value) |
Set the command identifier as a specific cluster value of this ZCL frame. | |
int | fromBytes (const byte frame[]) |
Build a ZCL header from an array of bytes. | |
const byte * | toBytes (int &size) |
Get the ZCL header as array of bytes. | |
Friends | |
class | ZCLFrame |
This Class defines the header of a ZCL frame.
A ZCL header is composed of
int ZCLHeader::fromBytes | ( | const byte | frame[] | ) |
Build a ZCL header from an array of bytes.
frame | an array of bytes. |
CmdId::Value ZCLHeader::getCmdIdentifier | ( | ) | const |
Get the command identifier of this ZCL frame.
byte ZCLHeader::getCmdIdentifierAsValue | ( | ) | const |
Get the command identifier as a specific cluster value of this ZCL frame.
FrameControl* ZCLHeader::getFrameControl | ( | ) |
Get the frame control field of this ZCL frame.
dbyte ZCLHeader::getManufacturerCode | ( | ) | const |
Get the manufacturer code of this ZCL frame (optional).
Check with the isManufacturerCodePresent() method.
byte ZCLHeader::getTransactionSequenceNumber | ( | ) | const |
Get the transaction sequence number of this ZCL frame.
bool ZCLHeader::isManufacturerCodePresent | ( | ) | const |
Check if the manufacturer code is present in this ZCL frame.
void ZCLHeader::setCmdIdentifier | ( | CmdId::Value | cmdId | ) |
Set the command identifier of this ZCL frame.
cmdId | the command identifier. |
void ZCLHeader::setCmdIdentifierAsValue | ( | byte | value | ) |
Set the command identifier as a specific cluster value of this ZCL frame.
value | the command identifier as a specific cluster value. |
void ZCLHeader::setManufacturerCode | ( | dbyte | manufacturerCode | ) |
Set the manufacturer code of this ZCL frame (optional).
Check with the isManufacturerCodePresent() method.
manufacturerCode | the manufacturer code. |
void ZCLHeader::setTransactionSequenceNumber | ( | byte | number | ) |
Set the transaction sequence number of this ZCL frame.
number | the transaction sequence number. |
const byte* ZCLHeader::toBytes | ( | int & | size | ) |
Get the ZCL header as array of bytes.
[out] | size | : the returned array size. |