Difference between revisions of "Unit RTL8188EU"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Reference === Description === ---- ''To be documented'' === Constants === ---- ''To be documented'' === Type definitions === ---- ''To...")
 
Line 5: Line 5:
 
----
 
----
  
''To be documented''
+
'''Realtek 8188EU USB Wireless Driver unit'''
 +
 
 +
The list of USB supported device Ids shown below for this driver is taken from the equivalent Linux driver but not all have been tested. In general if your device works with the 8188EU kernel module under Linux then it should also work with this driver.
  
 
=== Constants ===
 
=== Constants ===
 
----
 
----
  
''To be documented''
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''RTL8188EU specific constants''' <code> RTL8188EU_* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>RTL8188EU_DRIVER_NAME = 'Realtek 8188EU USB Wireless Driver';</code>
 +
| Name of RTL8188EU driver
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''RTL8188EU device Id count''' <code> RTL8188EU_DEVICE_ID_* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>RTL8188EU_DEVICE_ID_COUNT = 8;</code>
 +
| Number of supported Device Ids
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>RTL8188EU_DEVICE_ID:array[0..RTL8188EU_DEVICE_ID_COUNT - 1] of TUSBDeviceId = (</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|''Realtek demoboard''
 +
|-
 +
| <code>(idVendor:USB_VENDORID_REALTEK;idProduct:$8179),</code>
 +
| 8188EUS
 +
|-
 +
| <code>(idVendor:USB_VENDORID_REALTEK;idProduct:$0179),</code>
 +
| 8188ETV
 +
|-
 +
|colspan="2"|''Customer Id''
 +
|-
 +
|colspan="2"|8188EUS
 +
|-
 +
| <code>(idVendor:$056e;idProduct:$4008),</code>
 +
| Elecom WDC-150SU2M
 +
|-
 +
| <code>(idVendor:$07b8;idProduct:$8179),</code>
 +
| Abocom - Abocom
 +
|-
 +
| <code>(idVendor:$2001;idProduct:$330F),</code>
 +
| DLink DWA-125 REV D1
 +
|-
 +
| <code>(idVendor:$2001;idProduct:$3310),</code>
 +
| Dlink DWA-123 REV D1
 +
|-
 +
| <code>(idVendor:$2001;idProduct:$3311),</code>
 +
| DLink GO-USB-N150 REV B1
 +
|-
 +
| <code>(idVendor:$0df6;idProduct:$0076));</code>
 +
| Sitecom N150 v2
 +
|-
 +
|}
 +
</div></div>
 +
<br />
  
 
=== Type definitions ===
 
=== Type definitions ===
 
----
 
----
  
''To be documented''
+
''None defined''
  
 
=== Public variables ===
 
=== Public variables ===
 
----
 
----
  
''To be documented''
+
''None defined''
  
 
=== Function declarations ===
 
=== Function declarations ===
 
----
 
----
  
''To be documented''
 
  
 +
'''Initialization functions'''
 +
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">procedure RTL8188EUInit;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Note'''
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
 +
'''RTL8188EU network functions'''
 +
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDeviceOpen(Network:PNetworkDevice):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Implementation of NetworkDeviceOpen for the RTL8188EU device</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Note'''
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDeviceClose(Network:PNetworkDevice):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Implementation of NetworkDeviceClose for the RTL8188EU device</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Note'''
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDeviceRead(Network:PNetworkDevice; Buffer:Pointer; Size:LongWord; var Length:LongWord):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Implementation of NetworkDeviceRead for the RTL8188EU device</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Note'''
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDeviceWrite(Network:PNetworkDevice; Buffer:Pointer; Size:LongWord; var Length:LongWord):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Implementation of NetworkDeviceWrite for the RTL8188EU device</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Note'''
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDeviceControl(Network:PNetworkDevice; Request:Integer; Argument1:PtrUInt; var Argument2:PtrUInt):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Implementation of NetworkDeviceControl for the RTL8188EU device</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Note'''
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
 +
'''RTL8188EU USB functions'''
 +
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDriverBind(Device:PUSBDevice; Interrface:PUSBInterface):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Bind the RTL8188EU driver to a USB device if it is suitable</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Device'''
 +
| The USB device to attempt to bind to
 +
|-
 +
! '''Interrface'''
 +
| The USB interface to attempt to bind to (or nil for whole device)
 +
|-
 +
! '''Return'''
 +
