8 loopback control apis, 1 m1x66_loopbackget, 2 m1x66_loopbackset – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 25: Loopback control apis, M1x66_loopbackget, M1x66_loopbackset

Advertising
background image

UG_1x66B_046

73M1866B/73M1966B FXOAPI User Guide

Rev. 2.1

25

2.8 Loopback Control APIs

2.8.1 M1x66_LoopbackGet

Description

This API reads the current status of the loopback. The active loopback mode will be returned to the
variable pointed by the passing parameter.

Prototype

M1x66_RET M1x66_LoopbackGet (M1x66_HANDLE chanHandle,
M1966_LOOPBACK_MODE *pLoopbackType)

Parameters

Data Type

Name

Description

M1x66_HANDLE

chanHandle

Channel handle from FXO open channel.

M1966_LOOPBACK_MODE

*pLoopbackType

Pointer to the loopback mode variable (output)


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successful.
M1x66_FAILED – Failure.

2.8.2 M1x66_LoopbackSet

Description

This API sets the transmit and receive data path into a loopback mode. The desired loopback mode will
be set on the transmit and receive data path.

Prototype

M1x66_RET M1x66_LoopbackSet (M1x66_HANDLE chanHandle,
M1966_LOOPBACK_MODE loopbackType)

Parameters

Data Type

Name

Description

M1x66_HANDLE

chanHandle

Channel handle from FXO open channel.

M1966_LOOPBACK_MODE

loopbackType

Loopback mode


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successful.
M1x66_FAILED – Failure.

Advertising