-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CD Changer will now display 'CD TRK SCAN' oscillatiing with 'CD ERROR…
…'. Unrelated: The g_dev is not properly set, this needs to be done
- Loading branch information
Showing
7 changed files
with
142 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
struct device_t { | ||
const unsigned char name[4]; | ||
const unsigned char baseId; | ||
const unsigned char respId; | ||
bool enabled; | ||
bool initialized; | ||
unsigned char info[15]; | ||
}; | ||
|
||
//init, {TRACK + CART} 0 1 2 3 4 5 6 7 8 ||| 9 10 11 12 13 14 | ||
#define DEV_DEFAULT false, {0x00, 0x02, 0x00, 0x01, 0x80, 0x01, 0xff, 0x60, 0x60, 0x00, 0x0f, 0xff, 0x4a, 0xfc, 0xff } | ||
/* | ||
0 ? | ||
1 02 stop, 08 play | ||
2 08 ? 0f rand | ||
3 [01..0a] CDx | ||
4 track related? | ||
5 track related? | ||
6 ? | ||
7 time min | ||
8 time sec | ||
*/ | ||
|
||
#ifdef MDC | ||
#define ENABLE_MDC true | ||
#else | ||
#define ENABLE_MDC false | ||
#endif | ||
|
||
#ifdef CDC | ||
#define ENABLE_CDC true | ||
#else | ||
#define ENABLE_CDC false | ||
#endif | ||
|
||
#define g_devicesSize 2 | ||
struct device_t g_devices[g_devicesSize] = { | ||
{"MDC", 0xd8, 0xde, ENABLE_MDC, DEV_DEFAULT} //MD-C | ||
, {"CDC", 0x8e, 0xee, ENABLE_CDC, DEV_DEFAULT} //CD-C | ||
}; | ||
struct device_t { | ||
const unsigned char name[4]; | ||
const unsigned char baseId; | ||
const unsigned char respId; | ||
bool enabled; | ||
bool initialized; | ||
unsigned char trackInfo[9]; | ||
unsigned char cartInfo[6]; | ||
}; | ||
|
||
//init, {TRACK}, {CART} 0 1 2 3 4 5 6 7 8 ||| 9 10 11 12 13 14 | ||
#define DEV_DEFAULT false, {0x00, 0x02, 0x00, 0x01, 0x80, 0x01, 0xff, 0x60, 0x60}, {0x00, 0x0f, 0xff, 0x4a, 0xfc, 0xff } | ||
/* | ||
0 ? | ||
1 02 stop, 08 play | ||
2 08 ? 0f rand | ||
3 [01..0a] CDx | ||
4 track related? | ||
5 track related? | ||
6 ? | ||
7 time min | ||
8 time sec | ||
*/ | ||
|
||
#ifdef MDC | ||
#define ENABLE_MDC true | ||
#else | ||
#define ENABLE_MDC false | ||
#endif | ||
|
||
#ifdef CDC | ||
#define ENABLE_CDC true | ||
#else | ||
#define ENABLE_CDC false | ||
#endif | ||
|
||
#define g_devicesSize 2 | ||
struct device_t g_devices[g_devicesSize] = { | ||
{"MDC", 0xd8, 0xde, ENABLE_MDC, DEV_DEFAULT} //MD-C | ||
, {"CDC", 0xe8, 0xee, ENABLE_CDC, DEV_DEFAULT} //CD-C | ||
}; | ||
|
||
unsigned char fakeCI[6] = {0x00, 0x0f, 0xff, 0x4a, 0xfc, 0xff }; | ||
unsigned char fakeTI[9] = {0x00, 0x02, 0x00, 0x01, 0x80, 0x01, 0xff, 0x60, 0x60}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters