mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
tool: state_enums.sh enumerates SM and RFCOMM states
This commit is contained in:
parent
855ba1c56c
commit
122e257637
16
tool/state_enums.sh
Executable file
16
tool/state_enums.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
BTSTACK_ROOT=`dirname $0`'/..'
|
||||
|
||||
# SM
|
||||
echo "Security Manager states"
|
||||
grep SM_ $BTSTACK_ROOT/src/hci.h | nl -v0
|
||||
|
||||
echo
|
||||
|
||||
# RFCOMM
|
||||
echo "RFCOMM Multiplexer states"
|
||||
grep RFCOMM_MULTIPLEXER_ $BTSTACK_ROOT/src/classic/rfcomm.h | grep -v RFCOMM_MULTIPLEXER_EVENT | grep -v RFCOMM_MULTIPLEXER_STATE | nl
|
||||
echo "RFCOMM Channel states"
|
||||
grep RFCOMM_CHANNEL_ $BTSTACK_ROOT/src/classic/rfcomm.h | grep -v RFCOMM_CHANNEL_STATE | grep -v "// state variables" | nl
|
||||
|
||||
echo
|
Loading…
x
Reference in New Issue
Block a user