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:
@@ -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 1–11.
|
||||
//
|
||||
Interrupt = 0,
|
||||
Initialise = 12,
|
||||
BufferMoved = 13,
|
||||
};
|
||||
|
||||
// Pages 68–70.
|
||||
enum class Error: uint8_t {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user