12 m1x22_hwregisterwrite, 13 m1x22_setdebugtrace, M1x22_hwregisterwrite – Maxim Integrated 73M1822/73M1922 Modem API User Manual
Page 14: M1x22_setdebugtrace

73M1822/73M1922 Modem API User Guide
UG_1x22_055
14
Rev. 1.0
2.12 M1X22_HWRegisterWrite
Description
Perform H/W register writing to the 73M1x22 device that carries the channel. This API is not
recommended for use in normal operation but only for diagnostic or testing purpose.
Prototype
M1X22_RET M1X22_HWRegisterWrite (
M1X22_REG_TYPE register,
char value );
Parameters
Data Type
Name
Description
channel
Channel handle from open channel.
M1X22_REG_TYPE register
1x22 Register.
char
value
Data value to be written.
Return Values
Data Type
Description
M1X22_SUCCESS – Successfully written the register.
M1X22_FAILED – Failure.
2.13 M1X22_SetDebugTrace
Description
The M1X22 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
M1X22_RET M1X22_SetDebugTrace (
M1X22_HANDLE deviceHandle,
M1X22_DEBUG_TRACE_MASK debugTraceMask );
Parameters
Data Type
Name
Description
deviceHandle
Device handle from open device.
M1X22_DEBUG_TRACE_MASK debugTraceMask
Debug trace mask.
Return Values
Data Type
Description
M1X22_SUCCESS – Successfully set the trace mask.
M1X22_FAILED – Failure.