PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  7Tc@sdZdZdddddddd d d d d dddgZddljZddljZdZdZdZ dZ dZ dZ dZ ddZddZddZddZddZdZdZd Zd!ZdS("susb.control - USB standard control requests This module exports: get_status - get recipeint status clear_feature - clear a recipient feature set_feature - set a recipient feature get_descriptor - get a device descriptor set_descriptor - set a device descriptor get_configuration - get a device configuration set_configuration - set a device configuration get_interface - get a device interface set_interface - set a device interface sWander Lairson Costat get_statust clear_featuret set_featuretget_descriptortset_descriptortget_configurationtset_configurationt get_interfacet set_interfacet ENDPOINT_HALTtFUNCTION_SUSPENDtDEVICE_REMOTE_WAKEUPt U1_ENABLEt U2_ENABLEt LTM_ENABLEiNcCs|dkrtj}d}nZt|tjrEtj}|j}n3t|tjrltj }|j }n t dtj |tj |}||fS(NisInvalid recipient.(tNonetutiltCTRL_RECIPIENT_DEVICEt isinstancetcoret InterfacetCTRL_RECIPIENT_INTERFACEtbInterfaceNumbertEndpointtCTRL_RECIPIENT_ENDPOINTtbEndpointAddresst ValueErrortbuild_request_typetCTRL_TYPE_STANDARD(t recipientt directiontrtwIndext bmRequestType((s//usr/lib/python2.7/site-packages/usb/control.pyt_parse_recipientAs         iii0i1i2c CsPt|tj\}}|jd|ddd|dd}|d|dd>BS( scReturn the status for the specified recipient. dev is the Device object to which the request will be sent to. The recipient can be None (on which the status will be queried on the device), an Interface or Endpoint descriptors. The status value is returned as an integer with the lower word being the two bytes status value. R!tbRequestiR tdata_or_wLengthiii(R"RtCTRL_INt ctrl_transfer(tdevRR!R tret((s//usr/lib/python2.7/site-packages/usb/control.pyR\s  c Cs>t|tj\}}|jd|ddd|d|dS(sClear/disable a specific feature. dev is the Device object to which the request will be sent to. feature is the feature you want to disable. The recipient can be None (on which the status will be queried on the device), an Interface or Endpoint descriptors. R!R#iR twValueN(R"RtCTRL_OUTR&(R'tfeatureRR!R ((s//usr/lib/python2.7/site-packages/usb/control.pyRos c Cs>t|tj\}}|jd|ddd|d|dS(sSet/enable a specific feature. dev is the Device object to which the request will be sent to. feature is the feature you want to enable. The recipient can be None (on which the status will be queried on the device), an Interface or Endpoint descriptors. R!R#iR R)N(R"RR*R&(R'R+RR!R ((s//usr/lib/python2.7/site-packages/usb/control.pyRs c CsT||d>B}tjtjtjtj}|jd|ddd|d|d|S(sgReturn the specified descriptor. dev is the Device object to which the request will be sent to. desc_size is the descriptor size. desc_type and desc_index are the descriptor type and index, respectively. wIndex index is used for string descriptors and represents the Language ID. For other types of descriptors, it is zero. iR!R#iR)R R$(RRR%RRR&(R't desc_sizet desc_typet desc_indexR R)R!((s//usr/lib/python2.7/site-packages/usb/control.pyRs   c CsX||d>B}tjtjtjtj}|jd|ddd|d|d|dS( sUpdate an existing descriptor or add a new one. dev is the Device object to which the request will be sent to. The desc parameter is the descriptor to be sent to the device. desc_type and desc_index are the descriptor type and index, respectively. wIndex index is used for string descriptors and represents the Language ID. For other types of descriptors, it is zero. iR!R#iR)R R$N(RRR*RRR&(R'tdescR-R.R R)R!((s//usr/lib/python2.7/site-packages/usb/control.pyRs   cCs;tjtjtjtj}|j|dddddS(s,Get the current active configuration of the device. dev is the Device object to which the request will be sent to. This function differs from the Device.get_active_configuration method because the later may use cached data, while this function always does a device request. R#iR$ii(RRR%RRR&(R'R!((s//usr/lib/python2.7/site-packages/usb/control.pyRs  cCs|j|dS(srSet the current device configuration. dev is the Device object to which the request will be sent to. N(R(R'tbConfigurationNumber((s//usr/lib/python2.7/site-packages/usb/control.pyRsc CsDtjtjtjtj}|jd|ddd|dddS(sGet the current alternate setting of the interface. dev is the Device object to which the request will be sent to. R!R#i R R$ii(RRR%RRR&(R'RR!((s//usr/lib/python2.7/site-packages/usb/control.pyRs  cCs|j||dS(sxSet the alternate setting of the interface. dev is the Device object to which the request will be sent to. N(tset_interface_altsetting(R'RtbAlternateSetting((s//usr/lib/python2.7/site-packages/usb/control.pyRs(t__doc__t __author__t__all__tusb.utilRtusb.coreRR"R R R R R RRRRRRRRRRR(((s//usr/lib/python2.7/site-packages/usb/control.pyt*sD