1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-24 13:17:41 +00:00

Add three device-descriptor-specific functions.

This commit is contained in:
Thomas Harte
2025-11-20 15:32:57 -05:00
parent 7bc865a2e0
commit 50cd28f882

View File

@@ -25,7 +25,7 @@ enum class Function: uint8_t {
ReadBlock = 6, // RDBLK
WriteCharacter = 7, // WRCH
WriteBlock = 8, // WRBLK
ReadStatus = 9, // RSTAT
ReadChannelStatus = 9, // RSTAT
SetChannelStatus = 10, // SSTAT
SpecialFunction = 11, // SFUNC
@@ -44,6 +44,16 @@ enum class Function: uint8_t {
ReturnErrorMessage = 28, // ERRMSG
};
// Page 25.
enum class DeviceDescriptorFunction: uint8_t {
//
// Codes are the same as `Function` in the range 111.
//
Interrupt = 0,
Initialise = 12,
BufferMoved = 13,
};
// Pages 6870.
enum class Error: uint8_t {
//