| Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > WriteA |
WriteA
Description:
This is a USBm.dll function that writes a byte value to port A. The possible values range from 0-255 (00h to FFh).
Command Syntax: (USBm.dll)
USBm_WriteA(device, data)
The USBm_WriteA function syntax has these parts:
| Part | Description |
| device | A zero-based index to address the appropriate USB device. |
| data | Byte to write to Port A. |
Remarks:
VB Declaration
| Public Declare Function USBm_WriteA _ Lib "USBm.dll" _ (ByVal device As Byte, _ ByVal data As Byte) _ As Integer |
VB Example
| USBm_WriteA 3, &H55 |
This code fragment writes the value of &H55 to port A of device 3.
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 |