User Tools

Site Tools


uphp:functions:getusbstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:getusbstat [2017/04/10 18:04]
jeff created
uphp:functions:getusbstat [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">array <span style="font-size:125%;color:green">array
-<span style="color:black"> +<span style="color:black">getusbstat ( ) 
-</html> +</html></well>
-[[getusbstat]] ( ) +
-</well>+
  
 Return an array containing information about the state of the USB interface Return an array containing information about the state of the USB interface
Line 21: Line 18:
 None None
  
-====Return Value====+====Return Values====
  
 <html><b><span style="color:green">Array<span style="color:black"></b></html> containing the following keys and values: <html><b><span style="color:green">Array<span style="color:black"></b></html> containing the following keys and values:
Line 31: Line 28:
 |PID|<html><b><span style="color:green">int</b></html>|USB Device PID (16bit)| |PID|<html><b><span style="color:green">int</b></html>|USB Device PID (16bit)|
 |device|<html><b><span style="color:green">string</b></html>|Name of the device (if a driver is found)| |device|<html><b><span style="color:green">string</b></html>|Name of the device (if a driver is found)|
-|CDC((CDC stands for Communications Device Class, which is a composite USB device class that supports communication. The class may include more than one interface, such as a custom control interface, data interface, audio, or mass storage related interfaces. Currently the Wattmon only supports CDC devices for cellular data communication.))|<html><b><span style="color:green">int</b></html>|1 if the device supports CDC, otherwise 0|+|CDC((CDC stands for Communications Device Class, which is a composite USB device class that supports communication. The class may include more than one interface, such as a custom control interface, data interface, audio, or mass storage related interfaces. Currently the [[hardware:wattmons|Wattmon]] only supports CDC devices for cellular data communication.))|<html><b><span style="color:green">int</b></html>|1 if the device supports CDC, otherwise 0|
  
 ====Example==== ====Example====
Line 44: Line 41:
 ====See Also==== ====See Also====
  
-[[setusbpower()]] - Set the USB host power on or off (1 or 0)+[[setusbpower()]] - Enable or disable USB power
  
-[[net_enable3g()]] - Enable USB dongle network connectivity if available+[[net_enable3g()]] - Enable 3G support for the dongle
  
-[[net_disable3g()]] - Disable USB dongle network connectivity+[[net_disable3g()]] - Disable 3G support for the dongle
  
-[[getethstat()]] - Get Ethernet connection information+[[getethstat()]] - Get Ethernet connection status information
  
uphp/functions/getusbstat.1491847457.txt.gz · Last modified: 2021/09/13 05:56 (external edit)