File 0004-protocol-Update-SLogic-16U3-sample-rates-and-limits-.patch of Package libsigrok
From a7df1ef7c69b54f6029fdfee982c2b67ddcbd381 Mon Sep 17 00:00:00 2001
From: taorye <taorye@outlook.com>
Date: Wed, 10 Sep 2025 14:46:06 +0800
Subject: [PATCH 04/17] protocol: Update SLogic 16U3 sample rates and limits
for accuracy
---
src/hardware/sipeed-slogic-analyzer/api.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/hardware/sipeed-slogic-analyzer/api.c b/src/hardware/sipeed-slogic-analyzer/api.c
index 2e0261abc..65d2dc087 100644
--- a/src/hardware/sipeed-slogic-analyzer/api.c
+++ b/src/hardware/sipeed-slogic-analyzer/api.c
@@ -71,6 +71,7 @@ static const uint64_t limit_samplerates_slogiccombo8[] = { SR_MHZ(160), SR_MHZ(8
static const uint64_t samplerates_slogic16u3[] = {
/**
* SLogic 16U3 (USBSS 5Gbps bw: 400MB/s)
+ * 800M = 2^5*5^2 M
* 1200M = 2^4*3^1*5^2 M
* 1500M = 2^2*3^1*5^3 M
* --1600M = 2^6 *5^2 M
@@ -86,6 +87,7 @@ static const uint64_t samplerates_slogic16u3[] = {
SR_MHZ(16),
SR_MHZ(20),
SR_MHZ(24),
+ SR_MHZ(25),
SR_MHZ(30),
SR_MHZ(32),
SR_MHZ(40),
@@ -95,6 +97,7 @@ static const uint64_t samplerates_slogic16u3[] = {
SR_MHZ(100),
SR_MHZ(125),
SR_MHZ(150),
+ SR_MHZ(160),
/* x 16ch */
SR_MHZ(200),
/* x 8ch */
@@ -104,13 +107,14 @@ static const uint64_t samplerates_slogic16u3[] = {
SR_MHZ(500),
SR_MHZ(600),
SR_MHZ(750),
+ SR_MHZ(800),
/* x 2ch */
SR_MHZ(1200),
SR_MHZ(1500),
};
static const uint64_t samplechannels_slogic16u3[] = { 2, 4, 8, 16 };
-static const uint64_t limit_samplerates_slogic16u3[] = { SR_MHZ(1500), SR_MHZ(750), SR_MHZ(400), SR_MHZ(200) };
+static const uint64_t limit_samplerates_slogic16u3[] = { SR_MHZ(1500), SR_MHZ(800), SR_MHZ(400), SR_MHZ(200) };
static const char *patterns[] = {
[PATTERN_MODE_NOMAL] = "PATTERN_MODE_NOMAL",
--
2.52.0