nx_toner_ledger.nx
buildroot/runtime/nx_toner_ledger.nx
dependencies 0 imports · 5 importers
imports: none
imported by: nx_doc_print.nxnx_img_print.nxnx_printers_page.nxnx_toner_ledger_test.nxnx_toner_track.nx
structs
| none |
consts
| 1 | const NX_MAGIC_10000: i64 = 10000 |
| 19 | const NX_TONER_STD_PAGE_PPM: i64 = 50000 // ISO/IEC 19752 standard page = 5% coverage = 50,000 ppm |
| 20 | const NX_TONER_YIELD_TN630: i64 = 1200 // Brother TN-630 standard yield (cited) |
| 21 | const NX_TONER_YIELD_TN660: i64 = 2600 // Brother TN-660 high yield (cited) |
functions
| 24 | func nx_ledger_capacity(yield_pages: i64) -> i64 { return yield_pages * NX_TONER_STD_PAGE_PPM } |
| 27 | func nx_ledger_add(consumed: i64, coverage_ppm: i64) -> i64 { return consumed + coverage_ppm } |
| 30 | func nx_ledger_remaining_bp(yield_pages: i64, consumed: i64) -> i64 |
| 39 | func nx_ledger_remaining_pages(yield_pages: i64, consumed: i64) -> i64 |
| 46 | func nx_ledger_used_pages(consumed: i64) -> i64 { return consumed / NX_TONER_STD_PAGE_PPM } |