2 m1x66_closedevice, M1x66_closedevice, M1x66 – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 13: Closedevice()

Advertising
background image

UG_1x66B_046

73M1866B/73M1966B FXOAPI User Guide

Rev. 2.1

13

Return Values

Data Type

Description

M1x66_HANDLE

Non-ZERO value if the device is opened successfully.
ZERO if the device fails to open.


2.3.2 M1x66_CloseDevice

Description

This API performs the low level closing of the device handle. It should be called before exiting application
program to release all resource associated with the open device. Closing this device will automatically
force the closing of any opened channel handles.

Prototype

M1x66_RET M1x66_CloseDevice (M1x66_HANDLE devHandle);

Parameters

Data Type

Name

Description

M1x66_HANDLE

devHandle

Device handle obtained from open device.


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successfully close the device handle.
M1x66_FAILED – Failed to close the handle.


Advertising