Home
last modified time | relevance | path

Searched refs:value (Results 1 – 7 of 7) sorted by relevance

/edtt-latest/src/components/
Dgattdata.py30 first = int(service.attributes['handle'].value);
33 last += [ max([int(include.attributes['handle'].value) for include in includes]) ];
35 … last += [ max([int(descriptor.attributes['handle'].value) for descriptor in descriptors]) ];
37 …last += [ max([int(characteristic.attributes['handle'].value) for characteristic in characteristic…
50 if (serviceType is None) or (serviceType == service.attributes['type'].value):
51 _uuid = int(service.attributes['uuid'].value, 16);
63 if (serviceType is None) or (serviceType == service.attributes['type'].value):
64 _uuid = int(service.attributes['uuid'].value, 16);
85 includes['uuids'] += [ int(include.attributes['uuid'].value, 16) ];
86 …des['handles'] += [ [ int(include.attributes['first'].value), int(include.attributes['last'].value
[all …]
Dutils.py169 value = 0;
171 value <<= 8;
172 value += part;
173 return '%010X' % value;
332 value = 0;
334 value <<= 8;
335 value += part;
336 if ( value & 0x3FFFFFFFFFFFFFFF ):
337 if ( value == 0x1FFFFFFFFFFF ):
344 if ( value & (1<<n) ):
[all …]
Devents.py373 value = 0;
375 value <<= 8;
376 value += part;
377 return value;
408 def __checkLESupportedHost(self, value): argument
409 if not (0 <= value <= 1):
412 def __checkLESimultaneousHost(self, value): argument
413 if not (0 == value):
460 def __checkRFPathCompensation(self, value): argument
461 if not (-1280 <= value <= 1280):
Ddump.py120 def unpack_bitfield(fmt, value): argument
124 result.append(value & abs(1 - (1 << length)))
125 value = value >> length
Dattdata.py598 def __formatEnumSet(self, value, texts): argument
601 if ( value & (1<<n) ):
/edtt-latest/src/tests/
Dtest_utils.py647 def set_isochronous_channels_host_support(transport, device, trace, value): argument
648 status = le_set_host_feature(transport, device, FeatureSupport.ISOCHRONOUS_CHANNELS, value, 100)
961 value = kwargs.get(field, default)
965 value = self.per_cis_value(value)
968 setattr(self, field, value)
972 setattr(self, alias, value)
991 def per_cis_value(self, value): argument
992 if isinstance(value, list):
994 if len(value) != self.CIS_Count:
995 …raise ValueError('Field {} has wrong length {}, expected {}'.format(key, len(value), self.CIS_Coun…
[all …]
Dgatt_verification.py421 value, offset, success = [], 0, True;
425 value += reply['value'];
432 return success, value if success else reply['error'];
2004 ok, value = readCharacteristic(transport, initiator, _value_handle, trace);
2005 success = success and ok and value == _value[::-1];
2042 ok, value = readCharacteristic(transport, initiator, _value_handle, trace);
2043 success = success and ok and value == _value[::-1];
2235 ok, value = readBlob(transport, initiator, _value_handle, mtuSize, trace);
2236 success = success and ok and value == _value[::-1];
2896 _success, value = readCharacteristic(transport, initiator, _handle, trace);
[all …]