From 0b0506d300b0475a14de96bf50b397acd2d6fbdb Mon Sep 17 00:00:00 2001 From: Bryan Cantrill Date: Tue, 12 Dec 2023 16:15:02 -0800 Subject: [PATCH] BMR491: fix factor for MFR_FAST_VIN_OFF_OFFSET (#12) --- Cargo.toml | 2 +- src/bmr491.ron | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 60cad30..ae4d765 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pmbus" -version = "0.1.1" +version = "0.1.2" authors = ["Bryan Cantrill "] edition = "2018" license = "MPL-2.0" diff --git a/src/bmr491.ron b/src/bmr491.ron index 86d39a4..3dca24b 100644 --- a/src/bmr491.ron +++ b/src/bmr491.ron @@ -174,10 +174,12 @@ // Strangely, each unit is 450ns ("MFR_KS_PRETRIG", FixedPoint(Factor(2.22222222222)), Microseconds), - // As with MFR_RC_LEVEL, this is fixed-point -- but with no indicator - // what the factor is. And as with MFR_RC_LEVEL, the factor appears to - // to be 10. - ("MFR_FAST_VIN_OFF_OFFSET", FixedPoint(Factor(10)), Volts), + // As with MFR_RC_LEVEL, this is fixed-point -- but there is no indicator + // in the datasheet as to the factor. From conversations with Flex, + // the default value (0x20) is 0.5V, which yields a factor of 64 (that + // is, two bits to the left of the decimal point and eight bits to the + // right). + ("MFR_FAST_VIN_OFF_OFFSET", FixedPoint(Factor(64)), Volts), ("MFR_VOUT_OFFSET_MONITOR", VOutMode(Signed), Volts),