From: Gerhard Sittig Date: Sun, 20 Feb 2022 07:10:33 +0000 (+0100) Subject: kingst-la2016: comment on FPGA register at offset 0x0004 (unused) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c8aa9206e91ce983c7d12108f17f462663b337fa;p=libsigrok.git kingst-la2016: comment on FPGA register at offset 0x0004 (unused) The vendor firmware optionally keeps reading u32 values from the FPGA register at offset 0x0004 outside of acquisition periods. To present the input pin's current level and changes "in real time" in the GUI. The sigrok driver does not use this information, but it's useful to have the comment in the source code. --- diff --git a/src/hardware/kingst-la2016/protocol.c b/src/hardware/kingst-la2016/protocol.c index e59bae0a..2b1da858 100644 --- a/src/hardware/kingst-la2016/protocol.c +++ b/src/hardware/kingst-la2016/protocol.c @@ -79,6 +79,7 @@ static const struct kingst_model models[] = { #define REG_RUN 0x00 /* Read capture status, write start capture. */ #define REG_PWM_EN 0x02 /* User PWM channels on/off. */ #define REG_CAPT_MODE 0x03 /* Write 0x00 capture to SDRAM, 0x01 streaming. */ +#define REG_PIN_STATE 0x04 /* Read current pin state (real time display). */ #define REG_BULK 0x08 /* Write start addr, byte count to download samples. */ #define REG_SAMPLING 0x10 /* Write capture config, read capture SDRAM location. */ #define REG_TRIGGER 0x20 /* Write level and edge trigger config. */