|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Parsed JVS coin slot state. More...
#include <mie.h>
Data Fields | |
| uint16_t | raw |
| Raw 16-bit COININP word. | |
| uint16_t | count |
| Last good meter (status bits cleared). | |
Parsed JVS coin slot state.
Updated from JVS COININP (0x21) during periodic polling. Use mie_read_coin_input() to copy the latest cached slots; that function does not issue a separate bus transaction.
Each slot is a 16-bit meter value in JVS wire order. Status flags MIE_JVS_COIN_STUFF and MIE_JVS_COIN_COUNTER_BREAK occupy bits 14..15 (MIE_JVS_COIN_BUSY). When either flag is set the driver keeps the previous count and sets mie_jvs_inputs_t::coin_fault for that frame.
On a normal reading, count is raw with status bits cleared (raw & ~MIE_JVS_COIN_BUSY). Coin inserts are detected as positive deltas against the previous count.
| uint16_t mie_jvs_coin_slot_t::count |
Last good meter (status bits cleared).
Referenced by ui_build().
| uint16_t mie_jvs_coin_slot_t::raw |
Raw 16-bit COININP word.
Referenced by ui_build().