3 m1x66_hwregisterwrite, 4 m1x66_setdebugtrace, M1x66_hwregisterwrite – Maxim Integrated 73M1866B/73M1966B FXOAPI User Manual

Page 31: M1x66_setdebugtrace

Advertising
background image

UG_1x66B_046

73M1866B/73M1966B FXOAPI User Guide

Rev. 2.1

31

M1x66_FAILED – Failure.

2.11.3 M1x66_HWRegisterWrite

Description

Perform H/W register writing to the 73M1x66B device that carries the FXO channel. This API is not
recommended for use in normal operation but only for diagnostic or testing purpose.

The channel handle contains the corresponding SPI channel ID (cid) of the 73M1x66B device in the daisy
chain. This SPI cid is passed to the driver to set the value of the specified register.

Prototype

M1x66_RET M1x66_HWRegisterWrite (

M1x66_HANDLE channel,
char value );


Parameters

Data Type

Name

Description

M1x66_HANDLE

channel

Channel handle from FXO open channel.

M1x66_REG_TYPE Register

1x66 Register.

char

value

Data value to be written.


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successfully written the register.
M1x66_FAILED – Failure.

2.11.4 M1x66_SetDebugTrace

Description

The M1966 Reference Driver provides run-time debugging facility via tracing. The application program
can turn on various trace masks to display debug message for trouble shooting purposes. Due to the
potential amount of messages resulting from setting this trace mask at kernel level the use of this facility
is not recommended under normal operation.

Note: the trace mask occupies a unique bit field, therefore, multiple masks can be “or” together.

Prototype

M1x66_RET M1x66_SetDebugTrace (

M1x66_HANDLE deviceHandle,
M1x66_DEBUG_TRACE_MASK debugTraceMask );


Parameters

Data Type

Name

Description

M1x66_HANDLE

deviceHandle

Device handle from open device.

M1x66_DEBUG_TRACE_MASK debugTraceMask

Debug trace mask.


Return Values

Data Type

Description

M1x66_RET

M1x66_SUCCESS – Successfully set the trace mask.
M1x66_FAILED – Failure.

Advertising