107 ValueType_Max = ValueType_BitSet
125 return( (
uint8)( (m_id & 0xff000000) >> 24 ) );
136 return( (
ValueGenre)( (m_id & 0x00c00000) >> 22 ) );
147 return( (
uint8)( (m_id & 0x003fc000) >> 14 ) );
160 return( (
uint8)( ( (m_id & 0xff0) ) >> 4 ) );
173 return( (
uint8)( (m_id1 & 0xFFFF0000) >> 16 ) );
185 return( (
ValueType)( m_id & 0x0000000f ) );
195 return (uint64) ( ( (uint64)m_id1 << 32 ) | m_id );
199 bool operator == (
ValueID const& _other )
const{
return( ( m_homeId == _other.m_homeId ) && ( m_id == _other.m_id ) && ( m_id1 == _other.m_id1 ) ); }
200 bool operator != (
ValueID const& _other )
const{
return( ( m_homeId != _other.m_homeId ) || ( m_id != _other.m_id ) || ( m_id1 != _other.m_id1 ) ); }
201 bool operator < (
ValueID const& _other )
const 203 if( m_homeId == _other.m_homeId )
205 if( m_id == _other.m_id )
207 return( m_id1 < _other.m_id1 );
211 return( m_id < _other.m_id );
216 return( m_homeId < _other.m_homeId );
219 bool operator > (
ValueID const& _other )
const 221 if( m_homeId == _other.m_homeId )
223 if( m_id == _other.m_id )
225 return( m_id1 > _other.m_id1 );
229 return( m_id > _other.m_id );
234 return( m_homeId > _other.m_homeId );
257 uint8 const _commandClassId,
258 uint8 const _instance,
264 m_id = (((
uint32)_nodeId)<<24)
266 | (((
uint32)_commandClassId)<<14)
267 | (((
uint32)(_instance & 0xFF))<<4)
269 m_id1 = (((
uint32)_valueIndex)<<16);
284 m_id = ((
uint32)(
id & 0xFFFFFFFF));
285 m_id1 = (
uint32)(
id >> 32);
293 m_id = ((
uint32)_nodeId)<<24;
298 m_id = (((
uint32)_nodeId)<<24) | (((
uint32)_instance) << 4);
317 uint32 GetValueStoreKey()
const 325 return ( ( ( m_id & 0x003fc000 ) >> 6) | ( m_id1 & 0xffff0000 ) | ( ( m_id & 0xFF0) >> 4 ) );
329 static uint32 GetValueStoreKey(
uint8 const _commandClassId,
uint8 const _instance,
uint16 const _valueIndex )
333 | (((
uint32)_commandClassId)<<8)
334 | (((
uint32)(_valueIndex & 0xFFFF))<<16);
Definition: Bitfield.h:34
Container that holds all of the values associated with a given node.
Definition: ValueStore.h:44
uint16 GetIndex() const
Definition: ValueID.h:171
uint32 GetHomeId() const
Definition: ValueID.h:114
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
Implements COMMAND_CLASS_MANUFACTURER_SPECIFIC (0x72), a Z-Wave device command class.
Definition: ManufacturerSpecific.h:39
unsigned short uint16
Definition: Defs.h:93
ValueType
Definition: ValueID.h:94
Definition: ValueID.h:104
uint8 GetCommandClassId() const
Definition: ValueID.h:145
The main public interface to OpenZWave.
Definition: Manager.h:110
uint8 GetNodeId() const
Definition: ValueID.h:123
uint8 GetInstance() const
Definition: ValueID.h:158
Definition: ValueID.h:106
ValueGenre GetGenre() const
Definition: ValueID.h:134
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition: Node.h:65
ValueType GetType() const
Definition: ValueID.h:183
Base class for all Z-Wave command classes.
Definition: CommandClass.h:54
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition: Driver.h:63
unsigned int uint32
Definition: Defs.h:96
Manages a group of devices (various nodes associated with each other).
Definition: Group.h:49
uint64 GetId() const
Definition: ValueID.h:193
Provides a container for data sent via the notification callback handler installed by a call to Manag...
Definition: Notification.h:44
Provides a unique ID for a value reported by a Z-Wave device.The ValueID is used to uniquely identify...
Definition: ValueID.h:62
Definition: ValueID.h:102
Base class for values associated with a node.
Definition: Value.h:48
Definition: ValueID.h:100
Definition: ValueID.h:105
Definition: ValueID.h:103
ValueGenre
Definition: ValueID.h:80
Definition: ValueID.h:101
unsigned char uint8
Definition: Defs.h:90