diff lc8951.h @ 2130:28b6453cf7e3

Emulate CDC sync detection and sync insertion rather than relying on external knowledge about sector offset
author Michael Pavone <pavone@retrodev.com>
date Tue, 15 Mar 2022 08:58:04 -0700
parents f22e04b69272
children 10e4439d8f13
line wrap: on
line diff
--- a/lc8951.h	Sun Mar 13 11:49:07 2022 -0700
+++ b/lc8951.h	Tue Mar 15 08:58:04 2022 -0700
@@ -12,6 +12,7 @@
 	uint32_t clock_step;
 	uint32_t decode_end;
 	uint32_t transfer_end;
+	uint16_t sector_counter;
 
 	uint8_t  buffer[0x4000];
 
@@ -26,6 +27,7 @@
 	uint8_t  ctrl1;
 	uint8_t  ar;
 	uint8_t  ar_mask;
+	uint8_t  sync_counter;
 } lc8951;
 
 void lc8951_init(lc8951 *context, lcd8951_byte_recv_fun byte_handler, void *handler_data);