Attribute VB_Name = "modAPI"
Option Explicit

' Declare statements for all the functions in the CP210x DLL
' NOTE: These statements assume that the DLL file is located in
'       the same directory as this project.
'       If you change the location of the DLL, be sure to change the location
'       in the declare statements also.
Public Declare Function CP210x_GetNumDevices Lib "CP210xManufacturing.dll" (ByRef lpwdNumDevices As Long) As Integer
Public Declare Function CP210x_GetProductString Lib "CP210xManufacturing.dll" (ByVal dwDeviceNum As Long, ByRef lpvDeviceString As Byte, ByVal dwFlags As Long) As Integer
Public Declare Function CP210x_Open Lib "CP210xManufacturing.dll" (ByVal dwDevice As Long, ByRef cyHandle As Long) As Integer
Public Declare Function CP210x_Close Lib "CP210xManufacturing.dll" (ByVal cyHandle As Long) As Integer
Public Declare Function CP210x_Reset Lib "CP210xManufacturing.dll" (ByVal cyHandle As Long) As Integer
