X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fi2c%2F__init__.py;h=2a36b060abd5a5a38155072d3f7e420c1ad3eb2c;hb=d6430dffc1cd39c0996278186b949c99d33e3171;hp=2442ee1f0096b335945cd6f74db0f1b297996cac;hpb=871b19d2c747c4baf2fcc3fbed6ca51e435a0e4a;p=libsigrokdecode.git diff --git a/decoders/i2c/__init__.py b/decoders/i2c/__init__.py index 2442ee1..2a36b06 100644 --- a/decoders/i2c/__init__.py +++ b/decoders/i2c/__init__.py @@ -14,38 +14,12 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## ''' -I2C protocol decoder. - -The Inter-Integrated Circuit (I2C) bus is a bidirectional, multi-master +I²C (Inter-Integrated Circuit) is a bidirectional, multi-master bus using two signals (SCL = serial clock line, SDA = serial data line). - -Protocol output format: - -I2C packet: -[, ] - - is one of: - - 'START' (START condition) - - 'START REPEAT' (Repeated START condition) - - 'ADDRESS READ' (Slave address, read) - - 'ADDRESS WRITE' (Slave address, write) - - 'DATA READ' (Data, read) - - 'DATA WRITE' (Data, write) - - 'STOP' (STOP condition) - - 'ACK' (ACK bit) - - 'NACK' (NACK bit) - - is the data or address byte associated with the 'ADDRESS*' and 'DATA*' -command. Slave addresses do not include bit 0 (the READ/WRITE indication bit). -For example, a slave address field could be 0x51 (instead of 0xa2). -For 'START', 'START REPEAT', 'STOP', 'ACK', and 'NACK' is None. - ''' -from .pd import * - +from .pd import Decoder