5 managing the usb port – GBS Elektronik MCA-166 Communication DLL User Manual

Page 31

Advertising
background image

Description of the MCA Communication DLL

5 Managing the USB port

There are special functions for the USB port. The function COMM_INIT_ETHERNET returns information about the communication
port to the argument init.unInterfaceId. This parameter shows whether the communication port is an USB port and
whether the MCA batteries are rechargeable over the USB interface.

Name

GET_USB_CHARGER

Description

The function gets information as to whether USB charging is switched on or off.

Declaration

VB_BOOL CALLBACK GET_USB_CHARGER();

Return value

If nonzero, the USB charging is switched on.

Name

SET_USB_CHARGER

Description

The function switches USB charging on or off.

Declaration

void CALLBACK SET_USB_CHARGER(VB_BOOL bCharge);

bCharge

If nonzero, the USB charging will be switched on otherwise off.

Name

GET_USB_CHARGER_STATE

Description

The function gets the USB charging state. The MCA batteries are recharged over USB if USB charging is
switched on and no external charger is plugged.

Declaration

VB_BOOL CALLBACK GET_USB_CHARGER();

Return value

If nonzero, the MCA batteries are recharged over USB.

Name

GET_CURRENT_LATENCY_TIMER

Description

The function gets the latency time of the USB port.

Declaration

VB_BOOL CALLBACK GET_CURRENT_LATENCY_TIMER(LPDWORD lpdwTime);

lpdwTime

Pointer to the returned latency time.

Return value

If the function succeeds, the return value is nonzero.

Name

SET_CURRENT_LATENCY_TIMER

Description

The function sets the latency time of the USB port. Changing the latency time can speed up the
communication.

Declaration

VB_BOOL CALLBACK SET_CURRENT_LATENCY_TIMER(DWORD dwTime);

dwTime

Latency time

Return value

If the function succeeds, the return value is nonzero.

31

Advertising
This manual is related to the following products: