Additional Support for DM4C51 TDM Connection Control
Modifications and new functions are added to the host application library
for DM4C51 TDM connections.
The primary goal of these changes is to provide better control over the
relationship between TDM time slots and the DSP local time slots.
The previously existing functions,
dm4c51_tdm_src_add, dm4c51_tdm_dst_add,
dm4c51_tdm_src_del, and dm4c51_tdm_dst_del,
were modified to help keep track of the local slot allocation,
They now return the local slot number allocated or de-allocated.
The slots are numbered from 1 to 32.
A return value of 0 indicates an error.
A new group of functions was added to provide control of the TDM connections
from the DSP's perspective.
These functions allow TDM connections to specify the local time slots
to be allocated and de-allocated.
The dm4c51_tdm_src_add_lcl and dm4c51_tdm_dst_add_lcl functions
specify the local time slot number (1 to 32) to be allocated for the
source or destination connection to the specified TDM time slot and bus.
They return 1 when successful or <0> in case of an I/O error,
invalid argument, or if the specified local time slot is already in use.
int
dm4c51_tdm_src_add_lcl (pci, slot, bus, local)
int
dm4c51_tdm_dst_add_lcl (pci, slot, bus, local)
PCI_MOD *pci - pointer to an open DM4C51 DSP
u_int slot - TDM time slot (1 - 128)
u_int bus - TDM bus (0 - 7)
u_int local - local DSP time slot (1 - 32)
The dm4c51_tdm_src_del_lcl and dm4c51_tdm_dst_del_lcl functions
specify the local time slot number (1 to 32) to be de-allocated as a
source or destination connection.
They disconnect whatever TDM time slot and bus is connected for the
specified local time slot.
They return 1 when successful or <0> in case of an I/O error,
invalid argument, or if the specified local time slot is not currently in use.
int
dm4c51_tdm_src_del_lcl (pci, local)
int
dm4c51_tdm_dst_del_lcl (pci, local)
PCI_MOD *pci - pointer to an open DM4C51 DSP
u_int local - local DSP time slot (1 - 32)