-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathgap.pxd
More file actions
60 lines (47 loc) · 1.69 KB
/
Copy pathgap.pxd
File metadata and controls
60 lines (47 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import cython
cdef str BLE_UUID
cdef dict _EMPTY_MANUFACTURER_DATA
cdef dict _EMPTY_SERVICE_DATA
cdef list _EMPTY_SERVICE_UUIDS
cdef object from_bytes
cdef object from_bytes_little
cdef object from_bytes_signed
cdef object _cached_uint16_bytes_as_uuid
cdef object _cached_uint32_bytes_as_uuid
cdef object _cached_uint128_bytes_as_uuid
cdef object _cached_parse_advertisement_data
cdef object _cached_from_bytes_signed
cdef object _LOGGER
cdef class BLEGAPAdvertisement:
cdef readonly object local_name
cdef readonly object service_uuids
cdef readonly object service_data
cdef readonly object manufacturer_data
cdef readonly object tx_power
cdef cython.uint TYPE_SHORT_LOCAL_NAME
cdef cython.uint TYPE_COMPLETE_LOCAL_NAME
cdef cython.uint TYPE_MANUFACTURER_SPECIFIC_DATA
cdef cython.uint TYPE_16BIT_SERVICE_UUID_COMPLETE
cdef cython.uint TYPE_16BIT_SERVICE_UUID_MORE_AVAILABLE
cdef cython.uint TYPE_32BIT_SERVICE_UUID_COMPLETE
cdef cython.uint TYPE_32BIT_SERVICE_UUID_MORE_AVAILABLE
cdef cython.uint TYPE_128BIT_SERVICE_UUID_COMPLETE
cdef cython.uint TYPE_128BIT_SERVICE_UUID_MORE_AVAILABLE
cdef cython.uint TYPE_SERVICE_DATA
cdef cython.uint TYPE_SERVICE_DATA_32BIT_UUID
cdef cython.uint TYPE_SERVICE_DATA_128BIT_UUID
cdef cython.uint TYPE_TX_POWER_LEVEL
cpdef parse_advertisement_data(object data)
@cython.locals(
gap_data="const unsigned char *",
gap_type_num="unsigned char",
total_length=cython.uint,
length="unsigned char",
offset=cython.uint,
start=cython.uint,
end=cython.uint,
i=cython.uint,
)
cpdef _uncached_parse_advertisement_bytes(bytes gap_bytes)
cpdef _uncached_parse_advertisement_data(bytes data)
cpdef _uncached_parse_advertisement_tuple(tuple data)