2 ## This file is part of the sigrok project.
4 ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
21 Takes input from the I2C protocol decoder and filters out traffic from/to
22 a single address on the I2C bus.
24 It then outputs the filtered data one byte at a time as OUTPUT_PROTO up the
25 protocol decoder stack. No annotations are output.
27 The I2C address to filter out should be passed in as an option 'address', as
28 an integer. A specific read or write operation can be selected with the
29 'direction' option, which should be 'read' or 'write'.
31 Both of these are optional; if no options are specified the entire payload
32 of the I2C session will be output.
35 from .i2cfilter import *