class UVC::EncodingUnitDescriptor
Attributes
bControlSize[R]
bSourceID[R]
bUnitID[R]
bmControls[R]
bmControlsRuntime[R]
iEncoding[R]
Public Class Methods
new(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, iEncoding, bControlSize, bmControls, bmControlsRuntime)
click to toggle source
Calls superclass method
UVC::ClassSpecificVCInterfaceDescriptor::new
# File lib/uvc.rb, line 595 def initialize(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, iEncoding, bControlSize, bmControls, bmControlsRuntime) super(bDescriptorType, bDescriptorSubType) @bUnitID = bUnitID @bSourceID = bSourceID @iEncoding = iEncoding @bControlSize = bControlSize @bmControls = bmControls @bmControlsRuntime = bmControlsRuntime end
parse(bDescriptorType, bDescriptorSubType, rest)
click to toggle source
# File lib/uvc.rb, line 590 def self.parse(bDescriptorType, bDescriptorSubType, rest) bUnitID, bSourceID, iEncoding, bControlSize, bmControls, bmControlsRuntime = *rest.unpack("ccccB24B24") self.new(bDescriptorType, bDescriptorSubType, bUnitID, bSourceID, iEncoding, bControlSize, bmControls, bmControlsRuntime) end