| Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > StrobeRead2 |
StrobeRead2
VERSION 1.34+ of the firmware, VERSION 42+ of the DLL
Description:
StrobeRead with strobe pulse length.
Command Syntax: (USBm.dll)
USBm_StrobeRead2(device, data, port, sel, len)
The USBm_StrobeRead2 function syntax has these parts:
| Part | Description |
| device | A zero-based index to address the appropriate USB device. |
| data | The function causes this variable to be changed to the value of the port. |
| port | The port for the byte read. A value of 00h is port A, a value of 01h is port B. |
| sel | The strobe direction and the strobe line selection. |
| len | The strobe length. |
| del | The delay between multiple bytes. VERSION 1.46+ of the firmware, VERSION 56+ of the DLL |
Remarks:
Same as StrobeRead, but "len" is the strobe length from about 10 microseconds to about 200 microseconds. Tha value of "del" is the delay between bytes.
VB Declaration
| Public Declare Function USBm_StrobeRead2 _ Lib "USBm.dll" _ (ByVal device As Byte, _ ByRef data As Byte, _ ByVal port As Byte, _ ByVal sel As Byte, _ ByVal len As Byte) _ ByVal del As Byte) _ As Integer |
VB Example
| Dim data As Byte USBm_StrobeRead2 1, data, 0, &H0F, 20, 40 |
The "20" selects a longer strobe pulse, th 40 is a greater delay between bytes.
C Example
-TBD-
| Hardware: U401 USB Interface U421 USB Interface |
| Programming: USBm DLL Programming Download Files |
| Application Notes: U4x1 Application Notes Misc Applications and Information FAQ |