xref: /btstack/tool/state_enums.sh (revision 695025bf1c8295eba240e688a61ca48377d2f61f)
1a068cdf4SMatthias Ringwald#!/bin/sh
2a068cdf4SMatthias RingwaldBTSTACK_ROOT=`dirname $0`'/..'
3a068cdf4SMatthias Ringwald
4a068cdf4SMatthias Ringwald# SM
5a068cdf4SMatthias Ringwaldecho "Security Manager states"
6a068cdf4SMatthias Ringwaldgrep SM_ $BTSTACK_ROOT/src/hci.h | nl -v0
7a068cdf4SMatthias Ringwald
8a068cdf4SMatthias Ringwaldecho
9a068cdf4SMatthias Ringwald
10a068cdf4SMatthias Ringwald# RFCOMM
11a068cdf4SMatthias Ringwaldecho "RFCOMM Multiplexer states"
12a068cdf4SMatthias Ringwaldgrep RFCOMM_MULTIPLEXER_ $BTSTACK_ROOT/src/classic/rfcomm.h | grep -v RFCOMM_MULTIPLEXER_EVENT | grep -v RFCOMM_MULTIPLEXER_STATE | nl
13a068cdf4SMatthias Ringwaldecho "RFCOMM Channel states"
14a068cdf4SMatthias Ringwaldgrep RFCOMM_CHANNEL_ $BTSTACK_ROOT/src/classic/rfcomm.h | grep -v RFCOMM_CHANNEL_STATE | grep -v "// state variables" | nl
15a068cdf4SMatthias Ringwald
16a068cdf4SMatthias Ringwaldecho
17*695025bfSMatthias Ringwald
18*695025bfSMatthias Ringwald# HFP
19*695025bfSMatthias Ringwaldecho "HFP Commands/States"
20*695025bfSMatthias Ringwaldgrep  HFP_CMD_ $BTSTACK_ROOT/src/classic/hfp.h | nl -v 0
21*695025bfSMatthias Ringwaldecho "HFP Errors"
22*695025bfSMatthias Ringwaldgrep  HFP_CME_ $BTSTACK_ROOT/src/classic/hfp.h | nl -v 0
23*695025bfSMatthias Ringwald
24*695025bfSMatthias Ringwaldecho
25