From: Uwe Hermann Date: Wed, 22 Jan 2014 21:47:18 +0000 (+0100) Subject: All PDs: Drop unneeded comments. X-Git-Tag: libsigrokdecode-0.3.0~157 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ef36224880135a05d2fbde8f048ea3fe3f425df9;p=libsigrokdecode.git All PDs: Drop unneeded comments. The single comment re-stating the PD's name / description / purpose in each pd.py file is not really needed, that info is available in the Decoder class' attributes already. --- diff --git a/decoders/avr_isp/pd.py b/decoders/avr_isp/pd.py index 5c2fd3a..ffe8f00 100644 --- a/decoders/avr_isp/pd.py +++ b/decoders/avr_isp/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# AVR ISP protocol decoder - import sigrokdecode as srd from .parts import * diff --git a/decoders/can/pd.py b/decoders/can/pd.py index ee32e7a..13a4b24 100644 --- a/decoders/can/pd.py +++ b/decoders/can/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# CAN protocol decoder - import sigrokdecode as srd class Decoder(srd.Decoder): diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index 6464360..223a4c0 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# DCF77 protocol decoder - import sigrokdecode as srd import calendar diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index 01aaf6b..8e8a708 100644 --- a/decoders/ds1307/pd.py +++ b/decoders/ds1307/pd.py @@ -19,8 +19,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Dallas DS1307 RTC protocol decoder - import sigrokdecode as srd days_of_week = [ diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index 3b3536e..adeb6ae 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -17,8 +17,6 @@ ## along with this program; if not, see . ## -# EDID protocol decoder - # TODO: # - EDID < 1.3 # - add short annotations diff --git a/decoders/guess_bitrate/pd.py b/decoders/guess_bitrate/pd.py index e30be12..0ab3129 100644 --- a/decoders/guess_bitrate/pd.py +++ b/decoders/guess_bitrate/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Bitrate / baudrate guessing protocol decoder - import sigrokdecode as srd class Decoder(srd.Decoder): diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index 5eff169..a959eca 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# I²C protocol decoder - # TODO: Look into arbitration, collision detection, clock synchronisation, etc. # TODO: Implement support for 10bit slave addresses. # TODO: Implement support for inverting SDA/SCL levels (0->1 and 1->0). diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index 1bf96a9..23c4253 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Generic I²C demultiplexing protocol decoder - import sigrokdecode as srd class Decoder(srd.Decoder): diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 009ab87..70613d2 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -18,8 +18,6 @@ ## along with this program; if not, see . ## -# Generic I²C filtering protocol decoder - # TODO: Support for filtering out multiple slave/direction pairs? import sigrokdecode as srd diff --git a/decoders/i2s/pd.py b/decoders/i2s/pd.py index c934b5d..3064b7d 100644 --- a/decoders/i2s/pd.py +++ b/decoders/i2s/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# I²S protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index ea6887b..0241924 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# JTAG protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/jtag_stm32/pd.py b/decoders/jtag_stm32/pd.py index aa746e0..7d584fb 100644 --- a/decoders/jtag_stm32/pd.py +++ b/decoders/jtag_stm32/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# ST STM32 JTAG protocol decoder - import sigrokdecode as srd # JTAG debug port data registers (in IR[3:0]) and their sizes (in bits) diff --git a/decoders/lm75/pd.py b/decoders/lm75/pd.py index 473d7f8..08f338a 100644 --- a/decoders/lm75/pd.py +++ b/decoders/lm75/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# National LM75 (and compatibles) temperature sensor protocol decoder - # TODO: Better support for various LM75 compatible devices. import sigrokdecode as srd diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py index f097574..f37c845 100644 --- a/decoders/lpc/pd.py +++ b/decoders/lpc/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# LPC protocol decoder - import sigrokdecode as srd # ... diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index a67e70e..73e7356 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Maxim DS28EA00 protocol decoder - import sigrokdecode as srd # Dictionary of FUNCTION commands and their names. diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index 7c4fa9a..e96b000 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# MIDI protocol decoder - import sigrokdecode as srd from .lists import * diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py index 57c96bc..1e6c33d 100644 --- a/decoders/mlx90614/pd.py +++ b/decoders/mlx90614/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Melexis MLX90614 Infrared Thermometer protocol decoder - import sigrokdecode as srd class Decoder(srd.Decoder): diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 1b6c6ac..d6c84e8 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -18,10 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Macronix MX25Lxx05D SPI (NOR) flash chip protocol decoder - -# Note: Works for MX25L1605D/MX25L3205D/MX25L6405D. - import sigrokdecode as srd # Dict which maps command IDs to their names and descriptions. diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index 4a7e666..8245914 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# MEMSIC MXC6225XU protocol decoder - import sigrokdecode as srd # Definitions of various bits in MXC6225XU registers. diff --git a/decoders/nunchuk/pd.py b/decoders/nunchuk/pd.py index a34b68f..90c23d2 100644 --- a/decoders/nunchuk/pd.py +++ b/decoders/nunchuk/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Nintendo Wii Nunchuk protocol decoder - import sigrokdecode as srd class Decoder(srd.Decoder): diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py index 9c4913c..650a7a0 100644 --- a/decoders/onewire_link/pd.py +++ b/decoders/onewire_link/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# 1-Wire protocol decoder (link layer) - import sigrokdecode as srd class Decoder(srd.Decoder): diff --git a/decoders/onewire_network/pd.py b/decoders/onewire_network/pd.py index 67dfe45..642cc0e 100644 --- a/decoders/onewire_network/pd.py +++ b/decoders/onewire_network/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# 1-Wire protocol decoder (network layer) - import sigrokdecode as srd # Dictionary of ROM commands and their names, next state. diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index 4d9dc9d..f4929f3 100644 --- a/decoders/pan1321/pd.py +++ b/decoders/pan1321/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Panasonic PAN1321 Bluetooth module protocol decoder - import sigrokdecode as srd # ... diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index c31718f..540ab24 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Parallel (sync) bus protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/rtc8564/pd.py b/decoders/rtc8564/pd.py index 6f23e07..03aa7cf 100644 --- a/decoders/rtc8564/pd.py +++ b/decoders/rtc8564/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Epson RTC-8564 JE/NB protocol decoder - import sigrokdecode as srd # Return the specified BCD number (max. 8 bits) as integer. diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py index 3ffa1e5..9c09c2f 100644 --- a/decoders/sdcard_spi/pd.py +++ b/decoders/sdcard_spi/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# SD card (SPI mode) low-level protocol decoder - import sigrokdecode as srd cmd_name = { diff --git a/decoders/spi/pd.py b/decoders/spi/pd.py index e00235e..67c210c 100644 --- a/decoders/spi/pd.py +++ b/decoders/spi/pd.py @@ -19,8 +19,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# SPI protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/tlc5620/pd.py b/decoders/tlc5620/pd.py index 5c9b819..7a514e2 100644 --- a/decoders/tlc5620/pd.py +++ b/decoders/tlc5620/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# Texas Instruments TLC5620 protocol decoder - import sigrokdecode as srd dacs = { diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index c3d1b62..bafe112 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -18,8 +18,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# UART protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index c651a7d..f79f2fc 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -19,8 +19,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# USB (low-speed and full-speed) packet protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index 4fbc8a3..fbc390a 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -19,8 +19,6 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -# USB signalling (low-speed and full-speed) protocol decoder - import sigrokdecode as srd ''' diff --git a/decoders/xfp/pd.py b/decoders/xfp/pd.py index 6230523..bc55aa7 100644 --- a/decoders/xfp/pd.py +++ b/decoders/xfp/pd.py @@ -17,8 +17,6 @@ ## along with this program; if not, see . ## -# XFP protocol decoder - import sigrokdecode as srd import os