This manual introduces the functions and usage of Teridian Semiconductor's 73M1866B/73M1966B FXOAPI.
This document describes the application programming interface (API) of the Teridian M1x66 Reference Driver. The API is defined as a simplified functional interface that allows an application program written in C language to communicate with the driver without going through complicated and cumbersome Linux driver IOCTL. In addition, the API subsystem encapsulates the FXO asynchronous event notification and provides a simpler mechanism to the user application via a callback function.
The guide details the programming flow for accessing and managing the FXO device/channel. It covers initialization, opening and closing device and channel descriptors, PCM management, hook switching, pulse dialing, GPIO management, loopback control, and hardware register access. A sample application is provided to demonstrate usage.
Call M1x66_FxoApiInit to initialize internal data structures and prepare the API subsystem for subsequent calls.
The callback function serves as a hook to notify the application whenever an FXO event is generated through the device descriptor.
Use M1x66_PcmActivation to enable the PCM channel, which is disabled by default when there is no voice call.