| Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > StrobeReads |
StrobeReads
VERSION 1.34+ of the firmware, VERSION 42+ of the DLL
Description:
Strobe read of a 1 to 6 byte value from a port. This command uses port A or B for the byte read, as well as a polarity (negative or positive) and a line (A.0 - B.7) to toggle based on the previously executed StrobeWrite or StrobeRead call.
Command Syntax: (USBm.dll)
USBm_StrobeReads(device, count, data)
The USBm_StrobeReads function syntax has these parts:
| Part | Description |
| device | A zero-based index to address the appropriate USB device. |
| count | The number of bytes (1-6) to receive. |
| data | Received data. |
Remarks:
Control this command's port for the byte, polarity and strobe line by using the StrobeWrite or StrobeRead call.
VB Declaration
| Public Declare Function USBm_StrobeReads _ Lib "USBm.dll" _ (ByVal device As Byte, _ ByRef count As Byte, _ ByRef data As Byte) _ As Integer |
VB Example
| Dim dataarray(6) As Byte dataarray(0) = &H55 USBm_SPIMaster 6, 4, dataarray(0) |
Control this command's port for the byte, polarity and strobe line by using the StrobeWrite or StrobeRead call. This command will then use the same selected port, polarity, and strobe line to read four bytes from device number six and store in dataarray.
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 |