MCPcopy Create free account
hub / github.com/secdev/scapy / BTLE_PPI

Class BTLE_PPI

scapy/layers/bluetooth4LE.py:53–71  ·  view source on GitHub ↗

Cooked BTLE PPI header See ``ppi_btle_t`` in https://github.com/greatscottgadgets/libbtbb/blob/master/lib/src/pcap.c

Source from the content-addressed store, hash-verified

51
52
53class BTLE_PPI(PPI_Element):
54 """Cooked BTLE PPI header
55
56 See ``ppi_btle_t`` in
57 https://github.com/greatscottgadgets/libbtbb/blob/master/lib/src/pcap.c
58 """
59 name = "BTLE PPI header"
60 fields_desc = [
61 ByteField("btle_version", 0),
62 # btle_channel is a frequency in MHz. Named for consistency with
63 # other users.
64 LEShortField("btle_channel", None),
65 ByteField("btle_clkn_high", None),
66 LEIntField("btle_clk_100ns", None),
67 SignedByteField("rssi_max", None),
68 SignedByteField("rssi_min", None),
69 SignedByteField("rssi_avg", None),
70 ByteField("rssi_count", None)
71 ]
72
73
74class BTLE_RF(Packet):

Callers

nothing calls this directly

Calls 4

ByteFieldClass · 0.90
LEShortFieldClass · 0.90
LEIntFieldClass · 0.90
SignedByteFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…