nx_toner_track.nx
buildroot/runtime/nx_toner_track.nx
about
nx_toner_track.nx -- REAL toner reading from the page we actually printed. Decodes the URF artifact back
to its bitmap, measures true ink coverage, records it in the persistent ledger, and reports real toner
remaining -- the printer's lying gauge ignored entirely. READ+record only (a data file) -> never-brick.
license_tier: ORIGINAL ; genealogy_id: project-printer-management-ipp-sclass-2026-06-20
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_pwg_rle.nxnx_toner_meter.nxnx_toner_ledger.nxnx_toner_store.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 11 | const K_MAGIC_10000: i64 = 10000 |
functions
| 13 | func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func pn(v: i64) -> i64 |
| 24 | func p2(whole: i64, frac2: i64) -> i64 |
| 29 | func be32(d: *u8, o: i64) -> i64 called by 1: main |
| 33 | func main() -> i64 |