6 m1x22_closechannel, 7 m1x22_initchannel, M1x22_closechannel – Maxim Integrated 73M1822/73M1922 Modem API User Manual

Page 11: M1x22_initchannel, D m1x22_closechannel()

Advertising
background image

UG_1x22_055

73M1822/73M1922 Modem API User Guide

Rev. 1.0

11

2.6 M1X22_CloseChannel

Description

This API performs the low level closing of the channel handle. It should be called before exiting
application program, or when the channel is no longer needed, to release all resources associated with
the open channel.

Prototype

M1X22_RET M1X22_CloseChannel (M1X22_HANDLE chanHandle);

Parameters

Data Type

Name

Description

M1X22_HANDLE

chanHandle

Channel handle obtained from open channel.


Return Values

Data Type

Description

M1X22_RET

M1X22_SUCCESS – Successfully close the channel.
M1X22_FAILED – Failed to close the channel.

2.7 M1X22_InitChannel

Description

This API performs the channel initialization and prepares the channel to operate in conformance with
specific region where the line is being deployed. Teridian device supports global-compliance parameter
in countries listed in M1X22_COUNTRY_CODE.

Prototype

M1X22_RET M1X22_InitChannel (

M1X22_HANDLE chanHandle,
M1X22_COUNTRY_CODE cntryCode );

Parameters

Data Type

Name

Description

M1X22_HANDLE

chanHandle

Channel handle obtained from open channel.

M1X22_COUNTRY_CODE cntryCode

Country code as listed in M1X22_COUNTRY_CODE.


Return Values

Data Type

Description

M1X22_RET

M1X22_SUCCESS – Successfully initialize the channel.
M1X22_FAILED – Failed to initialize the channel.


Advertising