Mercurial > repos > blastem
diff io.h @ 2027:0f54a898db03
Implement Heartbeat Personal Trainer peripheral and add ROM DB entry for Outback Joey
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 15 Feb 2021 11:24:06 -0800 |
parents | e7a516f08cec |
children | 93918a6a8ab7 |
line wrap: on
line diff
--- a/io.h Wed Feb 10 20:13:27 2021 -0800 +++ b/io.h Mon Feb 15 11:24:06 2021 -0800 @@ -25,7 +25,8 @@ IO_EA_MULTI_B, IO_SEGA_PARALLEL, IO_GENERIC, - IO_GENERIC_SERIAL + IO_GENERIC_SERIAL, + IO_HEARTBEAT_TRAINER }; typedef struct { @@ -58,6 +59,23 @@ uint8_t mode; uint8_t cmd; } keyboard; + struct { + uint8_t *nv_memory; + uint8_t *cur_buffer; + uint64_t rtc_base_timestamp; + uint8_t rtc_base[5]; + uint8_t bpm; + uint8_t cadence; + uint8_t buttons; + uint8_t nv_page_size; + uint8_t nv_pages; + uint8_t param; + uint8_t state; + uint8_t status; + uint8_t device_num; + uint8_t cmd; + uint8_t remaining_bytes; + } heartbeat_trainer; } device; uint8_t output; uint8_t control;