Mockbird
Interface Libarary and Synthesizer Setup Tool for Mockingbird-OTTO
Loading...
Searching...
No Matches
sndexcpt.h
1#include <cstdint>
2#include <stdexcept>
3
4namespace Soundscape {
12class Exception : public std::exception {
13public:
19 virtual const char* what() const;
20protected:
30 Exception(const char* format, ...);
31private:
32 char message_buffer[80];
33};
34
36class CardNotPresent : public Exception {
37public:
43 CardNotPresent(std::uint16_t port);
44};
45
48public:
51};
52
54class AutoConfigError : public Exception {
55public:
61 AutoConfigError(const char* message);
62};
63
65class FwError : public Exception {
66public:
72 FwError(std::uint8_t error_code);
73};
74
76class UnexpectedEvent : public Exception {
77public:
83 UnexpectedEvent(std::uint8_t event);
84};
85
87class Timeout : public Exception {
88public:
91};
92
103class NewFirmware : public Exception {
104public:
107};
108}
Loading configuration from SNDSCAPE.INI failed.
Definition sndexcpt.h:54
AutoConfigError(const char *message)
Creates the exception, containing an error from the load attempt.
The Soundscape hardware is not initialized (using SSINIT)
Definition sndexcpt.h:47
CardNotInitialized()
Creates the exception.
The Soundscape hardware is not present in the system.
Definition sndexcpt.h:36
CardNotPresent(std::uint16_t port)
Creates the exception given the base I/O port.
(internal) base exception class for Soundscape exceptions.
Definition sndexcpt.h:12
Exception(const char *format,...)
printf-style exception constructor.
virtual const char * what() const
Returns a user-readable message describing the exceptional condition.
Soundscape firmware responded with an error code.
Definition sndexcpt.h:65
FwError(std::uint8_t error_code)
Creates the exception, containing a firmware-reported error code.
The Soundscape card is initialized by the "new" driver pack.
Definition sndexcpt.h:103
NewFirmware()
Creates the excpetion.
Timeout waiting for readiness or response.
Definition sndexcpt.h:87
Timeout()
Creates the exception.
Soundscape firmware reported an unexpected event.
Definition sndexcpt.h:76
UnexpectedEvent(std::uint8_t event)
Creates the exception, containing a firmware-reported event code.