Enum helios_dac::wrapper::HeliosError
source · pub enum HeliosError {
Show 13 variants
NotInitialized,
InvalidDevNum,
NullPoints,
TooManyPoints,
PPSTooHigh,
PPSTooLow,
DeviceClosed,
DeviceFrameReady,
DeviceSendControl,
DeviceResult,
DeviceNullBuffer,
DeviceSignalTooLong,
Libusb,
}
Variants§
NotInitialized
Attempted to perform an action before calling OpenDevices()
InvalidDevNum
Attempted to perform an action with an invalid device number
NullPoints
write_frame called with null pointer to points
TooManyPoints
write_frame called with a frame containing too many points
PPSTooHigh
write_frame called with pps higher than maximum allowed
PPSTooLow
write_frame called with pps lower than minimum allowed
DeviceClosed
Attempted to perform an operation on a closed DAC device
DeviceFrameReady
Attempted to send a new frame with HELIOS_FLAGS_DONT_BLOCK before previous DoFrame() completed
DeviceSendControl
Operation failed because SendControl() failed (if operation failed because of libusb_interrupt_transfer failure, the error code will be a libusb error instead)
DeviceResult
Received an unexpected result from a call to SendControl()
DeviceNullBuffer
Attempted to call SendControl() with a null buffer pointer
DeviceSignalTooLong
Attempted to call SendControl() with a control signal that is too long
Libusb
Errors from libusb are the libusb error code added to -5000.