MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetBit

Method GetBit

cpp/src/value_classes/ValueBitSet.cpp:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 return m_value.GetValue();
101}
102bool ValueBitSet::GetBit
103(
104 uint8 _idx
105) const
106{
107 if (isValidBit(_idx))
108 return m_value.IsSet(_idx-1);
109 Log::Write(LogLevel_Warning, m_id.GetNodeId(), "GetBit Index %d is not valid with BitMask %d", _idx, m_BitMask);
110 return false;
111
112}
113
114
115

Callers 1

GetValueAsBitSetMethod · 0.80

Calls 3

WriteFunction · 0.85
GetNodeIdMethod · 0.80
IsSetMethod · 0.45

Tested by

no test coverage detected