mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Move FeliCa IDm/PMm display to the new NFC-F info screen
The goal is to gradually split out NfcWorkerEventReadFelica into more specific decoders, and have the generic NFC-F info screen display info for tags that don't have a specific decoder, similar to how NFC-A works currently.
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
#include "./felica.h"
|
||||
#include <furi.h>
|
||||
|
||||
static const uint32_t TIME_CONSTANT_US = 302;
|
||||
|
||||
uint_least32_t felica_estimate_timing_us(uint_least8_t timing, uint_least8_t units) {
|
||||
uint_least32_t base_cost_factor = 1 + (timing & 0x7);
|
||||
uint_least32_t unit_cost_factor = 1 + ((timing >> 3) & 0x7);
|
||||
uint_least32_t scale = 1 << ((timing >> 6) * 2);
|
||||
return TIME_CONSTANT_US * scale * (base_cost_factor + unit_cost_factor * units);
|
||||
}
|
||||
|
||||
FuriString* felica_get_system_name(FelicaSystem* system) {
|
||||
uint16_t code = system->code;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user