pub struct GoXLR<T: UsbContext> { /* private fields */ }
Implementations
sourceimpl<T: UsbContext> GoXLR<T>
impl<T: UsbContext> GoXLR<T>
pub fn from_device(
handle: DeviceHandle<T>,
device_descriptor: DeviceDescriptor
) -> Result<Self, ConnectError>
pub fn usb_device_descriptor(&self) -> &DeviceDescriptor
pub fn usb_device_manufacturer(&self) -> Result<String, Error>
pub fn usb_device_product_name(&self) -> Result<String, Error>
pub fn usb_device_is_claimed(&self) -> bool
pub fn usb_device_has_kernel_driver_active(&self) -> Result<bool, Error>
pub fn usb_bus_number(&self) -> u8
pub fn usb_address(&self) -> u8
pub fn read_control(
&mut self,
request: u8,
value: u16,
index: u16,
length: usize
) -> Result<Vec<u8>, Error>
pub fn write_control(
&mut self,
request: u8,
value: u16,
index: u16,
data: &[u8]
) -> Result<(), Error>
pub fn request_data(
&mut self,
command: Command,
body: &[u8]
) -> Result<Vec<u8>, Error>
pub fn supports_dcp_category(
&mut self,
category: DCPCategory
) -> Result<bool, Error>
pub fn get_system_info(&mut self) -> Result<(), Error>
pub fn get_firmware_version(&mut self) -> Result<FirmwareVersions, CommandError>
pub fn get_serial_number(&mut self) -> Result<(String, String), CommandError>
pub fn set_fader(
&mut self,
fader: FaderName,
channel: ChannelName
) -> Result<(), Error>
pub fn set_volume(
&mut self,
channel: ChannelName,
volume: u8
) -> Result<(), Error>
pub fn set_encoder_value(
&mut self,
encoder: EncoderName,
value: u8
) -> Result<(), Error>
pub fn set_encoder_mode(
&mut self,
encoder: EncoderName,
mode: u8,
resolution: u8
) -> Result<(), Error>
pub fn set_channel_state(
&mut self,
channel: ChannelName,
state: ChannelState
) -> Result<(), Error>
pub fn set_fader_display_mode(
&mut self,
fader: FaderName,
gradient: bool,
meter: bool
) -> Result<(), Error>
pub fn set_fader_scribble(
&mut self,
fader: FaderName,
data: [u8; 1024]
) -> Result<(), Error>
pub fn set_routing(
&mut self,
input_device: InputDevice,
data: [u8; 22]
) -> Result<(), Error>
pub fn set_microphone_gain(
&mut self,
microphone_type: MicrophoneType,
gain: u16
) -> Result<(), CommandError>
pub fn get_microphone_level(&mut self) -> Result<u16, Error>
pub fn set_effect_values(
&mut self,
effects: &[(EffectKey, i32)]
) -> Result<(), CommandError>
pub fn set_mic_param(
&mut self,
params: &[(MicrophoneParamKey, [u8; 4])]
) -> Result<(), CommandError>
pub fn await_interrupt(&mut self, duration: Duration) -> bool
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for GoXLR<T> where
T: RefUnwindSafe,
impl<T> Send for GoXLR<T>
impl<T> Sync for GoXLR<T>
impl<T> Unpin for GoXLR<T> where
T: Unpin,
impl<T> UnwindSafe for GoXLR<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more