code wiki / _hdl_build / nx_batt_recondition.nx

nx_batt_recondition.nx

buildroot/runtime/_hdl_build/nx_batt_recondition.nx

2570 B43 linesdepth 4pulls 5 transitivereach 1 importersview sourcekind librarytopic batt
docsdependenciesstructsconstsfunctions

about

nx_batt_recondition.nx -- R2 RECLAIM / RECONDITION WORKFLOW. Given a triage verdict (R1 nx_batt_intake), drives the staged restore and ROUTES EVERY charge step through the never-ignite spine (R0 nx_battery_safety): a step that would exceed the safety envelope (rate / voltage / thermal) is REFUSED and the workflow aborts SAFE -- it can NEVER drive an unsafe charge. UNSAFE-REJECT / RETIRE-RECYCLE packs are routed to recycle and NEVER charged (safety screened first = the #26 NEVER-IGNITE priority). Composes R0 + R1; this is the rung that makes "EGO-grade restore" real AND safe. license_tier: ORIGINAL

dependencies 3 imports · 1 importers

nx_intent.nx nx_battery_safety.nx nx_batt_intake.nx nx_batt_recondition.nx nx_batt_recondition_test.nx

imports: nx_intent.nxnx_battery_safety.nxnx_batt_intake.nx

imported by: nx_batt_recondition_test.nx

structs

none

consts

11const NX_RW_DONE_RESTORED: i64 = 0 // workflow finished, pack restored to service
12const NX_RW_DONE_RETIRED: i64 = 1 // routed to safe recycle (zero charge commands issued)
13const NX_RW_REFUSED_UNSAFE: i64 = 2 // a step hit the safety wall -> aborted safe (never-ignite)
14const NX_RW_BAD_VERDICT: i64 = 3

functions

18func nx_recondition_run(verdict: i64, env: *NxBatterySafetyEnvelope, log: *NxBatteryCommandLog,
called by 1: main calls 1: nx_battery_validate_command