| USB_STATUS_SUCCESS if completed, USB_STATUS_DEVICE_UNSUPPORTED if unsupported or another error code on failure
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUDriverUnbind(Device:PUSBDevice; Interrface:PUSBInterface):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Unbind the RTL8188EU driver from a USB device</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Device'''
 +
| The USB device to unbind from
 +
|-
 +
! '''Interrface'''
 +
| The USB interface to unbind from (or nil for whole device)
 +
|-
 +
! '''Return'''
 +
| USB_STATUS_SUCCESS if completed or another error code on failure
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
 +
'''RTL8188EU helper functions'''
 +
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function RTL8188EUCheckDevice(Device:PUSBDevice):LongWord;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Check the Vendor and Device Id against the supported devices</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! '''Device'''
 +
| USB device to check
 +
|-
 +
! '''Return'''
 +
| USB_STATUS_SUCCESS if completed or another error code on failure
 +
|-
 +
|}
 +
</div></div>
 +
<br />
  
 
Return to [[Unit_Reference|Unit Reference]]
 
Return to [[Unit_Reference|Unit Reference]]

Revision as of 05:44, 20 June 2017

Return to Unit Reference


Description


Realtek 8188EU USB Wireless Driver unit

The list of USB supported device Ids shown below for this driver is taken from the equivalent Linux driver but not all have been tested. In general if your device works with the 8188EU kernel module under Linux then it should also work with this driver.

Constants



RTL8188EU specific constants RTL8188EU_*
RTL8188EU_DRIVER_NAME = 'Realtek 8188EU USB Wireless Driver'; Name of RTL8188EU driver


RTL8188EU device Id count RTL8188EU_DEVICE_ID_*
RTL8188EU_DEVICE_ID_COUNT = 8; Number of supported Device Ids
 
RTL8188EU_DEVICE_ID:array[0..RTL8188EU_DEVICE_ID_COUNT - 1] of TUSBDeviceId = (  
Realtek demoboard
(idVendor:USB_VENDORID_REALTEK;idProduct:$8179), 8188EUS
(idVendor:USB_VENDORID_REALTEK;idProduct:$0179), 8188ETV
Customer Id
8188EUS
(idVendor:$056e;idProduct:$4008), Elecom WDC-150SU2M
(idVendor:$07b8;idProduct:$8179), Abocom - Abocom
(idVendor:$2001;idProduct:$330F), DLink DWA-125 REV D1
(idVendor:$2001;idProduct:$3310), Dlink DWA-123 REV D1
(idVendor:$2001;idProduct:$3311), DLink GO-USB-N150 REV B1
(idVendor:$0df6;idProduct:$0076)); Sitecom N150 v2


Type definitions


None defined

Public variables


None defined

Function declarations



Initialization functions

procedure RTL8188EUInit;
Description: To be documented
Note None documented


RTL8188EU network functions

function RTL8188EUDeviceOpen(Network:PNetworkDevice):LongWord;
Description: Implementation of NetworkDeviceOpen for the RTL8188EU device
Note None documented


function RTL8188EUDeviceClose(Network:PNetworkDevice):LongWord;
Description: Implementation of NetworkDeviceClose for the RTL8188EU device
Note None documented


function RTL8188EUDeviceRead(Network:PNetworkDevice; Buffer:Pointer; Size:LongWord; var Length:LongWord):LongWord;
Description: Implementation of NetworkDeviceRead for the RTL8188EU device
Note None documented


function RTL8188EUDeviceWrite(Network:PNetworkDevice; Buffer:Pointer; Size:LongWord; var Length:LongWord):LongWord;
Description: Implementation of NetworkDeviceWrite for the RTL8188EU device
Note None documented


function RTL8188EUDeviceControl(Network:PNetworkDevice; Request:Integer; Argument1:PtrUInt; var Argument2:PtrUInt):LongWord;
Description: Implementation of NetworkDeviceControl for the RTL8188EU device
Note None documented


RTL8188EU USB functions

function RTL8188EUDriverBind(Device:PUSBDevice; Interrface:PUSBInterface):LongWord;
Description: Bind the RTL8188EU driver to a USB device if it is suitable
Device The USB device to attempt to bind to
Interrface The USB interface to attempt to bind to (or nil for whole device)
Return USB_STATUS_SUCCESS if completed, USB_STATUS_DEVICE_UNSUPPORTED if unsupported or another error code on failure


function RTL8188EUDriverUnbind(Device:PUSBDevice; Interrface:PUSBInterface):LongWord;
Description: Unbind the RTL8188EU driver from a USB device
Device The USB device to unbind from
Interrface The USB interface to unbind from (or nil for whole device)
Return USB_STATUS_SUCCESS if completed or another error code on failure


RTL8188EU helper functions

function RTL8188EUCheckDevice(Device:PUSBDevice):LongWord;
Description: Check the Vendor and Device Id against the supported devices
Device USB device to check
Return USB_STATUS_SUCCESS if completed or another error code on failure


Return to Unit Reference