Note |
---|
Notice: Pre-Release Documentation |
Serial port I/O is accomplished by two modules: SnapdragonTDMSource and SnapdragonTDMSink. These modules appear in the module browser as shown below.
...
You can add multiple TDM Serial Port modules to your signal flow and interface to multiple hardware devices. Release 4.0 has the following restrictions:
All TDM ports must be on the ADSP.
All TDM ports must be at 48 kHz.
The block size is variable but all TDM ports must be at the same block size.
All TDM port interrupts start at the same time in the code, but there could be a small latency shift between them.
All TDM ports must be in clockDivider 1 and operate at the Basic Block Size.
All TDM port clocks must be derived from the same master clock. That is, they must be at the same sample rate and synchronous.
Module Arguments [R4.0]
In this release, there are separate modules for interfacing to input and output serial ports. The modules are configured via their module arguments. The Source and Sink modules have the same arguments as shown below. The settings map directly to the standard Qualcomm registers exposed in Audio Reach.
...
The last two items (lpaif_idx and lpaif_type) specify the serial port to use. You can only use a serial port once in your design, and it can be used for both input and output.