From 977de925c54b6b3e1bc4957f478a1a45e09d1922 Mon Sep 17 00:00:00 2001 From: PeratX <1215714524@qq.com> Date: Sun, 27 Oct 2019 16:16:52 +0800 Subject: [PATCH] SKHynix: update voltage and rename SKHynix25 to SKHynix3D --- FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix.php | 2 +- .../FlashDetector/Decoder/{SKHynix25.php => SKHynix3D.php} | 4 ++-- FlashDetector/src/iTXTech/FlashDetector/FlashDetector.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename FlashDetector/src/iTXTech/FlashDetector/Decoder/{SKHynix25.php => SKHynix3D.php} (95%) diff --git a/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix.php b/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix.php index 1438f1a..5772e8d 100644 --- a/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix.php +++ b/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix.php @@ -36,7 +36,7 @@ class SKHynix extends Decoder{ "L" => "2.7V", "S" => "1.8V", "J" => "2.7V~3.6V/1.2V", - "Q" => "Vcc: 3.3V, VccQ: 1.8V (Full speed)/ 3.3V" + "Q" => "Vcc: 2.7V~3.6V, VccQ: 1.7V~1.95V/2.7V~3.6V" ]; protected const DENSITY = [ "64" => 64, diff --git a/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix25.php b/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix3D.php similarity index 95% rename from FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix25.php rename to FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix3D.php index 6d81490..fcfc4d1 100644 --- a/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix25.php +++ b/FlashDetector/src/iTXTech/FlashDetector/Decoder/SKHynix3D.php @@ -25,7 +25,7 @@ use iTXTech\FlashDetector\Property\FlashInterface; use iTXTech\SimpleFramework\Util\StringUtil; -class SKHynix25 extends SKHynix{ +class SKHynix3D extends SKHynix{ public static function check(string $partNumber) : bool{ if(StringUtil::startsWith($partNumber, "H25")){ return true; @@ -40,7 +40,7 @@ public static function decode(string $partNumber) : FlashInfo{ //B => ToggleDDR 4.0, Q => ToggleDDR 2.0 | maybe voltage $flashInfo->setExtraInfo([ "toggle" => self::getOrDefault(self::shiftChars($partNumber, 1), ["B" => "4.0", "Q" => "2.0"]) - ])->setVoltage("Vcc: 2.7V ~ 3.6V, VccQ: 1.7V ~ 1.95V/1.14V~1.26V"); + ])->setVoltage("Vcc: 2.7V~3.6V, VccQ: 1.7V~1.95V/1.14V~1.26V"); self::shiftChars($partNumber, 1);//E, F ??? $flashInfo->setCellLevel($level = self::getOrDefault(self::shiftChars($partNumber, 1), [ "M" => 2, diff --git a/FlashDetector/src/iTXTech/FlashDetector/FlashDetector.php b/FlashDetector/src/iTXTech/FlashDetector/FlashDetector.php index 3682cf2..82a9371 100644 --- a/FlashDetector/src/iTXTech/FlashDetector/FlashDetector.php +++ b/FlashDetector/src/iTXTech/FlashDetector/FlashDetector.php @@ -28,7 +28,7 @@ use iTXTech\FlashDetector\Decoder\SanDisk; use iTXTech\FlashDetector\Decoder\SanDiskShortCode; use iTXTech\FlashDetector\Decoder\SKHynix; -use iTXTech\FlashDetector\Decoder\SKHynix25; +use iTXTech\FlashDetector\Decoder\SKHynix3D; use iTXTech\FlashDetector\Decoder\SKHynixLegacy; use iTXTech\FlashDetector\Decoder\SpecTek; use iTXTech\FlashDetector\Decoder\Toshiba; @@ -98,7 +98,7 @@ public static function loadDatabase(){ public static function init(string $lang = "eng", string $fallbackLang = "eng"){ self::registerDecoder(Micron::class); - self::registerDecoder(SKHynix25::class); + self::registerDecoder(SKHynix3D::class); self::registerDecoder(SKHynix::class); self::registerDecoder(SKHynixLegacy::class); self::registerDecoder(Toshiba::class);