0 | module Bindings.RtlSdr.Error
 1 |
 2 | %default total
 3 |
 4 | public export
 5 | data RTLSDR_ERROR = RtlSdrError
 6 |                   | RtlSdrHandleInvalid
 7 |                   | RtlSdrEEPromSizeExceeded
 8 |                   | RtlSdrEEPromNotFound
 9 |                   | RtlSdrInvalidFreq
10 |                   | RtlSdrInvalidRate
11 |                   | RtlSdrDeviceNameEmpty
12 |                   | RtlSdrDeviceNotFound
13 |                   | RtlSdrDeviceFoundButNotMatching
14 |
15 | export
16 | Show RTLSDR_ERROR where
17 |   show RtlSdrError = "librtlsdr returned an internal error"
18 |   show RtlSdrHandleInvalid      = "device handle is invalid"
19 |   show RtlSdrEEPromSizeExceeded = "EEPROM size is exceeded"
20 |   show RtlSdrEEPromNotFound     = "no EEPROM was found"
21 |   show RtlSdrInvalidFreq        = "frequency could not be set"
22 |   show RtlSdrInvalidRate        = "invalid sample rate"
23 |   show RtlSdrDeviceNameEmpty    = "device name is null"
24 |   show RtlSdrDeviceNotFound     = "no devices were found at all"
25 |   show RtlSdrDeviceFoundButNotMatching = "devices were found, but none with matching name"
26 |