-
Notifications
You must be signed in to change notification settings - Fork 4
Add npm1012 support #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kopuu1
wants to merge
85
commits into
main
Choose a base branch
from
add_npm1012_support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add npm1012 support #316
Changes from 19 commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
31ee748
Add npm1012 device
kopuu1 b396a92
npm1012: Add minimal set of unit test
kopuu1 6517761
npm1012/tests/exportImport.test.ts: Add file
kopuu1 f8ec8fe
npm1012: Copy over charger module from 1300
kopuu1 33195cd
npm1012: Add the charger module to the device
kopuu1 fc8a7d8
npm/types/charger: Add vTricklefast and optional iTrickle for 1012
kopuu1 e5df614
npm1012/charger: Add iTrickle command support
kopuu1 ea404b2
PowerCard: Add optional iTrickle dropdown
kopuu1 3daaf1d
npm/types/charger: Remove abstract from optional methods
kopuu1 618ad20
npm/types/charger: Change current range type in ChargerModuleRanges t…
kopuu1 3835216
npm1012/charger: Modify VTerm range
kopuu1 5c633d5
npm/pmicHelpers: Update 1012 USB id's
kopuu1 be18f62
npm1012/tests/helpers: Fix number of GPIO's
kopuu1 a6a3edb
npm1012: Disable generateOverlay() for now
kopuu1 45fb83d
deviceSetups: Remove useless comment from npm1012DeviceSetup
kopuu1 9a379ee
Revert "npm/types/charger: Change current range type in ChargerModule…
kopuu1 dd8ebaa
utils/helpers: Add RangeOrNumberArray type with helper functions
kopuu1 b992176
npm/types/charger: Change current range type to RangeOrNumberArray
kopuu1 68c8d4e
npm1012/charger: Modify current range
kopuu1 2f249e5
utils/helpers: Add few improvements
kopuu1 b9506b1
npm/types/charger: Add optional enableWeakBatteryCharging
kopuu1 0dc47ad
npm1012/charger: Add support for enabledWeakBatteryCharging, remove b…
kopuu1 e3ad8e6
PowerCard: Add optional enableWeakBatteryCharging
kopuu1 572a58a
npm/types/charger: Add optional vWeak
kopuu1 d52d5e2
npm1012/charger: Add support for vWeak
kopuu1 39e1f9c
PowerCard: Add optional vWeak
kopuu1 dfbddf4
npm1012/charger: Add missing callbacks
kopuu1 95eaf79
Charger/Jeita.tsx: Add external label control
kopuu1 bab7fce
Charger/Charger.tsx: Increase MasonryLayout minWidth
kopuu1 3faadc2
npm1012/charger: Add default jeita labels
kopuu1 6c44502
npm130x/charger: Add default jeita labels
kopuu1 1606ebe
npm2100/charger: Add default jeita labels
kopuu1 ac9a56c
npm/types/charger: Require iChg input parameter for getting values.iT…
kopuu1 65bbfe9
npm1012/charger: Add getITrickleValues() with iChg as input parameter
kopuu1 bbf3d69
charger/PowerCard: Get iTrickle values using iChg as input parameter
kopuu1 339787f
npm/types: Add iChgCool, iChgWarm, vTermCool, vTermWarm
kopuu1 5678478
npm/types: Add enableAdvancedChargingProfile and enableNtcMonitoring
kopuu1 8da7ac3
npm1012/charger: Add iChgCool, iChgWarm, vTermCool, vTermWarm
kopuu1 9df5101
npm1012/charger: Add enableAdvancedChargingProfile and enableNtcMonit…
kopuu1 0b5141d
Charger/Jeita.tsx: Add support for advanced charging profile
kopuu1 5fa1219
Charger/Jeita.tsx: Add option to disable number input for temperature
kopuu1 62ec8ae
npm/types: Add types and methods for battery life and safety card
kopuu1 e23902c
npm1012/charger: Add functionality for battery life and safety card
kopuu1 1c9fc08
Charger: Add battery life and safety card
kopuu1 830ee83
npm1012/charger: Move iTrickle values get method
kopuu1 bb562c8
npm/types/charger: Add iChg as an optional parameter for charger.valu…
kopuu1 ee68c72
npm1012/charger: Fix iTerm values in get values()
kopuu1 91704b7
npm130x/charger: Change get values.iTerm return to have iChg parameter
kopuu1 01a417f
PowerCard.tsx: Use iChg as a parameter for getting iTerm values
kopuu1 43bb32d
ConfigurationDialog.tsx: Use iChg as a parameter for getting iTerm va…
kopuu1 be2ca7f
npm1012/charger/getters.ts: Add missing vWeak() call from all()
kopuu1 5a3bd70
npm/types/charger: Add jeita labels
kopuu1 edc5379
PowerCard.tsx: Remove 'Charging Below Vbatlow' toggle
kopuu1 4970783
npm1012/charger/setters: Remove unneeded undefined check for functions
kopuu1 372f7f6
npm/types/charger: Make ntcBeta and ntcThermistor optional
kopuu1 e355c6a
Charger/Jeita.tsx: Handle nTCBeta and nTCThermistor as optional
kopuu1 c499de9
ChecklistDialog.tsx: Handle set.nTCThermistor() as optional
kopuu1 47a22ac
npm130x/charger: Handle methods for nTC Beta and Thermistor as optional
kopuu1 20df8da
npm1012/charger: Remove unused code for ntc beta and thermistor
kopuu1 8d32c56
npm1012/charger: Add missing commands for advanced charging profile
kopuu1 51e38f6
npm/types/charger: Add missing get commands for advanced charging pro…
kopuu1 b67123e
npm1012/charger: Remove unneeded disabling of charging before sending…
kopuu1 b1d4969
npm1012/charger/setters: Remove unneeded undefined check for functions
kopuu1 2ea1ebc
npm1012/charger: Keep type as RangeType for values
kopuu1 83d39c3
npm/types/charger: Make tChgStop optional, add tChgReduce
kopuu1 49b52af
npm130x/charger: Handle tChgStop as optional
kopuu1 588d87c
npm1012/charger: Add methods for tChgReduce, remove tChgStop
kopuu1 b002ece
Charger/ThermalRegulation.tsx: Add tChgReduce
kopuu1 1fbc70d
npm1012/charger: Add callback for tChgReduce
kopuu1 4bb8f49
npm1012/charger: Update shell commands
kopuu1 04111fb
pmic1012Device.tsx: Fix initial FW version
kopuu1 33cc15a
npm/types/charger: Make vTermR optional
kopuu1 d28de04
Jeita.tsx: Handle vTermR as optional
kopuu1 ddf6fbb
npm130x/charger: Handle vTermR as optional
kopuu1 5318e13
npm1300/overlay: Handle vTermR as optional
kopuu1 4585316
Merge branch 'update_thermal_regulation_card' into add_npm1012_support
kopuu1 284afe7
Merge branch 'add_battery_life_and_safety_card' into add_npm1012_support
kopuu1 0c5252b
useNpmDevice.tsx: Fix hiding the "System Features" tab if not a suppo…
kopuu1 ae7176b
BatteryLifeAndSafety.tsx: Add toggle for enableBatteryDischargeCurren…
kopuu1 227308c
npm1012/charger: Add tests
kopuu1 10a90c0
DeviceSelector.tsx: Add support for npm1012
kopuu1 ec08bee
package.json: Update nrfutil device version
kopuu1 8ab7c5e
PowerCard.tsx: Move iTrickle, vWeak and weakBatteryCharging under def…
kopuu1 c37482a
pmic1012Device.tsx: Override startAdcSample() in BaseNpmDevice
kopuu1 b08cbce
npm1012/tests: Update requestUpdates test
kopuu1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.