## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
-#
# Panasonic PAN1321 Bluetooth module protocol decoder
-#
-# TODO
-#
import sigrokdecode as srd
-# Annotation feed formats
-ANN_ASCII = 0
-
-# UART 'data' packet type.
-T_DATA = 1
-
# ...
RX = 0
TX = 1
id = 'pan1321'
name = 'PAN1321'
longname = 'Panasonic PAN1321'
- desc = 'TODO.'
- longdesc = 'TODO.'
+ desc = 'Bluetooth RF module with Serial Port Profile (SPP).'
license = 'gplv2+'
inputs = ['uart']
outputs = ['pan1321']
optional_probes = []
options = {}
annotations = [
- ['ASCII', 'TODO: description'],
+ ['Text', 'Human-readable text'],
]
def __init__(self, **kwargs):
ptype, rxtx, pdata = data
# For now, ignore all UART packets except the actual data packets.
- if ptype != T_DATA:
+ if ptype != 'DATA':
return
# Append a new (ASCII) byte to the currently built/parsed command.