API Reference Guide for OTX Generic Hardware Driver
Odin TeleSystems Inc.
Doc. No. 1211-1-SDA-1006-1
Doc. Rev. 1.0-P117
Doc. Date 08/03/01
Copyright \'a9 1999-2001 Odin TeleSystems Inc., All Rights Reserved
Function Reference
Driver and Generic Functions
OTX Driver Level Functions - OtxDrvXXX()
OTX Generic Functions/Macros
Physical Device Functions
OTX Board Level Functions - OtxBrdXXX()
OTX T1/E1 Line Interface Device Functions - OtxT1XXX(), OtxE1XXX()
OTX POTS Line Interface Device Functions - OtxPotsXXX()
OTX ISDN BRI Line Interface Device Functions - OtxBriXXX()
OTX DSP Device Management Functions - OtxDspXXX()
Logical Device Functions
OTX Logical Hdlc Sender/Receiver Functions - OtxHdlcXXX()
OTX Tone Generator/Detector Functions - OtxToneXXX()
OTX Serial Data Manipulation Function Prototypes - OtxDataXXX()
Constant and Type Reference
Driver Level
OTX Driver Level Types
OTX Driver Level Result Codes
OTX Driver Level Constants
Physical Devices
OTX Board Level Constants and Types
OTX DSP Device Management Constants, and Types
OTX T1/E1 Line Interface Constants and Types
OTX POTS Line Interface Device Constants and Types
OTX ISDN BRI Line Interface Device Constants and Types
Logical Devices
OTX Hdlc Device Constants, and Types
OTX Tone Logical Data Filter Device Constants, and Types
Header File Reference
OtxBrd.h
OtxBrdD.h
OtxBri.h
OtxBriD.h
OtxData.h
OtxDrv.h
OtxDsp.h
OtxDspD.h
OtxErr.h
OtxHdlc.h
OtxHdlcD.h
OtxPots.h
OtxPotsD.h
OtxRaw.h
OtxRawD.h
OtxT1E1.h
OtxT1E1D.h
OtxTone.h
OtxToneD.h
OtxType.h
OtxGeneric.h
OTX API Alphabetical References
Functions
Constants
Enum Types and Constants
Struct Types
Other Types
A platform
generic implementation of some console functions.
OsaConsoleXXX() Function Reference
A platform
generic implementation of some of the stdio.h, string.h, and ctype.h functions.
OsaStdXXX() Function Reference
A platform
generic implementation of some thread and mutex functions.
OsaThreadXXX()/OsaMutexXXX() Function Reference
macros for the platform
generic Osa implementation (used by the demo programs).
To Do
Macro OSA_ENUM_CAST does not need to be part of the API
All enums must be transferred as OTX_INT32 values in the IO control
structs. This macro is used to cast them back to enum types on the
receiving side. The nacro is also used in some other contexts
OtxBrdXXX Macro, Constant, and Type Reference
Functions available for Board Level Operations
OtxBrdXXX() Function Reference
OTX Driver Supported Device Types
OTX Driver Supported Device Types
Driver level functions
OtxDrvXXX() Function Reference
Enumerated Types
Struct Types
Other Types
OtxDrvXXX Macro, Constant, and Type Reference
The user functions available for
the Management of DSP Devices
OtxDspXXX() Function Reference
OtxDspXXX Macro, Constant, and Type Reference
OtxHdlcXXX Macro, Constant, and Type Reference
OtxHdlcXXX Macro, Constant, and Type Reference
OtxBriXXX Macro, Constant, and Type Reference
The user functions available for
the Analog Phone Line Interface Decivces following;
OtxBriXXX() Function Reference
The API functions for the JTAG TBC device
OtxJtagXXX() Function Reference
The API functions for the Logical High-level Data Link Controller (HDLC) device
OtxHdlcXXX() Function Reference
The API functions for the Logical High-level Data Link Controller (HDLC) device
OtxRawDataXXX() Function Reference
OtxPotsXXX Macro, Constant, and Type Reference
The user functions available for
the Analog Phone Line Interface Decivces following;
OtxPotsXXX() Function Reference
OtxRawDataXXX Macro, Constant, and Type Reference
OtxDataXXX Macro, Constant, and Type Reference
Functions available for Data Manipulations
OtxDataXXX() Function Reference
OtxT1E1XXX, OtxT1XXX, and OtxE1XXX Macro, Constant, and Type Reference
The user functions available for the T1/E1 Line Interface Transceiver Devices
OtxT1E1XXX(), OtxT1XXX(), and OtxE1XXX() Function Reference
Functions available for Tone Generators / Detectors
OtxToneXXX() Function Reference
OtxToneXXX Macro, Constant, and Type Reference
OsaCon
Filename: OsaCon.h
Description
This file contains prototypes for platform the
generic implementation of some console functions.
OsaDef
Filename: OsaDef.h
Description
This file contains macros for the platform
generic Osa implementation (used by the demo programs).
OsaStd
Filename: OsaStd.h
Description
This file contains prototypes for platform the
generic implementation of some of the stdio.h, string.h, and ctype.h functions.
OsaThrd
Filename: OsaThrd.h
Description
This file contains prototypes for platform the
generic implementation of some thread and mutex functions.
OtxBrd
Filename: OtxBrd.h
Description
OTX Board Level Function Prototypes
OtxBrdD
Filename: OtxBrdD.h
Description
Constants, Macros, and Types for the Board Level Functions
OtxBri
Filename: OtxBri.h
Description
This file contains prototypes for the ISDN BRI Line Interface Functions
OtxBriD
Filename: OtxBriD.h
Description
Constants, Macros, and Types for the ISDN BRI Line Interface Functions
OtxData
Filename: OtxData.h
Description
OTX Serial Data Manipulation Function Prototypes
OtxDataD
Filename: OtxDataD.h
Description
Constants, Macros, and Types for the Data Manipulation Functions
OtxDef
Filename: OtxDef.h
Description
Types used in OTX driver API
OtxDev
Filename: OtxDev.h
Description
Devices Types suppored by OTX driver API
OtxDrv
Filename: OtxDrv.h
Description
This file contains prototypes for the Driver Functions
OtxDrvD
Filename: OtxDrvD.h
Description
Constants, Macros, and Types for the Driver Functions
OtxDsp
Filename: OtxDsp.h
Description
This file contains prototypes for the DSP Management Functions
OtxDspD
Filename: OtxDspD.h
Description
Constants, Macros, and Types for the DSP Device Management Functions
OtxErr
Filename: OtxErr.h
Description
Odin Telecom FrameworX (OTX) standard result structure.
OTX error definitions and values
The return value of OTX APIs and methods is an OTX_RESULT.
This is not a handle to anything, but is merely a 32-bit value
with several fields encoded in the value. The parts of an
OTX_RESULT are shown below.
The structure of OTX_RESULT is based on the Win32 HRESULT
layout, but the meanings of values used in the bit fields
are completely different.
Example
OTX_RESULTs are 32 bit values layed out as follows:
|3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
|1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|-+-+-+-+-+---------------------+-------------------------------+
|S|R|R|R|R| Facility | Code |
|-+-+-+-+-+---------------------+-------------------------------+
where
S - Severity - indicates success/fail
0 - Success
1 - Fail
R - reserved portion of the facility code
Facility - is the OTX facility code
Code - is the OTX facility's status code
OtxGeneric
Filename: OtxGeneric.h
Description
Generic functions and macros provided in the OTX driver API
OtxHdlc
Filename: OtxHdlc.h
Description
Prototypes for the Logical HDLC Device (Sender/Receiver) Functions
OtxHdlcD
Filename: OtxHdlcD.h
Description
Constants, Macros, and Types for the HDLC Functions
OtxHdlcD
Filename: OtxJtagD.h
Description
Constants, Macros, and Types for the HDLC Functions
OtxJtag
Filename: OtxJtag.h
Description
Prototypes for the JTAG Functions
OtxPots
Filename: OtxPots.h
Description
This file contains prototypes for the Analog Phone Functions
OtxPotsD
Filename: OtxPotsD.h
Description
Constants, Macros, and Types for the Analog Phone Functions
OtxRawD
Filename: OtxRawD.h
Description
Constants, Macros, and Types for the Raw Data Functions
OtxRawData
Filename: OtxRaw.h
Description
Prototypes for the Logical HDLC Device (Sender/Receiver) Functions
OtxT1E1
Filename: OtxT1E1.h
Description
This file contains function prototypes for the T1/E1 Line Interface devices
OtxT1E1D
Filename: OtxT1E1D.h
Description
Constants, Macros, and Types for the T1/E1 Line Interface Device Functions
OtxTone
Filename: OtxTone.h
Description
OTX Tone Generator/Detector Logical Device Function Prototypes
OtxToneD
Filename: OtxToneD.h
Description
Constants, Macros, and Types for the HDLC Functions
OtxType
Filename: OtxType.h
Description
Types used in OTX driver API
OsaConsoleExit
void OsaConsoleExit(void)
Cleanup after the platform generic Osa Console functions.
Defined in: OsaCon.h
Comments
This function should be called before exiting the application if
OsaConsoleInit was called.
Osa functions are used by the demo programs.
See Also
OsaConsoleExit
OsaConsoleGetStr
char * OsaConsoleGetStr(char * buffer)
Platform generic Osa implementation of the standard gets() function.
Defined in: OsaCon.h
Parameters
- buffer
- Placeholder for input string. See gets() in stdio.h
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaConsoleInit
void OsaConsoleInit(void)
Initialize the platform generic Osa Console functions.
Defined in: OsaCon.h
Comments
This function must be called before any other Osa function can be called.
Osa functions are used by the demo programs.
See Also
OsaConsoleExit
OsaConsolePrintF
int OsaConsolePrintF(char * formatStr, va_list argList)
Platform generic Osa implementation of the standard printf() function.
Defined in: OsaCon.h
Parameters
- formatStr
- Format string. See printf() in stdio.h
- argList
- Argument list. See printf() in stdio.h
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaMutexDestroy
void OsaMutexDestroy(OsaMutexS * pMutex)
Deletes a Mutex created by OsaMutexInit
Defined in: OsaThrd.h
Parameters
- pMutex
- Pointer to the mutex created by a call to OsaMutexInit
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaMutexInit
OsaMutexInit
void OsaMutexInit(OsaMutexS * pMutex)
Initalize a Mutex that can be used to create a critical section.
Defined in: OsaThrd.h
Parameters
- pMutex
- Pointer to the mutex created by this function call
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaMutexLock
OsaMutexUnlock
OsaMutexLock
void OsaMutexLock(OsaMutexS * pMutex)
Starts a critical section.
Defined in: OsaThrd.h
Parameters
- pMutex
- Pointer to the mutex created by a call to OsaMutexInit
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaMutexInit
OsaMutexUnlock
OsaMutexUnlock
void OsaMutexUnlock(OsaMutexS * pMutex)
Ends a critical section
Defined in: OsaThrd.h
Parameters
- pMutex
- Pointer to the mutex created by a call to OsaMutexInit
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaMutexLock
OsaStdStrUpr
void OsaStdStrUpr(char * s)
Platform generic Osa implementation of the standard strupr() function.
Defined in: OsaStd.h
Parameters
- s
- String to be converted to upper case. See strupr() in string.h
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaStdToUpr
int OsaStdToUpr(int c)
Platform generic Osa implementation of the standard toupper() function.
Defined in: OsaStd.h
Parameters
- c
- char to be converted to upper case. See toupper() in file ctype.h
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaThreadSleep
void OsaThreadSleep(unsigned long nMilliSecs)
Platform generic Osa implementation of the Win32 Sleep() function.
Defined in: OsaThrd.h
Parameters
- nMilliSecs
- Sleep time in milliseconds
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaThreadStart
void OsaThreadStart(OsaThreadFnP pfnThreadFunc)
Platform generic Osa implementation of the Win32 CreateThread() function.
Defined in: OsaThrd.h
Parameters
- pfnThreadFunc
- Thread function to be started
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OsaThreadStartEx
void OsaThreadStartEx(OsaThreadFnP pfnThreadFunc, void * lpParameter)
Platform generic Osa implementation of the Win32 CreateThread() function.
Defined in: OsaThrd.h
Parameters
- pfnThreadFunc
- Thread function to be started
- lpParameter
- Parameter to be passed to the thread
Comments
Osa functions are used by the demo programs.
See Also
OsaConsoleInit
OTX_CALL_HANDLE
int OTX_CALL_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a Handle to a Call
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_GET_HANDLE_VAL
OTX_HANDLE OTX_GET_HANDLE_VAL(OTX_HANDLE hDevice)
Retrieve the value of a Handle of type OTX_HANDLE
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_LOGICAL_DEVICE_HANDLE
int OTX_LOGICAL_DEVICE_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a Handle to a Logical Device
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_PHYSICAL_DEVICE_HANDLE
int OTX_PHYSICAL_DEVICE_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a Handle to a Physical Device
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_PIPE_HANDLE
int OTX_PIPE_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a Handle to a Pipe
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_QUEUE_HANDLE
int OTX_QUEUE_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a Handle to a Queue
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_SERVICE_HANDLE
int OTX_SERVICE_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a Handle to a Service
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OTX_STRUCT_ADD_BYTE_OFFSET
StructType * OTX_STRUCT_ADD_BYTE_OFFSET(void)
Macro that takes care of type casting when adding a byte offset to a struct pointer
to find a second struct at another location
e.g.:
OtxHdlcFrameInfoS p1 = buffer;
OtxHdlcFrameInfoS p2 = OTX_STRUCT_ADD_BYTE_OFFSET(OtxHdlcFrameInfoS, p1, p1->nOffsetNext);
*/ ((StructType *) (((OTX_UINT8 *) pBase) + nByteOffset))
Defined in: OtxGeneric.h
OTX_VALID_HANDLE
int OTX_VALID_HANDLE(OTX_HANDLE hDevice)
Check if a Handle of type OTX_HANDLE is a valid Handle
Defined in: OtxGeneric.h
Parameters
- hDevice
- A handle to any type device
OtxBrdCodecSetLaw
OTX_RESULT OtxBrdCodecSetLaw(IN OTX_HANDLE hCodecDevice, IN OtxDataFormatE eLaw)
Set the PCM compression mode for the Codec
Defined in: OtxBrd.h
Parameters
- hCodecDevice
- Handle to Codec device
- eLaw
- U-law or A-law
See Also
OtxDataFormatE
OtxBrdSetClocks
OTX_RESULT OtxBrdSetClocks(IN OTX_HANDLE hBrdDevice, IN OtxBrdClockModeE clkMode, IN OtxBrdClockSourceE clkSource)
Set the clock mode and the clock source for the OTX Board
Defined in: OtxBrd.h
Parameters
- hBrdDevice
- Handle to Board device
- clkMode
- TSS Clock Mode (Master/Slave)
- clkSource
- Clock which the TSS uses to clock the highways
Comments
All the highways on the OTX NIC Adapter are clocked with the same 8 kHz
master framing clock. The source of the frame clock is set with this
function.
See Also
OtxBrdClockModeE
OtxBrdClockSourceE
OtxBrdTssConstByte
OTX_RESULT OtxBrdTssConstByte(void)
Set a timeslot to a constant value on a highway
Defined in: OtxBrd.h
OtxBriActivateLink
OTX_RESULT OtxBriActivateLink(IN OTX_HANDLE hBriDev, IN OTX_TIME nWaitMaxMs)
Issues a Layer 1 Activate Request.
Defined in: OtxBri.h
Parameters
- hBriDev
- Handle to the BRI Transceiver Device
- nWaitMaxMs
- Time in milliseconds to wait for the layer 1 to become active
OtxBriConfigureMonitor
OTX_RESULT OtxBriConfigureMonitor(IN OTX_HANDLE hBriTeDev, IN OTX_HANDLE hBriNtDev)
Sets up a pair of Line Interfaces to operate in monitor mode. The
first Li will listen as a TE. The second Li will listen as an NT.
Defined in: OtxBri.h
Parameters
- hBriTeDev
- Handle to the the Li which will listen as a TE
- hBriNtDev
- Handle to the the Li which will listen as a NT
OtxBriDeactivateLink
OTX_RESULT OtxBriDeactivateLink(IN OTX_HANDLE hBriDev, IN OTX_TIME nWaitMaxMs)
Issues a Layer 1 Deactivate Request.
Defined in: OtxBri.h
Parameters
- hBriDev
- Handle to the BRI Transceiver Device
- nWaitMaxMs
- Time in milliseconds to wait for the layer 1 to become active
Comments
Only meaninful if the Li is configured in LT_S (NT) mode.
OtxBriGetLineStatus
OTX_RESULT OtxBriGetLineStatus(IN OTX_HANDLE hBriDev, OUT OTX_UINT32 * pLineStatus)
Read the physical line status of the T1/E1 Line Interface.
Defined in: OtxBri.h
Parameters
- hBriDev
- Handle to the BRI Transceiver Device
- pLineStatus
- T1/E1 Physical Layer Line Status
OtxBriSetLiMode
OTX_RESULT OtxBriSetLiMode(IN OTX_HANDLE hBriDev, IN OtxBriLiModeE eLiMode)
Sets up the BRI Line Interface transceiver in either Terminal (TE)
or Network (NT) mode.
Defined in: OtxBri.h
Parameters
- hBriDev
- Handle to the BRI Device
- eLiMode
- Mode to be configured to (TE/NT)
OtxBriTermLi
OTX_RESULT OtxBriTermLi(IN OTX_HANDLE hBriDev, IN OTX_BOOL bConnectTermRes)
Connects or disconnects the BRI S-Interface 100-ohm terminating resistor
for a specified Line Interface.
Defined in: OtxBri.h
Parameters
- hBriDev
- Handle to the BRI Transceiver Device
- bConnectTermRes
- If OTX_TRUE, connect the terminating resistor
OtxDataConverterInit
OTX_RESULT OtxDataConverterInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormatIn, IN OtxDataFormatE eDataFormatOut)
Initialize a Data Converter Logical Device. A data converter transforms
data from one data format to another.
Defined in: OtxData.h
Parameters
- hDevice
- Handle to the logical Data Converter Device
- eDataFormatIn
- Data format coming in. See also OtxDataFormat
- eDataFormatOut
- Data format coming out. See also OtxDataFormat
See Also
OTX_LDEVICE_DATA_CONVERTER
OtxDataFormatE
OtxDataMixerInit
OTX_RESULT OtxDataMixerInit(IN OTX_HANDLE hDevice)
Initialize a Data Mixer Logical Device.
Defined in: OtxData.h
Parameters
- hDevice
- Handle to the logical Data Mixer Device
Comments
A Data Mixer multiplexes (mixes) N inputs to 1 output. Allows logical device or
pipe outputs to be connected together and mixed into one output.
See Also
OTX_LDEVICE_DATA_MIXER
OtxDrvCancelTask
OTX_RESULT OtxDrvCancelTask(IN OTX_HANDLE hDevice, IN OTX_TASK_REF nTaskRef)
Cancels a pending task for a particular device.
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device
- nTaskRef
- Callers task reference, as given earlier. See OTX_TASK_REF
Comments
If a device has several tasks with the same reference number the oldest
task is cancelled. Only one or zero tasks are removed for each call.
See Also
OTX_TASK_REF
OtxDrvClose
OTX_RESULT OtxDrvClose(IN OTX_HANDLE hObject)
Close a physical or logical device or event queue or pipe.
Defined in: OtxDrv.h
Parameters
- hObject
- Object handle to a physical/logical device, pipe or event queue
Comments
If the device is being used it may not be possible to close it.
E.g. no devices may be connected to an event queue in order for
the closing of the event queue to succeed.
See Also
OtxDrvOpenPhysicalDevice
OtxDrvCreateLogicalDevice
OTX_HANDLE
OtxDrvCloseEvent
OTX_RESULT OtxDrvCloseEvent(IN OTX_EVENT hEvent)
Close a Notification Event
Defined in: OtxDrv.h
Parameters
- hEvent
- Event handle to close. See Also OTX_EVENT
Comments
Make sure there are no event queues that use event. Closing an event
that is still in use will crash the system eventually.
Developer Notes
Only implemented for Win32 platforms
See Also
OtxDrvWaitForSingleEvent
OtxDrvWaitForMultipleEvents
OtxDrvCreateEventQueue
OtxDrvCloseEvent
OTX_EVENT
OtxDrvConnectBoard
OTX_RESULT OtxDrvConnectBoard(IN OTX_HANDLE hCtBus, IN OTX_HANDLE hBoard)
Inform the driver of the physical board connections for a CT Bus. This function
should be called once for every board which is connected to this CT Bus.
Defined in: OtxDrv.h
Parameters
- hCtBus
- Handle to a CT Bus
- hBoard
- Handle to a board (Nic) device which is connected to this CT bus
Comments
A CT Bus device is a physical device representing the CT Bus cable
connection between two or more boards.
When two ore more boards are connected together with the appropriate CT Bus
board interconnect cable it is possible to connect two devices with a pipe
even if they are located on different board. Before pipes can connect over
separate boards the driver must be informed about what types of board
interconnects exists, and how the boards are connected. This is done by calling
this function.
The CT Bus device must be opened by calling OtxDrvOpenPhysicalDevice prior to
calling this function. The same applies to all the boards which are connected
to the CT Bus.
The CT Bus does not have a direction like a pipe. The direction of each individual
timeslot is determined at the time a Pipe Device must utilize the CT Bus
to reach a different board. The direction of the pipe then determines the
direction of that timeslot in the CT Bus.
The OTX driver supports a CT bus capacity of 2048 kbps which corresponds
to 32 timeslots/highway.
See Also
OtxDrvOpenPhysicalDevice
OTX_DEVICE_CT_BUS
OtxDrvConnectLib
OTX_RESULT OtxDrvConnectLib(void)
Initialize the driver API library.
Defined in: OtxDrv.h
Comments
Sets up a communication channel with the driver.
See Also
OtxDrvReleaseLib
OtxDrvConnectLogicalDevice
OTX_RESULT OtxDrvConnectLogicalDevice(IN OTX_HANDLE hFromDevice, IN OTX_INT32 iFromConnectPoint, IN OTX_HANDLE hToDevice, IN OTX_INT32 iToConnectPoint)
Connect an input of a Logical device to another logical device or to a pipe
connected to the physical device implementing the logical device.
Defined in: OtxDrv.h
Parameters
- hFromDevice
- Logical Device or Pipe whose output is to be connected
- iFromConnectPoint
- Output connection point to connect, -1 = don't care
- hToDevice
- Logical Device or Pipe whose input is to be connected
- iToConnectPoint
- Connection point on the second device to connect to, -1 = don't care
Comments
Two logical devices (which are implemented within one physical device)
or a logical device and a pipe connected to the physical device implementing
the logical device can be connected in series with this function. If the devices
need to be connected in parallel, call this function twice with the same
output device but with two different input devices.
The connection point index is only needed for devices that has more than
one inputs of outputs, e.g. a mixer or a conference bridge, and even in that
case it can be left as -1 if the connection points are 100% symmetrical,
e.g. a symmetrically mixed conference bridge.
Developer Notes
This function can only be used for logical devices and pipes. Physical
devices must be connected using the function OtxDrvConnectPipe
See Also
OtxDrvDisconnectLogicalDevice
OtxDrvConnectPipe
OtxDrvCreateLogicalDevice
OTX_HANDLE
OtxDrvConnectPipe
OTX_RESULT OtxDrvConnectPipe(IN OTX_HANDLE hPipe, IN OtxPipeEndE ePipeEnd, IN OTX_HANDLE hDevice, IN OTX_INT32 nHighway, IN OTX_UINT8 sqConnectMask[], IN OTX_UINT32 coMaskSize)
Connects one end of a Pipe to a Physical Device.
Defined in: OtxDrv.h
Parameters
- hPipe
- Pipe to be connected to a Physical Device.
- ePipeEnd
- End of the pipe (input vs. output) to be connected. See Also OtxPipeEndE
- hDevice
- Physical Device to be connected to
- nHighway
- Physical Highway to be used. -1 = don't care
- sqConnectMask[]
- Connection mask for mapping the Pipe Bits to time-slots and bits
on the PCM highway connected to the physical device
Can be NULL if don't care and coMaskSize = 0
Each octet in the mask represents a timeslot on the highway
- coMaskSize
- Size of connection mask for the highway connection (in octets). 0 = don't care.
Comments
A pipe is always used to connect two physical devices and it is always forms
a one-to-one data path between two physical devices. I.e. every pipe must
have exactly one physical device connected to its input and exactly one physical
device connected to its output.
Multiple logical devices (implemented within a physical device) can be
connected within a physical device to use data from a pipe output. To connect
logical devices to each other and to a pipe, use function
OtxDrvConnectLogicalDevice
The connection mask is only needed for devices where an exact mapping
of the pipe onto a physical interface (i.e. specific time-slots) is needed,
e.g. in the case of a multichannel line interface where a specific time slot is
used for signalling. It is important that the mapping matches the capacity of
the pipe exactly. If the time-slots to be used do not matter, or if they cannot
be changed by the user, specify coMaskSize = 0 and sqConnectMask = NULL.
Developer Notes
This function can only used for Physical devices. Logical Devices have
to be connected with the OtxDrvConnectLogicalDevice function.
See Also
OtxDrvCreatePipe
OtxDrvClose
OtxDrvDisconnectPipe
OtxDrvOpenPhysicalDevice
OtxDrvConnectLogicalDevice
OtxPipeEndE
OTX_HANDLE
OtxDrvCreateEvent
OTX_RESULT OtxDrvCreateEvent(OUT OTX_EVENT * phEvent)
Create a Notification Event
Defined in: OtxDrv.h
Parameters
- phEvent
- Event handle, ready for use. See Also OTX_EVENT
Comments
An Event Handle if registered with an Event Queue and can be used by
a Win32 app to wait efficiently on events to be added to the event
queue. That way unnecessary polling with the OtxDrvGetEventData can be
avoided.
Developer Notes
Only implemented for Win32 platforms
See Also
OtxDrvWaitForSingleEvent
OtxDrvWaitForMultipleEvents
OtxDrvCreateEventQueue
OtxDrvCloseEvent
OTX_EVENT
OtxDrvCreateEventQueue
OTX_RESULT OtxDrvCreateEventQueue(IN OTX_UINT32 nSize, IN OTX_EVENT hEvent, OUT OTX_HANDLE * phEventQueue)
Create a Notification Event Queue
Defined in: OtxDrv.h
Parameters
- nSize
- Size of the queue to be created in # of messages
- hEvent
- Event which a Win32 app can
Wait for events to occur, NULL if
no notification needed (or if not a Win32 application).
- phEventQueue
- Event Queue handle
Comments
An Event Queue is used to serialize asynchronous events detected by the
driver. Events can be anything that occur spontaneously or as a result
of a user incurred action. It's the users responsibility to pump event
messages out of the queue and act on them accordingly. Some messages
are complete in the sense that they contain all infomation associated
with the event, whereas other actions require the user to read out more
info from the object itself (the object handle is always passed in the
event message).
See Also
OtxDrvCreateEvent
OtxDrvOpenPhysicalDevice
OtxDrvCreateLogicalDevice
OTX_EVENT
OTX_HANDLE
OtxDrvCreateLogicalDevice
OTX_RESULT OtxDrvCreateLogicalDevice(IN OTX_HANDLE hHostDevice, IN OtxLogicalDeviceTypeE eDevType, IN OTX_HANDLE hEventQueue, IN OTX_INT32 nEventSourceId, OUT OTX_HANDLE * phLogicDevice)
Create a Device Object to represent a logical device which is implemented
with hardware, firmware, or software within a physical device.
Defined in: OtxDrv.h
Parameters
- hHostDevice
- Parent (typically a physical device) who owns the logical device we are connecting to
- eDevType
- Class of device we are looking for, as known by the module in question. See also OtxLogicalDeviceTypeE
- hEventQueue
- Handle to separate event queue (0 creates device specific event queue)
- nEventSourceId
- User specified ID to be used by this device as the Source ID for the events generated by the device
- phLogicDevice
- Handle to the new logical device (if result code OTX_S_OK)
Comments
The logical devices are differenciated from the phyiscal devices by the fact
the number of logical devices is not pre-determined. More logical devices can
be requested by the user and allocated by the system if needed. Examples of
logical devices include HDLC Receiver, HDLC Sender, Tone Detector, Tone Generator,
etc.
The following Logical Devices are supported by the OTX Driver:
Tone Devices : Logical devices for tone generation and reception (See OtxTone.h)
Data Devices : Devices for sending, receiving, and manipulation of
Raw data (See OtxData.h)
HDLC Devices : Logical devices implementing HDLC Sender and Receiver
Devices (See OtxHdlc.h)
CAS Devices : Devices implementin Channel Associated Signalling (CAS)
functions (See OtxCas1.h)
Modem Devices : Devices implementing Modem emulation
Fax Devices : Devices implementin Fax emulation
Voice Devices : Devices implementing Voice Codecs, echo cancellation,
silence supression, etc.
See Also
OtxDrvClose
OtxLogicalDeviceTypeE
OtxPhysicalDeviceTypeE
OTX_HANDLE
OtxDrvCreatePipe
OTX_RESULT OtxDrvCreatePipe(IN OTX_INT32 nCapacity, OUT OTX_HANDLE * phPipe)
Create a logical pipe. (One direction, one end is input, other is output)
A pipe is always needed to carry data between two physical devices or between a
physical device and a logical device.
Defined in: OtxDrv.h
Parameters
- nCapacity
- Capacity in kbps (only 8kbps increments allowed)
- phPipe
- Handle to the new pipe device (if result code OTX_S_OK)
Comments
A Pipe is a logical entity representing a connection between two or more devices.
A Pipe has a direction, thus two Pipes are needed for a duplex connection. A pipe can
connect any two devices regardless of where these two devices are located.
The devices can be either physical or logical or both.
A pipe can be created for a data rate between 8 kbit/s and 2.048Mbit/s
(2.048 Mbit/s max is standard. Highways can be operated at up to 8.192Mbits/s).
A pipe is a configured entity and it is overlaid on internal highways.
A pipe can constitute a single time-slot on a Highway or it can be a superchannel
of any number of time slots. The pipe is mapped on the physical highways when
it is connected to a device with function OtxDrvConnectPipe
See Also
OtxDrvConnectPipe
OtxDrvClose
OtxDrvDisconnectPipe
OTX_HANDLE
OtxDrvDeviceControl
OTX_RESULT OtxDrvDeviceControl(IN OTX_HANDLE hDevice, IN OTX_INT32 nCommandCode, IN OTX_UINT8 * pInBuffer, IN OTX_UINT32 cbInBuffer, OUT OTX_UINT8 * pOutBuffer, IN OTX_UINT32 cbOutBuffer, OUT OTX_UINT32 cbReturned, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Transparent device communication.
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to device
- nCommandCode
- Code indicating requested operation
- pInBuffer
- Input parameters in serial format
- cbInBuffer
- Byte count of input parameters
- pOutBuffer
- Buffer to receive output parameters in serial format
- cbOutBuffer
- Size in bytes of output buffer. Must be large enough for the given command
- cbReturned
- Actual number of bytes returned (may differ from cbOutBuffer).
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
Comments
Mostly used to communicate
with firmware modules and firmware devices. Since the capabilities
of the firmware are transparent to the driver this is the only way
firmware modules and devices can be controlled by an application
using the OtxDrv API.
See Also
OTX_HANDLE
OTX_TASK_REF
OTX_TIME
OtxDrvDisable
OTX_RESULT OtxDrvDisable(IN OTX_HANDLE hObject, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Disables a driver object. Disabling an object makes the object reject
all IO requests. Only certain control commands can be issued to a disabled
object (such as configuration and reset commands). A disabled object can not
generate events. Events still in the event queue are not removed by this
command.
Defined in: OtxDrv.h
Parameters
- hObject
- Any OTX_HANDLE
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
See Also
OtxDrvEnable
OtxDrvReset
OtxDrvCancelTask
OTX_HANDLE
To Do
Not all devices maintain a public state yet
OtxDrvDisconnectLogicalDevice
OTX_RESULT OtxDrvDisconnectLogicalDevice(IN OTX_HANDLE hFromDevice, IN OTX_INT32 iFromConnectPoint, IN OTX_HANDLE hToDevice, IN OTX_INT32 iToConnectPoint)
Connect an input of a Logical device to another logical device or to a pipe
connected to the physical device implementing the logical device.
Defined in: OtxDrv.h
Parameters
- hFromDevice
- Logical Device or Pipe whose output is to be disconnected
- iFromConnectPoint
- Output connection point to be disconnected, -1 = disconnect all
- hToDevice
- Logical Device or Pipe whose input is to be disconnected
- iToConnectPoint
- Connection point on the second device to be disconnect to, -1 = disconnect all
Comments
Two logical devices (which are implemented within one physical device)
or a logical device and a pipe connected to the physical device implementing
the logical device can be connected in series with this function. If the devices
need to be connected in parallel, call this function twice with the same
output device but with two different input devices.
The connection point index is only needed for devices that has more than
one inputs of outputs, e.g. a mixer or a conference bridge, and even in that
case it can be left as -1 if the connection points are 100% symmetrical,
e.g. a symmetrically mixed conference bridge.
Developer Notes
This function can only be used for logical devices and pipes. Physical
devices must be connected using the function OtxDrvConnectPipe
See Also
OtxDrvConnectLogicalDevice
OtxDrvConnectPipe
OtxDrvCreateLogicalDevice
OTX_HANDLE
OtxDrvDisconnectPipe
OTX_RESULT OtxDrvDisconnectPipe(IN OTX_HANDLE hPipe, IN OtxPipeEndE ePipeEnd)
Disconnects one end of a Pipe from a Physical Device.
Defined in: OtxDrv.h
Parameters
- hPipe
- Pipe to be disconnected
- ePipeEnd
- End of the pipe to be disconnected. See Also OtxPipeEndE
Comments
After diconnection, the pipe can be re-connected to another physical
device with function OtxDrvConnectPipe
See Also
OtxDrvConnectPipe
OtxDrvCreatePipe
OtxDrvClose
OtxDrvConnectLogicalDevice
OtxPipeEndE
OTX_HANDLE
OtxDrvEnable
OTX_RESULT OtxDrvEnable(IN OTX_HANDLE hObject, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Enables a physical or logical driver device. Enabling a device makes the
object to accept I/O requests and enables event notification if so
configured.
Defined in: OtxDrv.h
Parameters
- hObject
- Any OTX_HANDLE
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
See Also
OtxDrvDisable
OtxDrvReset
OtxDrvCancelTask
OTX_HANDLE
OtxDrvEnumDevice
OTX_RESULT OtxDrvEnumDevice(IN OTX_HANDLE hDevice, IN OTX_INT32 eDeviceType, IN OUT OTX_ITERATOR * pItr, OUT OTX_HANDLE * phChildDevice)
Enumerates over all device numbers for a specific type of devices supported
by a parent device.
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the physical parent device
- eDeviceType
- Physical or logical device type. See OtxPhysicalDeviceTypeE and OtxLogicalDeviceTypeE
- pItr
- Enumeration start position. See OTX_ITERATOR
- phChildDevice
- Handle to device referenced by iterator. This handle can be always be used to query the device, but the device must have been opened for most other operations to succeed
Comments
Retrievs data for item referenced by the iterator
After the calll the iterator has been incremented to reference the next item in the
sequence. It can be used in a subsequent call to the same function
to fetch data for the next element in the same sequence. Repeated calls
to the same function with the same iterator eventually fetches data for
all items in this sequence. Note that it is not possible to increment the iterator in
any other way.
The iterator must already be initialized with a call to OtxDrvIteratorBegin
before the first call to this function.
It is important that the iterator is used on the same sequence of items between
each call to OtxDrvIteratorBegin, i.e. the same function must be called with
the same handle value (hDevice) and the same iterator (pItr).
However, it is possible for multiple iterators to be used on the same sequence
independently, at the same time, even in separate threads.
See Also
OtxDrvEnumDeviceType
OtxDrvIteratorBegin
OtxDrvIsIteratorEnd
OTX_ITERATOR
OtxDrvEnumDeviceType
OTX_RESULT OtxDrvEnumDeviceType(IN OTX_HANDLE hDevice, IN OUT OTX_ITERATOR * pItr, OUT OTX_INT32 * peDeviceType)
Enumerates over all device types supported by a parent device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the physical parent device
- pItr
- Enumeration start position. See OTX_ITERATOR
- peDeviceType
- Physical or logical device type. See OtxPhysicalDeviceTypeE and OtxLogicalDeviceTypeE
Comments
Retrievs data for item referenced by the iterator
The iterator is incremented to reference the next item in the
sequence. It can be used in a subsequent call to the same function
to fetch data for the next element in the same sequence. Repeated calls
to the same function with the same iterator eventually fetches data for
all items in this sequence.
The iterator must already be initialized with a call to OtxDrvIteratorBegin
before the first call to this function.
It is important that the iterator is used on the same sequence of items between
each call to OtxDrvIteratorBegin, i.e. the same function must be called with
the same handle and the same iterator.
However, it is possible for multiple iterators to be used on the same sequence
independently, at the same time, even in separate threads.
See Also
OtxDrvEnumDevice
OtxDrvIteratorBegin
OtxDrvIsIteratorEnd
OTX_ITERATOR
OtxDrvEventCode2String
OTX_RESULT OtxDrvEventCode2String(IN OTX_HANDLE hDevice, IN OTX_INT32 nEventCode, IN OTX_UINT32 nBufLen, OUT char szStrBuf[])
Translate an Event message into english text describing the event.
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device who generated the event
- nEventCode
- Event Cause Code to be translated. See also OtxEventDataS
- nBufLen
- Length of the User supplied String Buffer
- szStrBuf[]
- User supplied String buffer
Comments
The event message string is copied into a user supplied buffer
OtxDrvGetAttributeType
OTX_RESULT OtxDrvGetAttributeType(IN OTX_HANDLE hDevice, IN OTX_ATTRIB_ID nAttribId, OUT OtxAttribTypeE * peAttribType, OUT OTX_UINT32 * pcbAttribValue, OUT OTX_BOOL * pbReadOnly)
Get the an attribute of a device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device being queried
- nAttribId
- ID of attribute
- peAttribType
- Type of the attribute, if attribute exists
- pcbAttribValue
- Size in bytes of attribute value (Get value with OtxDrvGetAttributeValue)
- pbReadOnly
- Is attribute writable or read-only
Comments
This function can, for example, be used to retrieve the revision of the
currently loaded driver, or a firmware revision of a physical device.
Different devices have different attributes, see the header file for the
device in question for specific information
See Also
OtxDrvGetAttributeValue
OtxDrvSetAttributeValue
OtxDrvResultCode2String
OtxDrvEventCode2String
OtxDrvConnectLib
OtxDrvGetAttributeValue
OTX_RESULT OtxDrvGetAttributeValue(IN OTX_HANDLE hDevice, IN OTX_ATTRIB_ID nAttribId, OUT OTX_PVOID pAttribValueBuf, IN OTX_UINT32 cbAttribValueBuf, OUT OTX_UINT32 * pcbAttribValue)
Get an attribute of a device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device being queried
- nAttribId
- ID of attribute
- pAttribValueBuf
- Buffer to hold the value of the attribute
- cbAttribValueBuf
- Size of the attribValueBuf in bytes
- pcbAttribValue
- Bytes actually used in attribValueBuf
Comments
This function can, for example be used to retrieve the revision of the
currently loaded driver, or a firmware revision of a physical device.
See Also
OtxDrvGetAttributeType
OtxDrvSetAttributeValue
OtxDrvResultCode2String
OtxDrvEventCode2String
OtxDrvConnectLib
OtxDrvGetAttributeValueBool
OTX_RESULT OtxDrvGetAttributeValueBool(void)
Get an attribute of a device
Defined in: OtxDrv.h
See Also
OtxDrvGetAttributeValue
OtxDrvGetAttributeValueSz
OTX_RESULT OtxDrvGetAttributeValueSz(void)
Get an attribute of a device
Defined in: OtxDrv.h
See Also
OtxDrvGetAttributeValue
OtxDrvGetAttributeValueUint32
OTX_RESULT OtxDrvGetAttributeValueUint32(void)
Get an attribute of a device
Defined in: OtxDrv.h
See Also
OtxDrvGetAttributeValue
OtxDrvGetCurrentTime
OTX_RESULT OtxDrvGetCurrentTime(OUT OTX_DATETIME * pnTimeStamp)
Gets the current time from the host.
Defined in: OtxDrv.h
Parameters
- pnTimeStamp
- Current time of the host
See Also
OTX_DATETIME
To Do
Future functionality
OtxDrvGetDeviceHandle
OTX_RESULT OtxDrvGetDeviceHandle(void)
Gets a handle to an alredy existing Device Object
Defined in: OtxDrv.h
Comments
The returned handle can only be used for query operations such as
getting attributes and for opening child devices which requires the
handle of the parent.
See Also
OtxDrvOpenPhysicalDevice
OtxPhysicalDeviceTypeE
OtxLogicalDeviceTypeE
OTX_HANDLE
OtxDrvGetEventData
OTX_RESULT OtxDrvGetEventData(IN OTX_HANDLE hEventQueue, OUT OtxEventDataS * pEventData)
Fetch information about events that occurred in the driver.
Defined in: OtxDrv.h
Parameters
- hEventQueue
- Event queue to read event from
- pEventData
- Pointer to place-holder for event data
See also OtxEventDataS
Comments
Data about the events are returned in the order they occured.
Each event is time stamped.
Win32 applications can wait efficiently for events to occur by setting
up a Win32 Event with the driver, see OtxWaitForSingleEvent
See Also
OtxDrvCreateEventQueue
OtxDrvGetEventDataEx
OtxDrvEnable
OtxDrvDisable
OtxDrvReset
OtxEventDataS
OtxDrvGetEventDataEx
OTX_RESULT OtxDrvGetEventDataEx(IN OTX_HANDLE hEventQueue, OUT OtxEventDataS * psqEventData, IN OTX_INT32 coEventData, OUT OTX_INT32 * pcoEventsReturned)
Fetch multiple events that occurred in the driver. This function has the same
functionality as the OtxDrvGetEventData function, except that this function
is able to fetch multiple event from the driver in one call (and thus reduce
overhead introduce by context-switching).
Defined in: OtxDrv.h
Parameters
- hEventQueue
- Event queue to read event from
- psqEventData
- Pointer to place-holder array for event data (OtxEventDataS)
- coEventData
- Capacity of psqEventData (in number of OtxEventDataS elements), i.e. maximum number
of events which the driver can entry in psqEventData.
- pcoEventsReturned
- Number of events returned by this function (number of elements which the driver entered in psqEventData).
See Also
OtxDrvGetEventData
OtxEventDataS
OtxDrvGetState
OTX_RESULT OtxDrvGetState(IN OTX_HANDLE hObject, OUT OtxDeviceStateE * peDevState)
Gets the status of a device.
Defined in: OtxDrv.h
Parameters
- hObject
- Handle to a driver object to get state info about
- peDevState
- State of the device. See also OtxDeviceStateE
Comments
Any device can be in one of the 3 states:
"WORKING," "MANUALLY BLOCKED," or "AUTO BLOCKED." Disabling device with function
OtxDrvDisable forces the device to a state MANUALLY BLOCKED. Enabling of
a device with function OtxDrvEnable attempts to set the device into a
WORKING state. However, if the device does not operate correctly, e.g., it
generates excessive amounts of interrupts, the driver can automatically
block the device and force it to state "AUTO BLOCKED."
See Also
OtxDrvEnable
OtxDrvDisable
OtxDeviceStateE
OtxDrvIsIteratorEnd
OTX_RESULT OtxDrvIsIteratorEnd(void)
Checks an iterator to see if it has reached past the end of the sequence
being enumerated.
Defined in: OtxDrv.h
See Also
OtxDrvIteratorBegin
OtxDrvIteratorNext
OTX_ITERATOR
OtxDrvIteratorBegin
OTX_RESULT OtxDrvIteratorBegin(void)
Initializes an iterator so that it can be used to retrieve data for the
first element/device in a sequence
Defined in: OtxDrv.h
See Also
OtxDrvEnumDeviceType
OtxDrvEnumDevice
OtxDrvIsIteratorEnd
OTX_ITERATOR
OtxDrvOpenPhysicalDevice
OTX_RESULT OtxDrvOpenPhysicalDevice(IN OTX_HANDLE hHostDevice, IN OtxPhysicalDeviceTypeE eDevType, IN OTX_INT32 nDevice, IN OTX_INT32 nEventSourceId, IN OTX_HANDLE hEventQueue, OUT OTX_HANDLE * phPhysDevice)
Opens a Device Object representing a physical hardware device, which can
be an entire board or an integrated circuit (chip) on a board. The number of
physical devices is set in hardware and cannot change dynamically.
Defined in: OtxDrv.h
Parameters
- hHostDevice
- Parent (typically Board Device) who owns the device we are connecting to
Specify NULL when opening a board device
- eDevType
- Class of device we are looking for. See OtxPhysicalDeviceTypeE
- nDevice
- Sequence number of device within it's class
- nEventSourceId
- User specified ID to be used by this device as the Source ID for the events generated by the device
- hEventQueue
- Handle to separate event queue (OTX_INVALID_HANDLE_VALUE creates device specific event queue)
- phPhysDevice
- Handle to the new physical device (if result code OTX_S_OK)
Comments
Each physical devices in the system are identified by 3 parameters
Parent : Physical Device contaning the device
Type : Type of the Physical Device
Sequence Number : Number of the device within the host and with its type
The physical devices can be classified in 2 categories:
BOARD Devices: A board device represents one OTX Network Interface card or
a Daughter Board Module. The board device is the placeholder and controller
of other physical devices on the board.
CHIP Devices: A chip device represents a physical integrated circuit
on the board performing one or several functions. A logical device can
be created to represent each of the functions implemented by a chip device.
For example, a Digital Signal Processor is a physical "chip" device.
However, the DSP software may implement several functions which then
can be represented by a multiple of logical devices.
The chip devices can be further categorized as follows:
Line Interface Devices: A hardware device that interfaces with the external
network and converts/maps the non-TTL level external data interface to the
internal serial data highways. Typically an actual line interface transceiver
chip on a board. Examples of Line Interface Devices include T1/E1, BRI, POTS,
T3/E3 Lis.
Processor Devices: A processor (general purpose micro processor or Digital
Signal Processor) is an integrated circuit that implements certain functionality
(logical devices) under software control.
Switch Device: A device connecting and disconnecting data-paths.
Other miscellaneous chips.
See Also
OtxDrvClose
OtxPhysicalDeviceTypeE
OtxLogicalDeviceTypeE
OTX_HANDLE
OtxDrvOpenPhysicalDeviceEx
OTX_RESULT OtxDrvOpenPhysicalDeviceEx(IN OTX_HANDLE hPhysDevice, IN OTX_INT32 nEventSourceId, IN OTX_HANDLE hEventQueue)
Opens a Device Object representing a physical hardware device, for which
a handle has already been acquired (e.g with OtxDrvEnumDevice). Otherwise
this function has the same functionality as OtxDrvOpenPhysicalDevice.
Defined in: OtxDrv.h
Parameters
- hPhysDevice
- Handle to the physical device
- nEventSourceId
- User specified ID to be used by this device as the Source ID for the events generated by the device
- hEventQueue
- Handle to separate event queue (NULL creates device specific event queue)
See Also
OtxDrvEnumDevice
OtxDrvOpenPhysicalDevice
OtxDrvPollEvents
OTX_RESULT OtxDrvPollEvents(IN OTX_HANDLE hDevice)
Polls for Events from the driver.
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to device
Comments
This function can be used if interrupts can not be used for some reason.
Instead of an interrupt service routine servicing interrupts upon arrival,
the application can constantly poll this function and force the interrupt
service routine to be executed periodically without having interrupts
enabled.
OtxDrvReadReg16
OTX_RESULT OtxDrvReadReg16(IN OTX_HANDLE hDevice, IN OTX_UINT32 nAddress, OUT OTX_UINT32 * pnValue)
Read a 16-bit register from a physical device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device to read from
- nAddress
- Register address within the device
- pnValue
- 16-bit value read from the device
OtxDrvReadReg8
OTX_RESULT OtxDrvReadReg8(IN OTX_HANDLE hDevice, IN OTX_UINT32 nAddress, OUT OTX_UINT32 * pnValue)
Read an 8-bit register from a physical device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device to read from
- nAddress
- Register address within the device
- pnValue
- 8-bit value read from the device
OtxDrvReleaseLib
OTX_RESULT OtxDrvReleaseLib(void)
Releases all references that this driver is holding.
Defined in: OtxDrv.h
Comments
All handles that an application is holding are closed automatically when a
process terminates. If the application is about to terminate, calling
this function is not necessary. However a server application may need
this function if it never terminates.
See Also
OtxDrvConnectLib
OtxDrvReset
OTX_RESULT OtxDrvReset(IN OTX_HANDLE hObject)
Resets a device. It is not normally necessary to reset a device.
A reset is normally done to resolve and error condition. Some objects must be
disabled before they can be reset.
Events in the event queue for the particular object are removed by this
command.
Defined in: OtxDrv.h
Parameters
- hObject
- Handle to a object to reset
See Also
OtxDrvEnable
OtxDrvDisable
OTX_HANDLE
OtxDrvResultCode2String
OTX_RESULT OtxDrvResultCode2String(IN OTX_HANDLE hDevice, IN OTX_RESULT nResultCode, IN OTX_UINT32 nBufLen, OUT char szStrBuf[])
Translate a result code into english text describing the code.
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device who generated the result code
- nResultCode
- Result Code to be translated. See also OTX_RESULT
- nBufLen
- Length of the User supplied String Buffer
- szStrBuf[]
- User supplied String buffer
Comments
The result message string is copied into a user supplied buffer
OtxDrvSetAttributeValue
OTX_RESULT OtxDrvSetAttributeValue(IN OTX_HANDLE hDevice, IN OTX_ATTRIB_ID nAttribId, OUT OTX_UINT8 attribValueBuf[], IN OTX_UINT32 cbAttribValueBuf)
Set the an attribute of a device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device being queried
- nAttribId
- ID of attribute
- attribValueBuf[]
- Value of the attribute, if attribute exists
- cbAttribValueBuf
- Size in bytes of the buffer for the value
Comments
This function can, for example be used to disable and enable certain
functions of a device, for example enable or disable reception
of Caller ID for a Pots device . Note that some attributes
are read/only. If an attempt to set a read only attribute is made
an error code is returned as result.
See Also
OtxDrvGetAttributeType
OtxDrvGetAttributeValue
OtxDrvResultCode2String
OtxDrvEventCode2String
OtxDrvConnectLib
OtxDrvSetAttributeValueBool
OTX_RESULT OtxDrvSetAttributeValueBool(void)
Set an attribute of a device
Defined in: OtxDrv.h
See Also
OtxDrvGetAttributeValue
OtxDrvSetAttributeValueSz
OTX_RESULT OtxDrvSetAttributeValueSz(void)
Get an attribute of a device
Defined in: OtxDrv.h
See Also
OtxDrvGetAttributeValue
OtxDrvSetAttributeValueUint32
OTX_RESULT OtxDrvSetAttributeValueUint32(void)
Get an attribute of a device
Defined in: OtxDrv.h
See Also
OtxDrvGetAttributeValue
OtxDrvSetEventData
OTX_RESULT OtxDrvSetEventData(IN OTX_HANDLE hEventQueue, IN OTX_UINT32 eDeviceType, IN OTX_UINT32 nSourceId, IN OTX_HANDLE hDevice, IN OTX_NOTIFY_CAUSE nCode, IN OTX_TASK_REF nRequestId, IN OTX_UINT32 nParam)
Place an event data to an event queue.
Defined in: OtxDrv.h
Parameters
- hEventQueue
- Event queue to be used
- eDeviceType
- Device Type with which the event is associated
- nSourceId
- Device Id of the device that the event is associated with (supplied by the user when the device for opened/created)
- hDevice
- Handle to the Device with which the event is associated
- nCode
- Device specific cause code indicating what happened. Each device types has it own set of event cause codes
- nRequestId
- If the message is for a previous user request this member holds the user assigned request ID
- nParam
- Optional parameter with user defined meaning
Comments
This function allows a module to place data into a previously created
event queue. This function can be used by layered applications where lower
layer module can pass an event to an upper layer module which can be
waiting efficiently using the OtxDrvWaitForSingleEvent function.
The driver will time stamp the event.
See Also
OtxDrvCreateEventQueue
OtxDrvGetEventData
OtxEventDataS
OtxDrvSignalEvent
OTX_RESULT OtxDrvSignalEvent(IN OTX_EVENT hEvent)
Set an event into a signaled state.
Defined in: OtxDrv.h
Parameters
- hEvent
- Handle to an Event to be set into signalled state. See Also OTX_EVENT
Comments
This function allows a previously created event to be set into signalled
state. This function can be used by layered applications where lower layer
module can signal an event to upper layer module which can be waiting
efficiently using the OtxDrvWaitForSingleEvent function.
Developer Notes
Only implemented for Win32 platforms
See Also
OtxDrvCreateEvent
OtxDrvWaitForSingleEvent
OtxDrvWaitForMultipleEvents
OtxDrvCloseEvent
OTX_EVENT
OtxDrvWaitForMultipleEvents
OTX_RESULT OtxDrvWaitForMultipleEvents(IN OTX_INT32 coEventHandles, IN OTX_EVENT sqhEvents[], IN OTX_TIME nWaitMaxMs, IN OTX_BOOL bWaitAll, OUT OTX_INT32 * pnEventFired)
Wait for a notification event from the driver
Defined in: OtxDrv.h
Parameters
- coEventHandles
- Event handle count
- sqhEvents[]
- Array of event handles. See Also OTX_EVENT
- nWaitMaxMs
- Max time to wait in millisconds
- bWaitAll
- Specifies the wait type. If OTX_TRUE, the function returns
when the state all objects in the lpHandles array is signaled.
If OTX_FALSE, the function returns when the state of any
one of the objects set to is signaled. In the latter case,
the return value indicates the object whose state caused the
function to return. See also OTX_BOOL
- pnEventFired
- index to event in array that fired
Comments
Waits efficiently using a Win32 event.
Specify nMilliseconds = OTX_TIME_INFINITY to wait forever.
See Also
OtxDrvWaitForSingleEvent
OtxDrvCreateEvent
OTX_EVENT
OTX_BOOL
OtxDrvWaitForSingleEvent
OTX_RESULT OtxDrvWaitForSingleEvent(IN OTX_EVENT hEvent, IN OTX_TIME nWaitMaxMs)
Wait for a notification event from the driver
Defined in: OtxDrv.h
Return Value
Returns one of the following values:
- OTX_E_HANDLE
- Handle invalid
- OTX_S_TIMEOUT
- Wait timed out
- OTX_S_OK
- Event occured
- OTX_E_FAIL
- Non-specified failure
Parameters
- hEvent
- Event handle, initilized with OtxDrvCreateEvent
- nWaitMaxMs
- Max time to wait in millisconds
Comments
Waits efficiently using a Win32 event.
Specify nMilliseconds = OTX_TIME_INFINITY to wait forever.
See Also
OtxDrvWaitForMultipleEvents
OtxDrvCreateEvent
OTX_EVENT
OtxDrvWriteReg16
OTX_RESULT OtxDrvWriteReg16(IN OTX_HANDLE hDevice, IN OTX_UINT32 nAddress, OUT OTX_UINT32 nValue)
Write a 16-bit value to a 16-bit register in a physical device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device to write to
- nAddress
- Register address within the device
- nValue
- 16-bit value to be written to the device
OtxDrvWriteReg8
OTX_RESULT OtxDrvWriteReg8(IN OTX_HANDLE hDevice, IN OTX_UINT32 nAddress, OUT OTX_UINT32 nValue)
Write an 8-bits value to an 8-bit register in a physical device
Defined in: OtxDrv.h
Parameters
- hDevice
- Handle to the device to write to
- nAddress
- Register address within the device
- nValue
- 8-bit value to be written to the device
OtxDspCreateProgramImage
OTX_RESULT OtxDspCreateProgramImage(IN const char * szProgfile, IN const char * szEntryPoint, IN OTX_UINT16 coProgImageMax, IN OUT OTX_UINT16 * psqProgImage, OUT OTX_UINT16 * coProgImage, OUT OTX_INT32 * nEntryAddr)
Converts a DSP Application file in COFF format (*.out or *.obj) to
the OTX DSP Image format (used by OtxDspRunImage).
Defined in: OtxDsp.h
Parameters
- szProgfile
- Application file to be converted to an image
- szEntryPoint
- Label for the entry point of the application. Usually "_c_int00" for a C-compiled application.
- coProgImageMax
- Count of objects (size) of psqProgImage (in elements) provided by the user
- psqProgImage
- Image Buffer provided by the user
- coProgImage
- Number of image elements returned in psqProgImage
- nEntryAddr
- Program Entry address
See Also
OtxDspRunImage
OtxDspRunProgram
OtxDspIoControl
OTX_RESULT OtxDspIoControl(IN OTX_HANDLE hDspDevice, IN OTX_UINT16 nIoControlCode, IN void * pInBuf, IN OTX_UINT32 nInBufSize, IN void * pOutBuf, IN OTX_UINT32 nOutBufSize, OUT OTX_UINT32 * pnBytesReturned, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Send a user command to a user supplied DSP application
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to the physical DSP device
- nIoControlCode
- I/O Control Code to be passed
- pInBuf
- Pointer to the user allocated input buffer
- nInBufSize
- Size of the input buffer
- pOutBuf
- Pointer to the user allocated output buffer
- nOutBufSize
- Size of the output buffer
- pnBytesReturned
- Number of Bytes returned
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
See Also
OtxDspReadData
OTX_RESULT OtxDspReadData(IN OTX_HANDLE hDspDevice, IN OTX_TASK_REF nTaskRef, OUT OTX_UINT8 * pOutBuf, IN OTX_UINT32 nOutBufSize, OUT OTX_UINT32 * pnBytesReturned, OUT OTX_UINT32 * pnIoControlCode)
Read data from a user supplied DSP application
Defined in: OtxDsp.h
Return Value
Returns one of the following values:
- OTX_S_OK
- Data was fetched
- OTX_S_FALSE
- No Data available at this moment
- OTX_E_BUFFER_TO_SMALL
- The supplied user data buffer is too small to fit the received data
Parameters
- hDspDevice
- Handle to the physical DSP device
- nTaskRef
- See OTX_TASK_REF
- pOutBuf
- Pointer to the user allocated output buffer
- nOutBufSize
- Size of the output buffer
- pnBytesReturned
- Number of Bytes returned
- pnIoControlCode
- I/O Control Code the returned data is associated with
See Also
OtxDspReadHpi
OTX_RESULT OtxDspReadHpi(IN OTX_HANDLE hDspDevice, IN OTX_UINT32 nHpiAddress, IN OTX_UINT32 coWordsToRead, IN OUT OTX_UINT16 * pReadBuf)
Read a number of octets from the DSP's Host Port Interface (HPI)
into a user supplied buffer.
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to the physical DSP device
- nHpiAddress
- HPI Address to start to read from
- coWordsToRead
- Number of OTX_UINT16s (Words) to read from the HPI
- pReadBuf
- Pointer to the user allocated output buffer (Words)
Comments
Note: This function should be used with caution. It is intended for
debugging purposes and advanced users only.
See Also
OtxDspWriteHpi
OtxDspRestartProgram
OTX_RESULT OtxDspRestartProgram(IN OTX_HANDLE hDspDevice)
DSP Debugging utility function. Restarts a previously loaded and/or
running program.
This function is only meant to be called if a DSP Debugger is being
used.
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to DSP device
Example
This function should only be used on the following call sequence:
1. First the OtxDspRunImage(), OtxDspRunSpm(), or OtxDspRunProgram() is called.
2. Immediately thereafter the host application must be stopped.
3. While the host application is stopped the DSP program is loaded and started
from the DSP Debugger.
4. Once the DSP program is running again, OtxDspRunProgram() should be called
to bring the DSP program back to the state it was right after step 1 was
executed.
See Also
OtxDspRunProgram
OtxDspRunImage
OTX_RESULT OtxDspRunImage(IN OTX_HANDLE hDspDevice, IN OTX_UINT16 * psqProgImage, IN OTX_UINT16 coProgImage, IN OTX_INT32 nEntryAddr)
Loads and starts a DSP application program. The DSP application
program must be in the OTX DSP Image format (created by a
call to OtxDspCreateProgramImage).
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to DSP device
- psqProgImage
- Program image
- coProgImage
- Number of elements in psqProgImage
- nEntryAddr
- Program Entry Address
See Also
OtxDspCreateProgramImage
OtxDspRunProgram
OTX_RESULT OtxDspRunProgram(IN OTX_HANDLE hDspDevice, IN const char * szPrgfile, IN const char * szEntryPoint)
Load and Run a program on a DSP (from a file)
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to DSP device
- szPrgfile
- Application file to be loaded
- szEntryPoint
- Label for the entry point of the application
See Also
OtxDspRunSpm
OtxDspRestartProgram
OtxDspRunSpm
OTX_RESULT OtxDspRunSpm(IN OTX_HANDLE hDspDevice, IN OtxDspSpmE eProgramModule)
Load and Run an OTX Standard Program Module (SPM) on a DSP from the a
program image stored in the lib.
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to DSP device
- eProgramModule
- Standard Program Module to be loaded in the DSP (from the Lib)
See Also
OtxDspRunProgram
OtxDspWriteHpi
OTX_RESULT OtxDspWriteHpi(IN OTX_HANDLE hDspDevice, IN OTX_UINT32 nHpiAddress, IN OTX_UINT32 coWordsToWrite, IN OUT OTX_UINT16 * pWriteBuf)
Write a number of octets to the DSP's Host Port Interface (HPI)
from a user supplied buffer.
Defined in: OtxDsp.h
Parameters
- hDspDevice
- Handle to the physical DSP device
- nHpiAddress
- HPI Address to start to write to
- coWordsToWrite
- Number of OTX_UINT16s (Words) to write to the HPI
- pWriteBuf
- Pointer to the user allocated input buffer (Words)
Comments
Note: This function should be used with caution since it can corrupt the
communication buffers between the DSP and the host. It is intended for
debugging purposes and advanced users only.
See Also
OtxDspReadHpi
OtxE1GetABCDBit
OTX_RESULT OtxE1GetABCDBit(IN OTX_HANDLE hLogicDevice, OUT OtxE1ABCDBitDataS * pABCDBitData)
Get the latest received E1 ABCD Signalling information for
Channel Associated Signalling (CAS)
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 ABCD-Bit Access Logical Device
- pABCDBitData
- ABCD CAS signalling data received. See also OtxE1ABCDBitDataS
Comments
Start signalling by calling function OtxDrvEnable for the
logical device and end it with function OtxDrvDisable
Developer Notes
Only meaningful in E1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_FALSE (which is default)
See Also
OtxE1SetABCDBit
OtxE1ABCDBitDataS
OtxE1GetChannelizedABCDBit
OTX_RESULT OtxE1GetChannelizedABCDBit(IN OTX_HANDLE hLogicDevice, IN OTX_INT32 nChannel, OUT OTX_UINT8 * pnABCDBits)
Get the latest received E1 ABCD Signalling information for a specific
channel (1-30) for Channel Associated Signalling (CAS).
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 ABCD-Bit Access Logical Device
- nChannel
- CAS Channel (1 - 30)
- pnABCDBits
- The ABCD bits for this channel are returned in the lower nibble of this parameter (A=bit3,B=bit2,C=bit1,D=bit0)
Developer Notes
Only meaningful in E1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_TRUE
See Also
OtxE1SetChannelizedABCDBit
OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
OtxE1GetConfiguration
OTX_RESULT OtxE1GetConfiguration(IN OTX_HANDLE hLineDevice, OUT OtxE1ConfigOptionsS * pE1ConfigOptions)
Retrieves the current E1 Line Interface configuration data.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- pE1ConfigOptions
- E1 Configuration Data
See Also
OtxE1SetConfiguration
OtxT1SetConfiguration
OtxE1ConfigOptionsS
OtxE1GetSaBit
OTX_RESULT OtxE1GetSaBit(IN OTX_HANDLE hLogicDevice, IN OtxE1SaBitE eSaBit, OUT OTX_UINT8 * pSaVal)
Return the value of the received SaX bits. Returns 8-bits received
during the last CRC-Multiframe.
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 S-Bit Access Logical Device
- eSaBit
- Sa bit to retrieve. See also OtxE1SaBitE
- pSaVal
- Last 8 received Sa-bits
Comments
Start signalling by calling function OtxDrvEnable and end it
with function OtxDrvDisable
Developer Notes
Only meaningful in E1 mode
See Also
OtxE1SetSaBit
OtxE1SaBitE
OtxE1GetSiBit
OTX_RESULT OtxE1GetSiBit(IN OTX_HANDLE hLogicDevice, OUT OTX_UINT8 * pSi1Val, OUT OTX_UINT8 * pSi2Val)
Retrieve the value to Si bits received in the last frame.
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 S-Bit Access Logical Device
- pSi1Val
- Value of the FAS Si-bit in doubleframe format
or Si (E) bit in frame 13 in CRC-multiframe format
- pSi2Val
- Value of the service word Si bit in DoubleFrame format
or Si (E) bit in frame 15 in CRC-multiframe format
Comments
In Doubleframe format, these are the first bits of each frame.
In CRC-Multiframe format, the Si bit are the first bits of frames 13 and
15. In CRC-Multiframe format these bits are also known as the E-bits.
Developer Notes
Only meaningful in E1 mode
See Also
OtxE1SetSiBit
OtxE1SetABCDBit
OTX_RESULT OtxE1SetABCDBit(IN OTX_HANDLE hLogicDevice, IN OtxE1ABCDBitDataS * pABCDBitData)
Set the E1 ABCD Signalling information for Channel Associated
Signalling (CAS)
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 ABCD-Bit Access Logical Device
- pABCDBitData
- ABCD CAS signalling data to be transmitted. See also OtxE1ABCDBitDataS
Comments
Start signalling by calling function OtxDrvEnable for the
logical device and end it with function OtxDrvDisable
Developer Notes
Only meaningful in E1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_FALSE (which is default)
See Also
OtxE1GetABCDBit
OtxE1ABCDBitDataS
OtxE1SetChannelizedABCDBit
OTX_RESULT OtxE1SetChannelizedABCDBit(IN OTX_HANDLE hLogicDevice, IN OTX_INT32 nChannel, IN OTX_UINT8 nABCDBits)
Set the E1 ABCD Signalling information for a specific channel (1-30)
for Channel Associated Signalling (CAS).
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 ABCD-Bit Access Logical Device
- nChannel
- CAS Channel (1 - 30)
- nABCDBits
- The ABCD bits for this channel to be transmitted (A=bit3,B=bit2,C=bit1,D=bit0)
Comments
Start signalling by calling function OtxDrvEnable for the
logical device and end it with function OtxDrvDisable
Developer Notes
Only meaningful in E1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_TRUE
See Also
OtxE1GetChannelizedABCDBit
OtxE1ABCDBitDataS
OtxE1SetConfiguration
OTX_RESULT OtxE1SetConfiguration(IN OTX_HANDLE hLineDevice, IN OtxE1ConfigOptionsS * pE1ConfigOptions)
Configures the E1 Line Interface transceiver.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- pE1ConfigOptions
- E1 Configuration Data
See Also
OtxE1GetConfiguration
OtxT1SetConfiguration
OtxE1ConfigOptionsS
OtxE1SetSaBit
OTX_RESULT OtxE1SetSaBit(IN OTX_HANDLE hLogicDevice, IN OtxE1SaBitE eSaBit, IN OTX_UINT8 nSaVal)
Set the value to be sent at the SaX bits. Eight bits to be sent can be
specified per Sa-bit.
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 S-Bit Access Logical Device
- eSaBit
- Sa bit to set. See also OtxE1SaBitE
- nSaVal
- Byte (8 bits) to be sent. LSB will be sent first.
Comments
In CRC-Multiframe format, one bit is sent in the corresponsing Sa-bit
location of time-slot 0 in every other frame (in frames that do not
contain frame alignment information). The least significant bit of the
saVal byte is sent first in frame 1 of the multiframe and the most significant
bit of the Byte is sent last in frame 15 of the multiframe.
In Doubleframe format one bit of the saVal word is sent in the every other
frame starting from the least significant bit.
Start signalling by calling function OtxDrvEnable and end it
with function OtxDrvDisable
Developer Notes
Only meaningful in E1 mode
See Also
OtxE1SaBitsEnable
OtxE1SaBitsDisable
OtxE1GetSaBit
OtxE1SaBitE
OtxE1SetSiBit
OTX_RESULT OtxE1SetSiBit(IN OTX_HANDLE hLogicDevice, IN OTX_UINT8 nSi1Val, IN OTX_UINT8 nSi2Val)
Set the value to be sent at the Si bit positions.
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the E1 S-Bit Access Logical Device
- nSi1Val
- Value of the FAS Si-bit in doubleframe format
or Si (E) bit in frame 13 in CRC-multiframe format
- nSi2Val
- Value of the service word Si bit in DoubleFrame format
or Si (E) bit in frame 15 in CRC-multiframe format
Comments
In Doubleframe format, these are the first bits of each frame.
In CRC-Multiframe format, the Si bit are the first bits of frames 13 and
15. In CRC-Multiframe format these bits are also known as the E-bits.
Developer Notes
Only meaningful in E1 mode
See Also
OtxE1GetSiBit
OtxHdlcReadData
OTX_RESULT OtxHdlcReadData(IN OTX_HANDLE hHdlcDevice, OUT OTX_UINT8 * pDataBuf, IN OTX_UINT32 nBufLen, OUT OTX_UINT32 * pnFrameLen, OUT OTX_UINT32 * pnFrameSeq, OUT OtxHdlcFrameEndCodeE * pnFrameEndCode, OUT OTX_DATETIME * pnTimeStamp)
Read data received by the HDLC receiver
Defined in: OtxHdlc.h
Return Value
Returns one of the following values:
- OTX_S_OK
- Hdlc Data was fetched
- OTX_S_FALSE
- No Hdlc Data available at this moment
- OTX_E_BUFFER_TO_SMALL
- The supplied user data buffer is too small to fit the received HDLC frame
Parameters
- hHdlcDevice
- Handle to the HDLC Receiver Device
- pDataBuf
- Data buffer for the received data
- nBufLen
- Length of the user data buffer
- pnFrameLen
- Length of the received HDLC frame
- pnFrameSeq
- Sequence number of the received HDLC frame (matches the number in the event queue)
- pnFrameEndCode
- Frame Status Code
- pnTimeStamp
- Timestamp of the last received octet of the frame
See Also
OtxHdlcReceiverInit
OTX_LDEVICE_HDLC_RECEIVER
OtxHdlcSendData
OtxHdlcReadDataEx
OtxHdlcReadDataEx
OTX_RESULT OtxHdlcReadDataEx(IN OTX_HANDLE hHdlcDevice, OUT OTX_UINT8 * psqInfoAndDataBuffer, IN OTX_UINT32 cbBufferCapacity, IN OTX_UINT32 coMaxFrames, IN OTX_BOOL bTruncate, OUT OTX_UINT32 * pcoFrames)
Read multiple data frames received by the HDLC receiver.
Defined in: OtxHdlc.h
Return Value
Returns one of the following values:
- OTX_S_OK
- Hdlc Data was fetched
- OTX_S_FALSE
- No Hdlc Data available at this moment
- OTX_E_BUFFER_TO_SMALL
- The supplied user data buffer is too small to fit the first HDLC frame info and data
Parameters
- hHdlcDevice
- Handle to the HDLC Receiver Device
- psqInfoAndDataBuffer
- Data buffer for the received data and info for all received frames
- cbBufferCapacity
- Length of the buffer
- coMaxFrames
- Maximum number of HDLC frames to be read by this call. A count of zero means read until buffer full
- bTruncate
- Utilize whole buffer even if it means that the last frame is truncated and the remainder discarded
- pcoFrames
- Number of frames actually placed in buffer upon return
Comments
The data in the returned buffer is organized so that it always starts with a frame info struct,
OtxHdlcFrameInfoS, after which we have the HDLC data. The next OtxHdlcFrameInfoS follows shortly
after the last data byte. In order to find the next frame, all frames info structs (except the last
one) contain a field with the of the relative index of the start of the next frame. The index is
a byte index relative to the start of the current frame's info struct. I.e. if we have a pointer,
p1, to the beginning of the first info struct in the buffer we get a pointer to the second struct,
p2, by adding the byte offset found in the current info struct, i.e.:
OtxHdlcFrameInfoS p1 = buffer;
OtxHdlcFrameInfoS p2 = OTX_STRUCT_ADD_BYTE_OFFSET(OtxHdlcFrameInfoS, p1, p1->nOffsetNext);
This dispenses with the need to worry about the byte alignments of the OtxHdlcFrameInfoS structs.
The last frame's nOffsetNext field will be zero
See Also
OtxHdlcReceiverInit
OTX_LDEVICE_HDLC_RECEIVER
OtxHdlcSendData
OtxHdlcReadData
OtxHdlcFrameInfoS
OtxHdlcReceiverInit
OTX_RESULT OtxHdlcReceiverInit(IN OTX_HANDLE hHdlcDevice, IN OtxHdlcFrameFillTypeE eFrameFillType, IN OTX_INT32 nInterFrameTimeFill, IN OtxHdlcCrcModeE eCrcMode, IN OTX_BOOL bBitInversion, IN OTX_BOOL bExcludeRxCrc, IN OtxHdlcTxRateE eTxRate, IN OTX_BOOL bEventForEveryFrame)
Initializate the HDLC Receiver.
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to logical HDLC Filter Device
- eFrameFillType
- Fill character(s) to be send between HDLC frames. See also OtxHdlcFrameFillTypeE
- nInterFrameTimeFill
- Minimum No of interframe time characters between 2 HDLC frames (1=shared flags, 2=non-shared) Min value is 1. Max is 1024.
- eCrcMode
- Cyclic Redundancy Check (CRC) mode: 16-bit, 32-bit, or none. See also OtxHdlcCrcModeE
- bBitInversion
- If OTX_TRUE then all bits are inverted when transmitted and before received
- bExcludeRxCrc
- If OTX_TRUE the HDLC device will remove the CRC from the received frame, if OTX_FALSE the CRC is passed on to the receiving software
- eTxRate
- HDLC Transmission Rate for V.110 and X.30 modes. See also OtxHdlcTxRateE
- bEventForEveryFrame
- If OTX_TRUE the HDLC device will generate an event for every received frame, if OTX_FALSE then the HDLC device will only generate an event when one or more frames have been received since the last call to OtxHdlcReadData or OtxHdlcReadDataEx.
Comments
Start HDLC operation with by calling the function OtxDrvEnable and stop
it by calling the function OtxDrvDisable
See Also
OtxHdlcSenderInit
OTX_LDEVICE_HDLC_SENDER
OtxHdlcFrameFillTypeE
OtxHdlcCrcModeE
OtxHdlcTxRateE
OtxHdlcSendData
OTX_RESULT OtxHdlcSendData(IN OTX_HANDLE hHdlcDevice, IN OTX_UINT8 * sqData, IN OTX_UINT32 nDataLen, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Sends transparent data or HDLC frames on a configured HDLC pipe.
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Sender Device
- sqData
- Data to be sent
- nDataLen
- Length of the data to be send
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
See Also
OtxHdlcSS7SendData
OtxHdlcSenderFlush
OTX_RESULT OtxHdlcSenderFlush(IN OTX_HANDLE hHdlcDevice)
Flushes (empties) the queue of HDLC frames waiting to be transmitted (if any).
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Sender Device
See Also
OtxHdlcSendData
OtxHdlcSenderInit
OTX_RESULT OtxHdlcSenderInit(IN OTX_HANDLE hHdlcDevice, IN OtxHdlcFrameFillTypeE eFrameFillType, IN OTX_INT32 nInterFrameTimeFill, IN OtxHdlcCrcModeE eCrcMode, IN OTX_BOOL bBitInversion, IN OTX_BOOL bAppendTxCrc, IN OtxHdlcTxRateE eTxRate)
Initializate the HDLC Sender.
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to logical HDLC Filter Device
- eFrameFillType
- Fill character(s) to be send between HDLC frames. See also OtxHdlcFrameFillTypeE
- nInterFrameTimeFill
- Minimum No of interframe time characters between 2 HDLC frames (1=shared flags, 2=non-shared) Min value is 1. Max is 1024.
- eCrcMode
- Cyclic Redundancy Check (CRC) mode: 16-bit, 32-bit, or none. See also OtxHdlcCrcModeE
- bBitInversion
- If OTX_TRUE then all bits are inverted when transmitted and before received
- bAppendTxCrc
- If OTX_TRUE the HDLC device will append the CRC to the frame to be transmitted. If OTX_FALSE, the CRC is generated with software
- eTxRate
- HDLC Transmission Rate for V.110 and X.30 modes. See also OtxHdlcTxRateE
Comments
Start HDLC operation with by calling the function OtxDrvEnable and stop
it by calling the function OtxDrvDisable
See Also
OtxHdlcReceiverInit
OtxHdlcFrameFillTypeE
OtxHdlcCrcModeE
OtxHdlcTxRateE
OtxHdlcSS7GetFilter
OTX_RESULT OtxHdlcSS7GetFilter(IN OTX_HANDLE hHdlcDevice, OUT OTX_UINT32 * pFilterMask)
Returns the currently active filter mask for filtering
out FISUs, LSSUs, and/or MSUs
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Device
- pFilterMask
- Currently active Filter Mask (see HDLC_SS7_FILTER_XXXX Macros)
See Also
OtxHdlcSS7SetFilter
OtxHdlcSS7GetReceiveStatus
OTX_RESULT OtxHdlcSS7GetReceiveStatus(IN OTX_HANDLE hHdlcDevice, OUT OTX_UINT32 * pnFisuCount, OUT OTX_UINT32 * pnLssuCount, OUT OTX_UINT32 * pnMsuCount, OUT OtxHdlcSS7FisuS * pFisu)
Get the status and statistics of the incoming SS7 link on the
specified pipe
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Device
- pnFisuCount
- Number of FISUs received
- pnLssuCount
- Number of LSSUs received
- pnMsuCount
- Number of MSUs received
- pFisu
- The last received FISU on the pipe. See also OtxHdlcSS7FisuS
See Also
OtxHdlcSS7SetFilter
OtxHdlcSS7GetFilter
OtxHdlcSS7FisuS
OtxHdlcSS7SendData
OTX_RESULT OtxHdlcSS7SendData(IN OTX_HANDLE hHdlcDevice, IN OTX_UINT8 * psqData, IN OTX_UINT32 nDataLen, OtxHdlcSS7FisuS * pFisu, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Send a message (LSSU, MSU, or arbitrary data) on a SS7 pipe. After
the sending of the message has been completed, continues sending
the new FISU provided as a parameter to the function.
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the Logical HDLC Device
- psqData
- Data (MSU, LSSU, or other arbitrary frame) to be sent
- nDataLen
- Length of the data to be sent
- pFisu
- Next FISU to be sent after the data
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
See Also
OtxHdlcSendData
OtxHdlcSS7SetFilter
OTX_RESULT OtxHdlcSS7SetFilter(IN OTX_HANDLE hHdlcDevice, IN OTX_UINT32 filterMask)
Set the filter mask for the filtering out FISUs, LSSUs, and/or MSUs
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Pipe
- filterMask
- Filter Mask (see HDLC_SS7_FILTER_XXXX Macros)
See Also
OtxHdlcSS7GetFilter
OtxHdlcStartRepeatData
OTX_RESULT OtxHdlcStartRepeatData(IN OTX_HANDLE hHdlcDevice, IN OTX_UINT8 * psqData, IN OTX_UINT32 nDataLen, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Load an HDLC frame to be repeated for the HDLC pipe and begin transmission. The
Repeat Data is an HDLC frame which will be sent continuosly when there is no
other user data frames to be sent. User data can be sent with OtxHdlcSendData function
on which case the user data frame in interleaved between two consecutive Repeat Data
frames. After the sending of user data frame has been completed,
the HDLC controller will resume the sending of the Repeat Data frame.
This function can be used to continously send SS7 FISUs or LSSUs.
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Device
- psqData
- Repeat Data frame to be sent
- nDataLen
- Length of the data frame to be sent
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
See Also
OtxHdlcStopRepeatData
OtxHdlcStopRepeatData
OTX_RESULT OtxHdlcStopRepeatData(IN OTX_HANDLE hHdlcDevice)
Stop sending of Repeat Data frames on the specified HDLC pipe.
Defined in: OtxHdlc.h
Parameters
- hHdlcDevice
- Handle to the HDLC Device
See Also
OtxHdlcStartRepeatData
OtxJtagControl
OTX_RESULT OtxJtagControl(IN OTX_HANDLE hDevice, IN OtxJtagControlCmdE nCmd)
Control function for the JTAG TBC device.
Defined in: OtxJtag.h
Parameters
- hDevice
- Handle to the TBC Device
- nCmd
- Command to be executed
See Also
OtxJtagControlCmdE
OtxJtagScanDr
OTX_RESULT OtxJtagScanDr(IN OTX_HANDLE hDevice, IN OTX_INT32 nTms, IN char * pszDataIn, OUT char * pszDataOut)
Scan in the Data Register
Defined in: OtxJtag.h
Parameters
- hDevice
- Handle to the TBC Device
- nTms
- TMS chain number (0-7)
- pszDataIn
- Data string to be scanned in
- pszDataOut
- Data string scanned out
See Also
OtxJtagScanIr
OtxJtagScanIr
OTX_RESULT OtxJtagScanIr(IN OTX_HANDLE hDevice, IN OTX_INT32 nTms, IN char * pszCommand, OUT char * pszOutBuf)
Scan in the Instruction Register
Defined in: OtxJtag.h
Parameters
- hDevice
- Handle to the TBC Device
- nTms
- TMS chain number (0-7)
- pszCommand
- Instruction string of be scanned in
- pszOutBuf
- Instruction string scanned out
See Also
OtxJtagScanDr
OtxPotsGetLiMode
OTX_RESULT OtxPotsGetLiMode(IN OTX_HANDLE hDevice, OUT OtxPotsLiModeE * peLiMode)
Returns the Line Interface Mode of the device.
Defined in: OtxPots.h
Parameters
- hDevice
- A handle to a POTS line device.
- peLiMode
- Line Interface Device mode
See Also
OtxPotsSetLiMode
OtxPotsLiModeE
OtxPotsHookFlash
OTX_RESULT OtxPotsHookFlash(IN OTX_HANDLE hDevice, IN OTX_TIME nDurationMs, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
An atomic on-hook off-hook operation
Defined in: OtxPots.h
Parameters
- hDevice
- A handle to a POTS line device.
- nDurationMs
- Time to stay on-hook.
- nTaskRef
- Callers reference, see also OTX_TASK_REF.
- nWaitMaxMs
- Maximum time for operation to complete, see also OTX_TIME.
Comments
A non-operation if the device is not off-hook
See Also
OtxPotsOffHook
OtxPotsOnHook
OtxPotsOffHook
OTX_RESULT OtxPotsOffHook(IN OTX_HANDLE hDevice)
Make the POTS line device to go off-hook
Defined in: OtxPots.h
Parameters
- hDevice
- A handle to a POTS line device.
Comments
This function does not wait for a dial tone or similar. To wait for
dial tone an Audio Receiver must be associated with the Line Device.
This is done by installing the Audio module and connecting PotsLine
timeslots to Audio Receivers in the Audio Module by means of the Tss
module.
No operation if already off-hook.
See Also
OtxPotsOnHook
OtxPotsHookFlash
OtxPotsOnHook
OTX_RESULT OtxPotsOnHook(IN OTX_HANDLE hDevice)
Make the POTS line device go on-hook
Defined in: OtxPots.h
Parameters
- hDevice
- A handle to a POTS line device.
Comments
No operation if already off-hook.
See Also
OtxPotsOffHook
OtxPotsHookFlash
OtxPotsPulseDial
OTX_RESULT OtxPotsPulseDial(IN OTX_HANDLE hDevice, IN OTX_TIME nDisconnectMs, IN OTX_TIME nConnectMs, IN OTX_TIME nInterPulseGroupMs, IN OTX_UINT8 * sqPulseGroups, IN OTX_UINT32 coPulseGroups, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Dial a phone number in the form of legacy pulse groups.
Defined in: OtxPots.h
Parameters
- hDevice
- A handle to a POTS line device.
- nDisconnectMs
- Time to keep line on-hook for each pulse
- nConnectMs
- Time to keep line off-hook for each pulse
- nInterPulseGroupMs
- Time to keep line off-hook between each pulse group (i.e. digit)
- sqPulseGroups
- Sequence (i.e. array) of digits constituting one pulse group each
- coPulseGroups
- Count of digits (i.e. pulse groups)
- nTaskRef
- Callers reference, see also OTX_TASK_REF.
- nWaitMaxMs
- Maximum time for operation to complete, see also OTX_TIME.
Comments
A pulse group is realized as group of pulses. Example, in Sweden a
'0' is one pulse, and '1' are two pulses.
A pulse is a disconnection of the line, and it is therefore a
prerequisite that the line is off-hook prior to calling this
function.
See Also
OtxToneDtmfDial
OtxPotsSetLiMode
OTX_RESULT OtxPotsSetLiMode(IN OTX_HANDLE hDevice, IN OtxPotsLiModeE eLiMode)
Set the Line Interface Mode.
Defined in: OtxPots.h
Parameters
- hDevice
- A handle to a POTS line device.
- eLiMode
- Line Interface Device mode
Comments
This function is mainly used for testing/debugging. Not needed in
normal applications.
See Also
OtxPotsGetLiMode
OtxPotsLiModeE
OtxRawDataReadData
OTX_RESULT OtxRawDataReadData(IN OTX_HANDLE hRawDataDevice, OUT OTX_UINT8 * pDataBuf, IN OTX_UINT32 nBufLen, OUT OTX_UINT32 * pnFrameLen, OUT OTX_BOOL * pbFrameEnd)
Read data received by the Raw Data receiver
Defined in: OtxRaw.h
Return Value
Returns one of the following values:
- OTX_S_OK
- Raw Data Data was fetched
- OTX_S_FALSE
- No Raw Data Data available at this moment
- OTX_E_BUFFER_TO_SMALL
- The supplied user data buffer is too small to fit the received data
Parameters
- hRawDataDevice
- Handle to the Raw Data Receiver Device
- pDataBuf
- Data buffer for the received data
- nBufLen
- Length of the user data buffer
- pnFrameLen
- Length of the received raw data buffer (number of octets)
- pbFrameEnd
- Set to OTX_TRUE if a flag (as specified in OtxRawDataReceiverInit) followed the received data frame (valid if OTX_TRUE if OtxRawDataReceiverInit was initialized with bExtractFlag=OTX_TRUE)
See Also
OtxRawDataReceiverInit
OTX_LDEVICE_DATA_RAW_RECEIVER
OtxRawDataSendData
OtxRawDataReceiverInit
OTX_RESULT OtxRawDataReceiverInit(IN OTX_HANDLE hRawDataDevice, IN OtxDataFormatE eDataFormat, IN OTX_UINT8 flag, IN OTX_BOOL bExtractFlag, IN OTX_BOOL bLsbReceivedFirst)
Initializate the HDLC Receiver.
Defined in: OtxRaw.h
Parameters
- hRawDataDevice
- Handle to logical Raw Data Device
- eDataFormat
- Format of the received Raw Data.
Use OTX_DATA_FORMAT_UINT8 if no data conversion to be applied.
Use OTX_DATA_FORMAT_COMPAND8_A_LAW or OTX_DATA_FORMAT_COMPAND8_U_LAW
to expand the 8-bit values from the incoming data stream to 16-bit signed integer values
retrieved in the OtxRawDataReadData calls.
- flag
- Flag to be extracted if bExtractFlag is TRUE
- bExtractFlag
- if TRUE then received octets that equal the flag value are extracted from the receive data stream
- bLsbReceivedFirst
- Only applicable for subchannels (pipe capacity of 8, 16, or 32kpbs). If TRUE then the received octets are
formatted so that the least significant bits of the octet contains the the first received bits of
the subchannel. If FALSE then the received octets are
formatted so that the most significant bits of the octet contains the the first received bits of
the subchannel;
Comments
Start HDLC operation with by calling the function OtxDrvEnable and stop
it by calling the function OtxDrvDisable
Example
Using the Raw Data Receiver with a 16 kpbs (two bits) subchannel with
bLsbReceivedFirst==OTX_TRUE. When working with a 16 kbps subchannel the Raw Data Receiver will extract
2 bits from 4 consecutive frames and format the 4*2=8 bits into one octet
according to the figure below:
|
|7 6 5 4 3 2 1 0
|---+---+---+---+
|x x|x x|x x|x x| Octet received by the Raw Data Receiver
|---------------+
| ^ ^
| | |
| | +----- These two bits are the first two bits received
| | from the subchannel pipe
| |
| |
| +----- These two bits are the last two bits received
| from the subchannel pipe
See Also
OtxRawDataSenderInit
OtxRawDataReadData
OTX_LDEVICE_DATA_RAW_RECEIVER
OtxDataFormatE
OtxRawDataSendData
OTX_RESULT OtxRawDataSendData(IN OTX_HANDLE hRawDataDevice, IN OTX_UINT8 * sqData, IN OTX_UINT32 nDataLen, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Sends transparent data.
Defined in: OtxRaw.h
Parameters
- hRawDataDevice
- Handle to the Raw Data Sender Device
- sqData
- Data to be sent
- nDataLen
- Length of the data to be send
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
OtxRawDataSenderFlush
OTX_RESULT OtxRawDataSenderFlush(IN OTX_HANDLE hRawDataDevice)
Flushes (empties) the queue of raw data octets waiting to be transmitted (if any).
Defined in: OtxRaw.h
Parameters
- hRawDataDevice
- Handle to the Raw Data Sender Device
See Also
OtxRawDataSendData
OtxRawDataSenderInit
OTX_RESULT OtxRawDataSenderInit(IN OTX_HANDLE hRawDataDevice, IN OtxDataFormatE eDataFormat, IN OTX_UINT8 flag, IN OTX_BOOL bLsbSentFirst)
Initialize the Raw Data Sender.
Defined in: OtxRaw.h
Parameters
- hRawDataDevice
- Handle to logical Raw Data Device
- eDataFormat
- Format of the Raw Data supplied to this device.
Use OTX_DATA_FORMAT_UINT8 if no conversion to be applied.
Use OTX_DATA_FORMAT_COMPAND8_A_LAW or OTX_DATA_FORMAT_COMPAND8_U_LAW
to supply 16-bit signed integer values
in the calls to OtxRawDataSendData and let the device compress these value to 8-bit
A-law/U-law values before they are placed in the outgoing data stream.
- flag
- Value to send when there is no more Raw Data to send
- bLsbSentFirst
- Only applicable for subchannels (pipe capacity of 8, 16, or 32kpbs). Determines in which order bits
are extracted from the each octet before they are placed into a subchannel pipe.
If TRUE the device will send the least significant bits of the octet first,
and send the most significant bits last.
If FALSE the device will send the most significant bits of the octet first,
and send the least significant bits last.
Comments
Start Raw Data Sender operation with by calling the function OtxDrvEnable and stop
it by calling the function OtxDrvDisable
Example
Using the Raw Data Sender with a 16 kpbs (two bits) subchannel with
bLsbSentFirst==OTX_TRUE: When working with a 16 kbps subchannel the Raw Data Sender will extract
2 bits from each octet passed to the device and put these bits in 4 consecutive frames. The 2 bits are
extracted from the octet according to the figure below:
|
|7 6 5 4 3 2 1 0
|---+---+---+---+
|x x|x x|x x|x x| Octet passed to the Raw Data Sender
|---------------+
| ^ ^
| | |
| | +----- These two bits are sent first
| |
| |
| +----- These two bits are sent last
See Also
OtxRawDataReceiverInit
OtxRawDataSendData
OTX_LDEVICE_DATA_RAW_SENDER
OtxDataFormatE
OtxRawDataStartIdlePattern
OTX_RESULT OtxRawDataStartIdlePattern(IN OTX_HANDLE hRawDataDevice, IN OTX_UINT8 * sqData, IN OTX_UINT32 nDataLen)
Load an idle pattern for the Raw Data Sender devicie and begin transmission. The Idle Pattern
is a sequence of data which will be send continuosly always when there is no
actual user data to be send. User data can be send with OtxRawDataSendData function
on which case the user data frame in interleaved between two consequtive idle
patterns. After the sending of user data has been completed,
the Raw Data device will resume the sending of the idle pattern.
Defined in: OtxRaw.h
Parameters
- hRawDataDevice
- Handle to the HDLC Device
- sqData
- Data to be sent
- nDataLen
- Length of the data to be send
See Also
OtxRawDataStopIdlePattern
OtxRawDataStopIdlePattern
OTX_RESULT OtxRawDataStopIdlePattern(IN OTX_HANDLE hRawDataDevice)
Stop sending of idle pattern on the specified Raw Data Sender device.
Defined in: OtxRaw.h
Parameters
- hRawDataDevice
- Handle to the HDLC Device
See Also
OtxRawDataStartIdlePattern
OtxT1E1AlarmOff
OTX_RESULT OtxT1E1AlarmOff(IN OTX_HANDLE hLineDevice, IN OtxT1E1AlarmTypeE eAlarmType)
Clears an earlier initiated alarm.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- eAlarmType
- Alarm type to turned off
See Also
OtxT1E1AlarmTypeE
OtxT1E1AlarmOn
OTX_RESULT OtxT1E1AlarmOn(IN OTX_HANDLE hLineDevice, IN OtxT1E1AlarmTypeE eAlarmType)
Initiates a sending of an alarm or a series of alarms on the
T1/E1 physical layer (depending on alarmType)
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- eAlarmType
- Alarm type to be sent to the Remote End
See Also
OtxT1E1AlarmTypeE
OtxT1E1ForceResynch
OTX_RESULT OtxT1E1ForceResynch(IN OTX_HANDLE hLineDevice)
Initiates a resynchronization procedure of the pulse frame and the
CRC-multiframe starting directly after the old framing candidate.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
OtxT1E1GetLayer1Status
OTX_RESULT OtxT1E1GetLayer1Status(IN OTX_HANDLE hLineDevice, OUT OtxT1E1Layer1StatusE * eLayer1Status)
Read the physical line status of the T1/E1 Line Interface.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- eLayer1Status
- T1/E1 Physical Layer Line Status. Either OTX_T1E1_RES_L1_DOWN or OTX_T1E1_RES_L1_OK
OtxT1E1SetLiMode
OTX_RESULT OtxT1E1SetLiMode(IN OTX_HANDLE hLineDevice, IN OtxT1E1LiModeE eT1E1Mode)
Sets up the T1/E1 Line Interface transceiver in either T1 or E1 mode.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- eT1E1Mode
- T1 or E1 mode
See Also
OtxT1E1LiModeE
OtxT1E1SetLineLoop
OTX_RESULT OtxT1E1SetLineLoop(IN OTX_HANDLE hLineDevice, OtxT1E1LoopE eLoopType)
Loops the Line Interface. I.e. received E1/T1 data will be transmitted back
on the transmit pairs.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- eLoopType
- Loop Type: Line loop or Remote loop
See Also
OtxT1E1LoopE
OtxT1E1SetLineTermination
OTX_RESULT OtxT1E1SetLineTermination(IN OTX_HANDLE hLineDevice, IN OtxT1E1TermModeE eTermMode)
Sets the line termination for the E1/T1 span of the Line Interface.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- eTermMode
- Termination mode to match impedance of the cable connected to the Line Interface
OtxT1E1SetMonitorMode
OTX_RESULT OtxT1E1SetMonitorMode(IN OTX_HANDLE hLineDevice, IN OTX_BOOL bMonitorModeActive)
Increases the the receiver sensitivity to detect resistively
attenuated signals of -20 dB. Typically used for in a monitor configuration.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- bMonitorModeActive
- If OTX_TRUE the receiver sensitivity is increased to detect resistively attenuated signals of -20 dB
Comments
This function is only valid for OTX_DEVICE_LI_T1E1 devices hosted by a
OTX_DEVICE_QUAD_CODEC device.
OtxT1E1XmitPinControl
OTX_RESULT OtxT1E1XmitPinControl(IN OTX_HANDLE hLineDevice, IN OTX_BOOL bTxPinEnable)
Enable or Disable (tri-state) the Transmit pair of the Line Interface.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- bTxPinEnable
- OTX_TRUE enable, OTX_FALSE disables (tri-state) the Line Interface Transmit Pins
OtxT1GetChannelizedRobBitData
OTX_RESULT OtxT1GetChannelizedRobBitData(IN OTX_HANDLE hLogicDevice, IN OTX_INT32 nChannel, OUT OTX_UINT8 * pnABCDBits)
Get the current received bit rob signalling (ABCD bits) for a specific channel (1-24).
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the T1 Bit Rob Access Logical Device
- nChannel
- Channel (1 - 24)
- pnABCDBits
- The ABCD bits for this channel are returned in the lower nibble of this parameter (A=bit3,B=bit2,C=bit1,D=bit0)
Developer Notes
Only meaningful in T1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_TRUE
See Also
OtxT1SetChannelizedBitRobData
OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
OtxT1GetConfiguration
OTX_RESULT OtxT1GetConfiguration(IN OTX_HANDLE hLineDevice, OUT OtxT1ConfigOptionsS * pT1ConfigOptions)
Retrieves the current T1 Line Interface configuration data.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- pT1ConfigOptions
- T1 Configuration Data
See Also
OtxT1SetConfiguration
OtxE1SetConfiguration
OtxT1ConfigOptionsS
OtxT1GetRobBitData
OTX_RESULT OtxT1GetRobBitData(IN OTX_HANDLE hLogicDevice, OUT OtxT1RobBitDataS * pRobBitData)
Get the current received bit rob signalling information (all channels).
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the T1 BitRob Access Logical Device
- pRobBitData
- Bit-robbed signalling data received. See also OtxT1RobBitDataS
Developer Notes
Only meaningful in T1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_FALSE (which is the default)
See Also
OtxT1SetBitRobData
OtxT1BitRobDataS
OtxT1SetChannelizedRobBitData
OTX_RESULT OtxT1SetChannelizedRobBitData(IN OTX_HANDLE hLogicDevice, IN OTX_INT32 nChannel, IN OTX_UINT8 nABCDBits)
Set the Bit Rob Signalling information (ABCD bits) for a specific channel (1-24).
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the T1 S-Bit Access Logical Device
- nChannel
- Channel (1 - 24)
- nABCDBits
- The ABCD bits for this channel to be transmitted (A=bit3,B=bit2,C=bit1,D=bit0)
Comments
Start bit-rob signalling by calling function OtxDrvEnable
and end it with function OtxDrvDisable
Developer Notes
Only meaningful in T1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_TRUE
See Also
OtxT1GetChannelizedBitRobData
OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
OtxT1SetConfiguration
OTX_RESULT OtxT1SetConfiguration(IN OTX_HANDLE hLineDevice, IN OtxT1ConfigOptionsS * pT1ConfigOptions)
Configures the T1 Line Interface transceiver.
Defined in: OtxT1E1.h
Parameters
- hLineDevice
- Handle to the T1/E1 Transceiver Device
- pT1ConfigOptions
- T1 Configuration Options
See Also
OtxT1GetConfiguration
OtxE1SetConfiguration
OtxT1ConfigOptionsS
OtxT1SetDlBitData
OTX_RESULT OtxT1SetDlBitData(IN OTX_HANDLE hLogicDevice, IN OTX_UINT32 nDlBits)
Set the FS/DL-Bit data for the OTX_LDEVICE_T1_DL_BIT_ACCESS
device.
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the T1 DL-Bit Access Logical Device
- nDlBits
- DL-Data to be transmitted.
Mode OTX_T1_FF_F12:
nDlBits should contain 8 DL bits.
Bit0 is transmitted in frame 2 and Bit7 in frame 12.
Remaining bits should be zero.
Mode OTX_T1_FF_ESF:
nDlBits should contain 16 DL bits.
Bit0 is transmitted in frame 1 and Bit7 in frame 15.
Bit8 is transmitted in frame 17 and Bit15 in frame 23.
Remaining bits should be zero.
Mode OTX_T1_FF_F72:
nDlBits should contain 24 DL bits.
Bit0 is transmitted in frame 26 and Bit7 in frame 40
Bit8 is transmitted in frame 42 and Bit15 in frame 56.
Bit16 is transmitted in frame 58 and Bit23 in frame 72.
Remaining bits should be zero.
Comments
Start FS/DL bit access by calling function OtxDrvEnable
and end it with function OtxDrvDisable
Developer Notes
Only meaningful in T1 mode and
See Also
OTX_LDEVICE_T1_DL_BIT_ACCESS
OTX_T1E1_EC_DL_BITS_SENT
OTX_T1E1_EC_DL_BITS_RECEIVED
OtxT1SetRobBitData
OTX_RESULT OtxT1SetRobBitData(IN OTX_HANDLE hLogicDevice, IN OtxT1RobBitDataS * pRobBitData)
Set the Bit Rob Signalling information (all channels).
Defined in: OtxT1E1.h
Parameters
- hLogicDevice
- Handle to the T1 BitRob Access Logical Device
- pRobBitData
- Bit-robbed signalling data to be transmitted. See also OtxT1RobBitDataS
Comments
Start bit-rob signalling by calling function OtxDrvEnable
and end it with function OtxDrvDisable
Developer Notes
Only meaningful in T1 mode and
if the OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
is set to OTX_FALSE (which is the default)
See Also
OtxT1GetBitRobData
OtxT1BitRobDataS
OtxToneConstValGeneratorInit
OTX_RESULT OtxToneConstValGeneratorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_UINT16 nConstWord)
Set the a constant value (a byte or a word depending on the data format)
to be send on a Pipe.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Format of the Generated Data
- nConstWord
- Constant Value to be sent
Comments
Start generation by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_CONST_VAL_GENERATOR
OtxToneReadVal
OtxToneSineWaveGeneratorInit
OtxToneEffectsGeneratorInit
OtxToneDtmfGeneratorInit
OtxToneDtmfDiallerInit
OtxToneDtmfDial
OtxToneSequenceGeneratorInit
OtxToneDialtoneDetectorInit
OTX_RESULT OtxToneDialtoneDetectorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_INT32 nToneDuration)
Configures the Dial Tone Detector. A dial tone is detected when a
dial tone has been present for the time period specied with parameter
nToneDuration.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Monitored Data Stream
- nToneDuration
- Time (in 12.75ms increments) that dialtone must be present to be reported
Comments
Start detection by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DIALTONE_DETECTOR
OtxToneDialtoneDetectorStatus
OtxToneDtmfDetectorInit
OtxToneFskDetectorInit
OtxToneDialtoneDetectorStatus
OTX_RESULT OtxToneDialtoneDetectorStatus(IN OTX_HANDLE hDevice, OUT OTX_BOOL * bDialtone)
Reports whether the silence detector has detected silence or a tone
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- bDialtone
- OTX_TRUE if Dial Tone present, OTX_FALSE if not
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DIALTONE_DETECTOR
OtxToneDialtoneDetectorInit
OtxToneDtmfDetectorStatus
OtxToneSilenceDetectorStatus
OtxToneDtmfDetectorInit
OTX_RESULT OtxToneDtmfDetectorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_BOOL bStoreInQueue)
Configures the DTMF Detector.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Monitored Data Stream
- bStoreInQueue
- If OTX_TRUE, generate events and store the received digits
in the Event QueusFifo, If OTX_FALSE Don't store. Provide polling test
with function OtxToneDtmfDetectorStatus
Comments
The received digits can either be stored in the Event Queue and be
extracted with the appropriate Read function, or they can be stored internally
in which case only the most recently received digit can be retrieved with
a call to function OtxToneDtmfDetectorStatus
Start detection by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DTMF_DETECTOR
OtxToneDtmfDetectorStatus
OtxToneSilenceDetectorInit
OtxToneDialtoneDetectorInit
OtxToneFskDetectorInit
OtxToneDtmfDetectorStatus
OTX_RESULT OtxToneDtmfDetectorStatus(IN OTX_HANDLE hDevice, OUT char * cDtmfDigit)
This function allows the user to poll and check for the most recently
received DTMF tone. If a tone was received, the function returns OTX_S_OK and
the last digit in the cDtmfDigit parameter. If no tone was detected, the
function returns OTX_S_FALSE.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- cDtmfDigit
- Most recent DTMF digit detected (or \\0 if none)
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DTMF_DETECTOR
OtxToneDtmfDetectorInit
OtxToneSilenceDetectorStatus
OtxToneDtmfDial
OTX_RESULT OtxToneDtmfDial(IN OTX_HANDLE hDevice, IN OTX_UINT8 sqDigits[], IN OTX_INT32 nDigits, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Set the number to be dialled by the DTMF dialler.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- sqDigits[]
- Digits to send
- nDigits
- Number of digits to send
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
Comments
Start dialling by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DTMF_DIALER
OtxToneConstValGeneratorInit
OtxToneEffectsGeneratorInit
OtxToneSineWaveGeneratorInit
OtxToneDtmfGeneratorInit
OtxToneDtmfDiallerInit
OtxToneSequenceGeneratorInit
OtxToneDtmfDiallerInit
OTX_RESULT OtxToneDtmfDiallerInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_INT32 nOnTime, IN OTX_INT32 nOffTime, IN OtxToneGainE eToneGain)
Initialize the DTMF sequence generator. The time between tone can be specified
in the 'nSilence' parameter, and the duration of each tone is determined by the
valued of the 'nDuration' parameter.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Generated DTMF digits
- nOnTime
- Duration of DTMF tones in milliseconds, 12.75 milliseconds resolution (0 for infinity)
- nOffTime
- Silence time between of DTMF tones in increments of 12.75ms
- eToneGain
- Digital gain of generated tone
Comments
The set the number to be dialled, call function OtxToneDtmfDial
Start generation by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DTMF_DIALER
OtxToneConstValGeneratorInit
OtxToneEffectsGeneratorInit
OtxToneSineWaveGeneratorInit
OtxToneDtmfGeneratorInit
OtxToneDtmfDial
OtxToneSequenceGeneratorInit
OtxToneDtmfGeneratorInit
OTX_RESULT OtxToneDtmfGeneratorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_UINT8 nDigit, IN OtxToneGainE eToneGain)
Initialize the DTMF generator. The DTMF generator will generate
one DTMF tone infinitely.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Generated DTMF digit
- nDigit
- Digit to be generated
- eToneGain
- Digital gain of generated tone
Comments
Start generation by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_DTMF_GENERATOR
OtxToneConstValGeneratorInit
OtxToneEffectsGeneratorInit
OtxToneSineWaveGeneratorInit
OtxToneDtmfDiallerInit
OtxToneDtmfDial
OtxToneSequenceGeneratorInit
OtxToneEffectsGeneratorInit
OTX_RESULT OtxToneEffectsGeneratorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OtxToneEffectE eToneType, IN OtxToneGainE eToneGain)
Set the tone effects to be generated by tone generator data filter
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Generated Tone
- eToneType
- Type of tone effect to be generated on the channel
- eToneGain
- Digital gain of generated tone
Comments
Start generation by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_EFFECTS_GENERATOR
OtxToneSineWaveGeneratorInit
OtxToneConstValGeneratorInit
OtxToneDtmfGeneratorInit
OtxToneDtmfDiallerInit
OtxToneDtmfDial
OtxToneSequenceGeneratorInit
OtxToneFskDetectorInit
OTX_RESULT OtxToneFskDetectorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat)
Initialize the Logical FSK Detector Device
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Monitored Data Stream
Comments
Start detection by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_FSK_DETECTOR
OtxToneSilenceDetectorInit
OtxToneDtmfDetectorInit
OtxToneDialtoneDetectorInit
OtxToneMfDetectorInit
OTX_RESULT OtxToneMfDetectorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OtxMfToneE eMfToneType, IN OTX_BOOL bStoreInQueue, IN OTX_BOOL bReportPause, IN OTX_INT16 nMinDuration)
Configures the MF Detector.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Monitored Data Stream
- eMfToneType
- Type of MF Tone to detect (see OtxMfToneE)
- bStoreInQueue
- If OTX_TRUE, generate events and store the received digits
in the Event QueusFifo, If OTX_FALSE Don't store. Provide polling test
with function OtxToneMfDetectorStatus
- bReportPause
- If OTX_TRUE the detector generates an event when a tone ends
- nMinDuration
- Minimum duration required to validate a digit
Comments
The received digits can either be stored in the Event Queue and be
extracted with the appropriate Read function, or they can be stored internally
in which case only the most recently received digit can be retrieved with
a call to function OtxToneMfDetectorStatus
Start detection by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_MF_DETECTOR
OtxToneMfDetectorStatus
OtxToneMfDetectorStatus
OTX_RESULT OtxToneMfDetectorStatus(IN OTX_HANDLE hDevice, OUT char * nDigit)
This function allows the user to poll and check for the most recently
received MF tone. If a tone was received, the function returns
OTX_S_OK and the last digit in the cDigit parameter. If no tone was detected,
the function returns OTX_S_FALSE.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- nDigit
- Most recent digit detected (or -1 if none)
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_MF_DETECTOR
OtxToneMfDetectorInit
OtxToneMfDial
OTX_RESULT OtxToneMfDial(IN OTX_HANDLE hDevice, IN OTX_UINT8 sqDigits[], IN OTX_INT32 nDigits, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Dial a string of MF digits (tones).
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- sqDigits[]
- Digits/Tones (see OtxMfToneE) to send. The digits
can either be specified as a numeric value (0-15), or as
characters '0' through '9' and 'a' through 'f' (where 'a'
through 'f' represents 10 through 15). Please not that the R1
digits are in the range of 0-14, and the R2 digits are in the
range of 1-15.
- nDigits
- Number of digits/tones to send
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
Comments
This function is a non-blocking function. The event
OTX_MF_DIALER_EC_COMPLETE is generated when the device
has completed dialing the specified string of MF digits.
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_MF_DIALER
OtxToneMfDiallerInit
OtxToneMfDiallerInit
OTX_RESULT OtxToneMfDiallerInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OtxMfToneE eMfToneType, IN OTX_INT32 nOnTime, IN OTX_INT32 nOffTime, IN OtxToneGainE eToneGain)
Initialize the MF sequence generator. The time between tone can be specified
in the 'nSilence' parameter, and the duration of each tone is determined by the
valued of the 'nDuration' parameter.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Generated DTMF digits
- eMfToneType
- Type of MF Tone to detect (see OtxMfToneE)
- nOnTime
- Duration of MF tones in milliseconds, 12.75 milliseconds resolution (0 for infinity)
- nOffTime
- Silence time between of MF tones in milliseconds, 12.75 milliseconds resolution
- eToneGain
- Digital gain of generated tone
Comments
The set the number to be dialled, call function OtxToneMfDial
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_MF_DIALER
OtxToneMfGeneratorInit
OtxToneMfDial
OtxToneReadVal
OTX_RESULT OtxToneReadVal(IN OTX_HANDLE hDevice, OUT OTX_UINT16 * nVal)
Reads one value (a byte or a word depending on the data format)
from the specified Channel
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- nVal
- Value received on a Pipe
OtxToneSequenceGeneratorInit
OTX_RESULT OtxToneSequenceGeneratorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_TIME nOnTime, IN OTX_TIME nOffTime, IN OtxToneGainE eToneGain)
Initialize the Single Frequency sequence generator. The time between tones can
be specified in the 'nOffTime' parameter, and the duration of each tone is
determined by the valued of the 'nOntime' parameter.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Generated DTMF digits
- nOnTime
- Length of (tones) in milliseconds
- nOffTime
- Delay between (tones) in milliseconds
- eToneGain
- Digital gain of generated tone
Comments
Start generation by calling the function OtxToneFrequencySequencySend
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_SEQUENCE_GENERATOR
OtxToneFrequencySequencySend
OtxToneConstValGeneratorInit
OtxToneEffectsGeneratorInit
OtxToneSineWaveGeneratorInit
OtxToneDtmfGeneratorInit
OtxToneDtmfDiallerInit
OtxToneSequenceSend
OTX_RESULT OtxToneSequenceSend(IN OTX_HANDLE hDevice, IN OTX_INT32 sqFreqs[], IN OTX_INT32 nTones, IN OTX_TASK_REF nTaskRef, IN OTX_TIME nWaitMaxMs)
Send a frequency sequence.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- sqFreqs[]
- Frequencies to send in Hz
- nTones
- Number of Frequencies (tones) to send
- nTaskRef
- See OTX_TASK_REF
- nWaitMaxMs
- See OTX_TIME
Comments
Set the tone and pause lengths and the gain by callinf the
function OtxToneSequenceGeneratorInit
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_SEQUENCE_GENERATOR
OtxToneSequenceGeneratorInit
OtxToneDtmfDial
OtxToneSilenceDetectorInit
OTX_RESULT OtxToneSilenceDetectorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OTX_INT32 nSilenceDuration, IN OTX_INT32 nThreshold)
Configures the Silence Detector. A silence is detected when a
certain number of received samples have a combined energy level of
less than the specified threshold.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Monitored Data Stream
- nSilenceDuration
- Time (in 12.75ms increments) that silence must be present to be reported
- nThreshold
- Low thresHold stipulates very silent silence for silence to be reported;
Higher thresHold accepts noise in the silence and silence is still being reported
Typical value to be used: 4000
Comments
Start detection by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_SILENCE_DETECTOR
OtxToneSilenceDetectorStatus
OtxToneDtmfDetectorInit
OtxToneFskDetectorInit
OtxToneSilenceDetectorStatus
OTX_RESULT OtxToneSilenceDetectorStatus(IN OTX_HANDLE hDevice, OUT OTX_BOOL * bSilence)
Reports whether the silence detector has detected silence or a tone
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- bSilence
- OTX_TRUE if silence, OTX_FALSE if tone detected
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_SILENCE_DETECTOR
OtxToneSilenceDetectorInit
OtxToneDtmfDetectorStatus
OtxToneSineWaveGeneratorInit
OTX_RESULT OtxToneSineWaveGeneratorInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat, IN OtxToneSineWaveDataS sqSineWaveData[], IN OTX_INT32 coSineWaveData, IN OtxToneGainE eToneGain)
Set the custom parameters for each sinewave component to
be generated by the digital sinewave generator. A multiple
frequency sinewave tone be specified by using multiple
elements in the sqSineWaveData array.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Data Format of the Generated Sinewave
- sqSineWaveData[]
- Array of Sine Wave data (each element specifies one sine wave (frequency and gain))
- coSineWaveData
- Number of elements in sqSineWaveData (1-5)
- eToneGain
- Digital gain of generated tone
Comments
Start generation by calling the function OtxDrvEnable and stop
generation by calling the function OtxDrvDisable
See Also
OTX_LDEVICE_TONE_SINEWAVE_GENERATOR
OtxToneSineWaveDataS
OtxToneConstValGeneratorInit
OtxToneEffectsGeneratorInit
OtxToneDtmfGeneratorInit
OtxToneDtmfDiallerInit
OtxToneDtmfDial
OtxToneSequenceGeneratorInit
OtxToneValSamplerInit
OTX_RESULT OtxToneValSamplerInit(IN OTX_HANDLE hDevice, IN OtxDataFormatE eDataFormat)
Configure a sampler device that allows to read a sample of an incoming
64kbps pipe.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- eDataFormat
- Format of the sample
Comments
Call OtxToneValSamplerReadData to read the sample.
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_VAL_SAMPLER
OtxToneValSamplerReadData
OtxToneValSamplerReadData
OTX_RESULT OtxToneValSamplerReadData(IN OTX_HANDLE hDevice, OUT OTX_UINT16 * pSample)
Read an 8-bit sample from a an incoming 64kbps pipe.
Defined in: OtxTone.h
Parameters
- hDevice
- Handle to the Logical device
- pSample
- 8-bit sample from the pipe
See Also
OtxDrvCreateLogicalDevice
OTX_LDEVICE_TONE_VAL_SAMPLER
OtxToneValSamplerInit
OTX_ANY_PIPE_TIMESLOTS_MAX
const #define OTX_ANY_PIPE_TIMESLOTS_MAX;
Defined in: OtxDef.h
Maximum number of timeslots on either Local or a H.100 PCM highway.
OTX_DRIVER_DEVICE_HANDLE
const #define OTX_DRIVER_DEVICE_HANDLE;
Defined in: OtxType.h
Used to communicate with the static driver device. E.g. when reading the Revision attribute from the driver
OTX_H100_CT_BUS_MAX
const #define OTX_H100_CT_BUS_MAX;
Defined in: OtxDef.h
Maximum number of CT BUS devices
OTX_H100_HIGHWAYS_MAX
const #define OTX_H100_HIGHWAYS_MAX;
Defined in: OtxDef.h
Maximum number of PCM H100 highways.
OTX_H100_PIPE_TIMESLOTS_MAX
const #define OTX_H100_PIPE_TIMESLOTS_MAX;
Defined in: OtxDef.h
Maximum number of timeslots on a H.100 PCM highway.
A H.100 highway has a capacity of either
2.048 Mbit/s (32 64kbit/s timeslots),
4.096 Mbit/s (64 64kbit/s timeslots),
or 8.192 Mbits/s (128 64kbit/s timeslots).
OTX_INVALID_EVENT_VALUE
const #define OTX_INVALID_EVENT_VALUE;
Defined in: OtxType.h
Used to mark an invalid Event
OTX_INVALID_HANDLE_VALUE
const #define OTX_INVALID_HANDLE_VALUE;
Defined in: OtxType.h
Used to mark an invalid Handle to Physical and Logical devices. Used as type OTX_HANDLE
OTX_LIB_HANDLE
const #define OTX_LIB_HANDLE;
Defined in: OtxType.h
Used to communicate with the library. E.g. when reading the Revision attribute from the library
OTX_LOCAL_HIGHWAYS_MAX
const #define OTX_LOCAL_HIGHWAYS_MAX;
Defined in: OtxDef.h
Maximum number of PCM highways local to one NIC card.
OTX_LOCAL_PIPE_TIMESLOTS_MAX
const #define OTX_LOCAL_PIPE_TIMESLOTS_MAX;
Defined in: OtxDef.h
Maximum number of timeslots on a local PCM highway. A local highway is a 2.048 Mbit/s
highway and it has 32 64kbit/s time-slots.
OTX_PIPE_TIMESLOTS_MAX
const #define OTX_PIPE_TIMESLOTS_MAX;
Defined in: OtxDef.h
For backwards compatibility
OTX_TASK_ASYNC
const #define OTX_TASK_ASYNC;
Defined in: OtxType.h
Arbitrary don't care task ref value (avoid using as normal task ref)
OTX_TASK_NONE
const #define OTX_TASK_NONE;
Defined in: OtxType.h
Received in events that are unreleated to any requested task
Do not use as a task ref in API calls
OTX_TASK_SYNC
const #define OTX_TASK_SYNC;
Defined in: OtxType.h
The only task ref value that causes blocking
OTX_TIME_INFINITY
const #define OTX_TIME_INFINITY;
Defined in: OtxType.h
Used to mark time infinite time; E.g., timeout that will never expire. Used as type OTX_TIME
OTX_TOTAL_HIGHWAYS_MAX
const #define OTX_TOTAL_HIGHWAYS_MAX;
Defined in: OtxDef.h
Maximum number of total (Local + H.100) PCM highways.
OTX_ATTRIB_ID
Objects (devices, queues and pipes) can be queried about their
attributes. Every object type supports different attributes. Each
attribute has an ID and a value. The IDs are defined in the scope of
the particular object class and unique and meaningful only for the object
which defines them. See relevant header files for actual IDs for object
attributes.
Defined in: OtxType.h
OTX_BOOL
enum OTX_BOOL {
OTX_TRUE,
OTX_FALSE,
};
OTX Specific Boolean Data Type
Defined in: OtxType.h
Members
- OTX_TRUE
- True value
- OTX_FALSE
- False Value
OTX_CHAR
Character type (8 bits)
Defined in: OtxType.h
OTX_DATETIME
Absolute time in 100 nanosecond increments since midnight Jan 1, 1601, often used for time stamps.
Defined in: OtxType.h
OTX_EVENT
Handle to an Event, OTX_EVENT is treated differently from OTX_HANDLE.
Defined in: OtxType.h
OTX_FACILITY_UNKNOWN
An unspecified facility. When specified, the device type values OtxPhysicalDeviceTypeE
and OtxLogicalDeviceTypeE are used as facility codes by the different OTX device objects
Defined in: OtxErr.h
OTX_FAILURE
Generic test for success on any status value (negative numbers indicate failure).
Defined in: OtxErr.h
OTX_FP64
Floating point value, 64 bits precision
Defined in: OtxType.h
OTX_HANDLE
Standard handle to Physical, Logical, Pipe, and Event Queue Devices
Defined in: OtxType.h
Example
OTX_HANDLE bit values layed out as follows
Only positive values are valid handles.
Negative values are not valid. Especially, -1 denotes a invalid handle.
Bits 0-27: contain the handle value
Bit 28: Least significant bit of device type field
Bit 29: Intermediate bit of device type field
Bit 30: Most significant bit of device type field
Bit 31: Must be '0'
|3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
|1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|-+-+-+-+-+-+-+-+-----------------------------------------------+
|0|D|D|D| | | | | HANDLE |
|-+-+-+-+-+-+-+-+-----------------------------------------------+
DDD =
'001; then handle to a Physical Device
'010; then handle to a Logical Device
'011; then handle to a Event Queue Device
'100; then handle to a Pipe Device
'101; then handle to a Service
'110; then handle to a Call
OTX_HDLC_SS7_FILTER_FISU
Filters identical consecutive FISU frames (LI=0)
Defined in: OtxHdlcD.h
OTX_HDLC_SS7_FILTER_FISU_ALL
Filters all FISU frames (LI=0)
Defined in: OtxHdlcD.h
OTX_HDLC_SS7_FILTER_LONG_LSSU
Filters identical consecutive long LSSU frames (LI=2)
Defined in: OtxHdlcD.h
OTX_HDLC_SS7_FILTER_LONG_LSSU_ALL
Filters all long LSSU frames (LI=2)
Defined in: OtxHdlcD.h
OTX_HDLC_SS7_FILTER_MSU
Filters all MSU frames (LI>2)
Defined in: OtxHdlcD.h
OTX_HDLC_SS7_FILTER_SHORT_LSSU
Filters identical consecutive short LSSU frames (LI=1)
Defined in: OtxHdlcD.h
OTX_HDLC_SS7_FILTER_SHORT_LSSU_ALL
Filters all short LSSU frames (LI=1)
Defined in: OtxHdlcD.h
OTX_INT16
Signed integer, 16 bits
Defined in: OtxType.h
OTX_INT32
Signed integer, 32 bits
Defined in: OtxType.h
OTX_INT64
struct with 64 bits. Organized as a union to simplify access to the two 32 bit parts
The bits in the structs are organized so that it can be treated as a 64 bit int using compiler support
for calculations when available, see also OsaInt64.
Defined in: OtxType.h
OTX_INT8
Signed integer, 8 bits
Defined in: OtxType.h
OTX_ITERATOR
Opaque data type used to store position information when enumerating
(iterating over) e.g. attributes of a driver object. The value should never
be interpreted and the type should never be assumed to be of a certain size.
An OTX_ITERATOR can never be directly set to any value.
instead an OTX_ITERATOR is initialized using OtxDrvIteratorBegin,
and checked for if it has reached the end of the sequence with
OtxDrvIsIteratorEnd.
An iterator is first initialized, and then repeatedly passed to one of the
enumeration functions available. After an iterator has been initialized it can only
be used to iterate over the same sequence, i.e. it can only be passed
repeatedly to the same enum function with the same handle.
To reuse an iterator for anouther enumeration it must be reinitialized with a
call to OtxDrvIteratorBegin
The iterator could be checked for past-end iteration after each return from
an enumeration function to stop enumeration when the last item has been examined.
If a past-end iterator is passed to an enumeration function an error result code
is returned.
Defined in: OtxType.h
See Also
OtxDrvEnumDeviceType
OtxDrvEnumDevice
OtxDrvIteratorBegin
OtxDrvIsIteratorEnd
OTX_LDEVICE_VALUE
Convert logical device enum to a value which can be used as an index
Defined in: OtxDev.h
OTX_NOTIFY_CAUSE
Every notification read from an event queue holds
a code describing the reason for the notification
Defined in: OtxType.h
To Do
OTX_NOTIFY_CAUSE should maybe be an enum type
OTX_PVOID
Void Pointer type (32 bits)
Defined in: OtxType.h
OTX_RESULT
Standard result code returned by all the OTX API functions
Defined in: OtxType.h
OTX_RESULT_CODE
Return the result portion of the return code
Defined in: OtxErr.h
OTX_RESULT_FACILITY
Return the facility portion of the return code
Defined in: OtxErr.h
OTX_RESULT_SEVERITY
Return the severity portion of the return code
Defined in: OtxErr.h
OTX_SUCCESS
Generic test for success on any status value (non-negative numbers indicate success).
Defined in: OtxErr.h
OTX_TASK_REF
Used for function calls that can not always be completed without
waiting for device operations. If the task remains pending after the function has
returned (usually with OTX_E_PENDING) a notification will be received in the
associated event queue when the operation completes. The notification contains the
reference value that was given in the function call. Note that value '0' is special.
A pending task can be cancelled. by the user with OtxCancelTask.
Also the task is automatically cancelled at the end of the specified timeout period.
If not completed or manually cancelled before. Cancelled tasks result in notifications
queued in the associated event queue.
Note that a task is always associated with a device and a device is may be associated
with an event queue. The task is associated with its associated device's event queue.
Defined in: OtxType.h
- '0'
- Blocking call, tries to complete operation before given timeout. Operation
completed or cancelled when the function returns. No notifications ever queued in
the associated event queue.
- >='1'
- Non-blocking call. Function returns immediately either with the result
of the requested operation or with task left as pending, in which case a notification is
queued in the associated event queue when the operation completes. The notification
contains the associated task reference so the user knows which operation completed.
If the user do not care about keeping track of when particular tasks are completed,
it is possible to always pass a task reference with the same non-zero value.
OTX_TIME
Relative time in milliseconds, often used for timeouts.
Defined in: OtxType.h
OTX_UINT16
Unsigned integer, 16 bits
Defined in: OtxType.h
OTX_UINT32
Unsigned integer, 32 bits
Defined in: OtxType.h
OTX_UINT64
struct with 64 bits. Organized as a union to simplify access to the two 32 bit parts
The bits in the structs are organized so that it can be treated as a 64 bit unsigned int using compiler
support for calculations when available, see also OsaUint64.
Defined in: OtxType.h
OTX_UINT8
Unsigned integer, 8 bits
Defined in: OtxType.h
OtxAttribTypeE
enum OtxAttribTypeE {
OTX_ATTRIB_SZ,
OTX_ATTRIB_UINT32,
OTX_ATTRIB_BOOL,
OTX_ATTRIB_OCTETS,
};
Objects (devices, queues and pipes) can be queried about their
attributes. Every object type supports different attributes but the
values of each attribute is always one of these types.
Defined in: OtxType.h
Members
- OTX_ATTRIB_SZ
- The attribute value is of type 'zero terminated string', i.e. an array of 8 bit char.
- OTX_ATTRIB_UINT32
- The attribute is a 32 bit value.
- OTX_ATTRIB_BOOL
- The attribute is a 32 bit boolean value.
- OTX_ATTRIB_OCTETS
- The attribute is an arbitrary collection of octets.
OtxBoardDeviceAttributesE
enum OtxBoardDeviceAttributesE {
OTX_ATTR_BRD_SERIAL_NUMBER,
OTX_ATTR_BRD_BUILD,
OTX_ATTR_BRD_CIS_REV,
OTX_ATTR_BRD_CPLD_BUILD,
OTX_ATTR_BRD_BUS_ADDRESS,
OTX_ATTR_BRD_PCMCIA_SOCKET_NUMBER,
OTX_ATTR_BRD_PCI_DEVICE_NUMBER,
OTX_ATTR_BRD_PCI_FUNCTION_NUMBER,
OTX_ATTR_BRD_USER_STRING,
OTX_ATTR_BRD_PCMCIA_DONGLE_TYPE,
OTX_ATTR_BRD_DPC_MAX_TIMESLICE,
OTX_ATTR_BRD_PNP_ID,
OTX_ATTR_BRD_PCMCIA_AMP_DONGLE_0,
OTX_ATTR_BRD_PCMCIA_AMP_DONGLE_1,
OTX_ATTR_BRD_DEVICE_ID,
(OTX_ATTRIB_UINT32) Read only. The Subsystem ID is contain the revision of the board in the following 32-bit format:
MMMMMM,
};
Board Device Attributes
Defined in: OtxBrdD.h
Members
- OTX_ATTR_BRD_SERIAL_NUMBER
- (OTX_ATTRIB_SZ) Read only. Serial Number of the board (ALL boards)
- OTX_ATTR_BRD_BUILD
- (OTX_ATTRIB_SZ) Read only. Board population build (ALL boards)
- OTX_ATTR_BRD_CIS_REV
- (OTX_ATTRIB_SZ) Read only. CIS Revision Number (PCMCIA boards)
- OTX_ATTR_BRD_CPLD_BUILD
- (OTX_ATTRIB_SZ) Read only. FUTURE USE: CPLD Build (PCI boards)
- OTX_ATTR_BRD_BUS_ADDRESS
- (OTX_ATTRIB_UINT32) Read only. WDM driver only. Bus specific location address for the board
- OTX_ATTR_BRD_PCMCIA_SOCKET_NUMBER
- (OTX_ATTRIB_UINT32) Read only. PCMCIA Socket number (0,1). (PCMCIA boards)
- OTX_ATTR_BRD_PCI_DEVICE_NUMBER
- (OTX_ATTRIB_UINT32) Read only. Device number of the PCI board (PCI boards)
- OTX_ATTR_BRD_PCI_FUNCTION_NUMBER
- (OTX_ATTRIB_UINT32) Read only. Function number of the PCI board (PCI boards)
- OTX_ATTR_BRD_USER_STRING
- (OTX_ATTRIB_SZ) Read only. User supplied string stored persistently on the board
- OTX_ATTR_BRD_PCMCIA_DONGLE_TYPE
- (OTX_ATTRIB_SZ) Read/Write. For PCMCIA boards. Product number (HMA) of attached dongle.
The driver provides customized transmit pulse masks (E1/T1 span) for each dongle type.
Thor-2-PCMCIA board supports the following dongles:
HMA-1021-1-1.0-P1 (standard dongle, preliminary version)
HMA-1021-1-1.0 (standard dongle, released version)
HMA-1074-1-1.0-P1 (monitor dongle, preliminary version)
Thor-2-PCMCIA-Plus board supports the following dongles:
HMA-1076-2-1.0-P1 (Generator dongle, for battery powered equipment, preliminary version)
HMA-1079-2-1.0-P1 (Monitor dongle, for battery powered equipment, preliminary version)
HMA-1079-2-1.0 (Monitor dongle, for battery powered equipment, released version)
HMA-1079-2-1.1 (Monitor dongle, switchable 0dB and 20dB amplification, for battery powered equipment, released version)
- OTX_ATTR_BRD_DPC_MAX_TIMESLICE
- (OTX_ATTRIB_UINT32) Read/Write. Maximum allowed time (in milliseconds)
to spend serving device interrupts. If this time is execeeded the devices generating
interrupts at an abnormal rate will be disabled (to prevent system from hanging)
- OTX_ATTR_BRD_PNP_ID
- (OTX_ATTRIB_OCTETS) Read only. Wide-character string.
Plug-and-Play Id of this board.
Only applicable for the WDM driver.
- OTX_ATTR_BRD_PCMCIA_AMP_DONGLE_0
- (OTX_ATTRIB_BOOL) Read/Write. Dongle for Li#0. Only applicable for Thor-2-PCMCIA-Plus card equipped with the HMA-1079-2-1.1 dongle.
The 20dB amplifier is turned on by setting this attribute to OTX_TRUE.
- OTX_ATTR_BRD_PCMCIA_AMP_DONGLE_1
- (OTX_ATTRIB_BOOL) Read/Write. Dongle for Li#1. Only applicable for Thor-2-PCMCIA-Plus card equipped with the HMA-1079-2-1.1 dongle.
The 20dB amplifier is turned on by setting this attribute to OTX_TRUE.
- OTX_ATTR_BRD_DEVICE_ID
- (OTX_ATTRIB_UINT32) Read only. The Device ID is the first number of the Product number for the board.
E.g. the device number for Thor-2-PCI (HAA-1022-1) is 1022.
- (OTX_ATTRIB_UINT32) Read only. The Subsystem ID is contain the revision of the board in the following 32-bit format:
MMMMMM
- NNNN
OtxBrdClockModeE
enum OtxBrdClockModeE {
OTX_CLOCK_MODE_NA,
OTX_CLOCK_MODE_LOCAL,
OTX_CLOCK_MODE_H100,
OTX_CLOCK_MODE_H100_ETCF,
};
Board Clock Mode. Specifies a connection/disconnection to a H.100 bus, clocks to drive, etc.
Defined in: OtxBrdD.h
Members
- OTX_CLOCK_MODE_NA
- Board Clock Mode Not Applicable (used on an OTX boards
which are not equipped with an H.100 interface, e.g. Thor-2-PCMCIA)
- OTX_CLOCK_MODE_LOCAL
- Board is disconnected (tri-stated) from the H.100 bus
- OTX_CLOCK_MODE_H100
- Board is connected to the H.100 bus (MC-1 mode).
If this mode is used with any of the bus
driving clock sources (see OtxBrdClockSourceE), this mode
will drive the C8A, C8B, FRAMEA and FRAMEB H.100 clocks in
MC-1 mode (inverted 4.096 MHz).
- OTX_CLOCK_MODE_H100_ETCF
- Board is connected to the H.100 bus (ETCF mode).
If this mode is used with any of the bus
driving clock sources (see OtxBrdClockSourceE), this mode
will drive the C8A, C8B, FRAMEA and FRAMEB H.100 clocks in
ETCF mode (noninverted 8.192 MHz).
OtxBrdClockSourceE
enum OtxBrdClockSourceE {
OTX_CLOCK_SOURCE_INTERNAL,
OTX_CLOCK_SOURCE_CT_NETREF,
OTX_CLOCK_SOURCE_A_CLOCKS,
OTX_CLOCK_SOURCE_A_CLOCKS_ETCF,
OTX_CLOCK_SOURCE_B_CLOCKS,
OTX_CLOCK_SOURCE_B_CLOCKS_ETCF,
OTX_CLOCK_SOURCE_MVIP,
OTX_CLOCK_SOURCE_HMVIP,
OTX_CLOCK_SOURCE_SC_BUS_2_MHZ,
OTX_CLOCK_SOURCE_SC_BUS_4_8_MHZ,
OTX_CLOCK_SOURCE_LOCAL_0,
OTX_CLOCK_SOURCE_LOCAL_1,
OTX_CLOCK_SOURCE_LOCAL_2,
OTX_CLOCK_SOURCE_LOCAL_3,
OTX_CLOCK_SOURCE_LOCAL_4,
OTX_CLOCK_SOURCE_LOCAL_5,
OTX_CLOCK_SOURCE_LOCAL_6,
OTX_CLOCK_SOURCE_LOCAL_7,
};
Board Clock Source. The highways on the OTX boards are all synchronized to one
clock. This type (used as parameter to OtxBrdSetClocks) specified the source of
this clock.
Defined in: OtxBrdD.h
Members
- OTX_CLOCK_SOURCE_INTERNAL
- Board Clock Source Internal Oscillator.
The board operates as a clock master. The clock
source is the internal oscillator populated on
the OTX board.
This mode can drive clocks on the H.100 bus (please
refer to OtxBrdClockModeE).
- OTX_CLOCK_SOURCE_CT_NETREF
- Board Clock Source CT_NETREF
The board operates as a clock slave, and slaves
to the CT_NETREF clock provided on the H.100 bus.
- OTX_CLOCK_SOURCE_A_CLOCKS
- Board Clock Source A Clocks (C8A & FRAMEA);
MC-1 (inverted 4.096 MHz on C8A)
The board operates as a clock slave, and slaves
to the C8A & FRAMEA clocks provided on the H.100 bus.
- OTX_CLOCK_SOURCE_A_CLOCKS_ETCF
- Board Clock Source A Clocks (C8A & FRAMEA);
ETCF (noninverted 8.192 MHz on C8A)
The board operates as a clock slave, and slaves
to the C8A & FRAMEA clocks provided on the H.100 bus.
- OTX_CLOCK_SOURCE_B_CLOCKS
- Board Clock Source B Clocks (C8B & FRAMEB);
MC-1 (inverted 4.096 MHz on C8B)
The board operates as a clock slave, and slaves
to the C8B & FRAMEB clocks provided on the H.100 bus.
- OTX_CLOCK_SOURCE_B_CLOCKS_ETCF
- Board Clock Source B Clocks (C8B & FRAMEB);
ETCF (noninverted 8.192 MHz on C8B)
The board operates as a clock slave, and slaves
to the C8B & FRAMEB clocks provided on the H.100 bus.
- OTX_CLOCK_SOURCE_MVIP
- Board Clock Source MVIP
The board operates as a clock slave, and slaves
to the /C4 clock provided on the H.100 bus.
- OTX_CLOCK_SOURCE_HMVIP
- Board Clock Source H-MVIP
The board operates as a clock slave, and slaves
to the /C16 clock provided on the H.100 bus.
- OTX_CLOCK_SOURCE_SC_BUS_2_MHZ
- Board Clock Source SC-Bus 2 Mhz
The board operates as a clock slave, and slaves
to the SCLKX2# clock provided on the H.100 bus.
- OTX_CLOCK_SOURCE_SC_BUS_4_8_MHZ
- Board Clock Source SC-Bus 4 or 8 Mhz
The board operates as a clock slave, and slaves
to the SCLK clock provided on the H.100 bus.
- OTX_CLOCK_SOURCE_LOCAL_0
- Board Clock Source Local Reference 0.
The board will recover (slave to) the clock from
Local Reference 0.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_1
- Board Clock Source Local Reference 1.
The board will recover (slave to) the clock from
Local Reference 1.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_2
- Board Clock Source Local Reference 2.
The board will recover (slave to) the clock from
Local Reference 2.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_3
- Board Clock Source Local Reference 3.
The board will recover (slave to) the clock from
Local Reference 3.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_4
- Board Clock Source Local Reference 4.
The board will recover (slave to) the clock from
Local Reference 4.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_5
- Board Clock Source Local Reference 5.
The board will recover (slave to) the clock from
Local Reference 5.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_6
- Board Clock Source Local Reference 6.
The board will recover (slave to) the clock from
Local Reference 6.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
- OTX_CLOCK_SOURCE_LOCAL_7
- Board Clock Source Local Reference 7.
The board will recover (slave to) the clock from
Local Reference 7.
This mode can drive clocks on the H.100 bus
(please refer to OtxBrdClockModeE).
This mode is board specific. For further details please refer
to the documentation for each specific OTX board.
OtxBrdEventCodesE
enum OtxBrdEventCodesE {
OTX_BRD_EC_AUTO_DISABLED,
OTX_BRD_EC_INTR_FREQ_TOO_HIGH,
OTX_BRD_EC_INVALID_INTERRUPT,
};
Board Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxBrdD.h
Members
- OTX_BRD_EC_AUTO_DISABLED
- Fatal error has occurred. The board is automatically disabled.
- OTX_BRD_EC_INTR_FREQ_TOO_HIGH
- Interrupt frequency is too high. Data loss is imminent.
- OTX_BRD_EC_INVALID_INTERRUPT
- Invalid interrupt has occurred. Interrupt ignored.
OtxBrdResultCodesE
enum OtxBrdResultCodesE {
,
};
Board Result Codes
Defined in: OtxBrdD.h
OtxBriLayer1StatusE
enum OtxBriLayer1StatusE {
,
};
Layer 1 Status
Defined in: OtxBriD.h
See Also
OtxBriGetLineStatus
OtxBriLiModeE
enum OtxBriLiModeE {
OTX_BRI_MODE_TE,
OTX_BRI_MODE_LT_T,
OTX_BRI_MODE_LT_S,
OTX_BRI_MODE_NT,
OTX_BRI_MODE_MON,
OTX_BRI_MODE_NO,
};
BRI Line Interface Operating Modes
Defined in: OtxBriD.h
Members
- OTX_BRI_MODE_TE
- The line interface is configured to operate in Terminal mode (as a TE).
- OTX_BRI_MODE_LT_T
- The line interface is configured to operate in Trunk Line Termination mode.
- OTX_BRI_MODE_LT_S
- The line interface is configured to operate in Subscriber Line Termination mode.
- OTX_BRI_MODE_NT
- The line interface is configured to operate in Network Termination mode (as an NT).
- OTX_BRI_MODE_MON
- The line interface is configured to operate in Monitor mode.
- OTX_BRI_MODE_NO
- The line interface has not been configured
See Also
OtxCommonDeviceAttributesE
enum OtxCommonDeviceAttributesE {
OTX_ATTR_DEVICE_HOST,
OTX_ATTR_DEVICE_NIC,
OTX_ATTR_DEVICE_TYPE,
OTX_ATTR_DEVICE_NO,
OTX_ATTR_DEVICE_IRP_QUEUE_LIMIT,
OTX_ATTR_DEVICE_IRP_QUEUE_SIZE,
};
Common Device Attributes
Defined in: OtxType.h
Members
- OTX_ATTR_DEVICE_HOST
- (OTX_ATTRIB_UINT32) Read-only.
Handle of the host device
- OTX_ATTR_DEVICE_NIC
- (OTX_ATTRIB_UINT32) Read-only.
Handle of the NIC (board)
device hosting this device
- OTX_ATTR_DEVICE_TYPE
- (OTX_ATTRIB_UINT32) Read-only.
Type of the device (API Device Type)
- OTX_ATTR_DEVICE_NO
- (OTX_ATTRIB_UINT32) Read-only.
Device number
- OTX_ATTR_DEVICE_IRP_QUEUE_LIMIT
- (OTX_ATTRIB_UINT32) Read/Write.
Set (or get) the number of the IO Request Packets (IRP)
that the driver can buffer for this device. Setting this
attribute will also flush (clear) all pending IRPs for this device.
- OTX_ATTR_DEVICE_IRP_QUEUE_SIZE
- (OTX_ATTRIB_UINT32) Read-only.
Current number of IO Request Packets (IRP) in the IRP queue
for this device.
OtxCommonResultCodesE
enum OtxCommonResultCodesE {
OTX_RES_OK,
OTX_RES_FALSE,
OTX_RES_SIGNALLED,
OTX_RES_TIMEOUT,
OTX_RES_PENDING,
OTX_RES_UNEXPECTED,
OTX_RES_NOTIMPL,
OTX_RES_OUTOFMEMORY,
OTX_RES_OUT_OF_RESOURCES,
OTX_RES_INVALIDARG,
OTX_RES_POINTER,
OTX_RES_HANDLE,
OTX_RES_ABORT,
OTX_RES_FAIL,
OTX_RES_ACCESSDENIED,
OTX_RES_CALL_FAIL,
OTX_RES_NO_SUCH_OBJECT,
OTX_RES_NOT_SUPPORTED,
OTX_RES_REG_NO,
OTX_RES_BLOCKED,
OTX_RES_NO_INTERRUPT,
OTX_RES_WRONG_CONTEXT,
OTX_RES_NOT_INITIALIZED,
OTX_RES_ALREADY_EXISTS,
OTX_RES_IN_USE,
OTX_RES_BUSY,
OTX_RES_NOT_WORKING,
OTX_RES_NOT_CONNECTED,
OTX_RES_BUFFER_TO_SMALL,
};
Common Result Codes
Defined in: OtxErr.h
Members
- OTX_RES_OK
- Everything ok.
- OTX_RES_FALSE
- Everything ok, but result is logically false.
- OTX_RES_SIGNALLED
- An event was signalled.
- OTX_RES_TIMEOUT
- A wait operation timed out.
- OTX_RES_PENDING
- The data necessary to complete this operation is not yet available.
- OTX_RES_UNEXPECTED
- Unexpected situation.
- OTX_RES_NOTIMPL
- Not implemented.
- OTX_RES_OUTOFMEMORY
- Creation (new/malloc) failed, i.e. ran out of memory.
- OTX_RES_OUT_OF_RESOURCES
- Ran out of software resources.
- OTX_RES_INVALIDARG
- One or more arguments are invalid.
- OTX_RES_POINTER
- Invalid pointer.
- OTX_RES_HANDLE
- Invalid handle.
- OTX_RES_ABORT
- Operation aborted.
- OTX_RES_FAIL
- Unspecified error.
- OTX_RES_ACCESSDENIED
- General access denied error.
- OTX_RES_CALL_FAIL
- Call into other process failed (e.g. app to driver).
- OTX_RES_NO_SUCH_OBJECT
- Reference to non-existent object or type, etc..
- OTX_RES_NOT_SUPPORTED
- Functionality not supported by the object.
- OTX_RES_REG_NO
- Invalid Register Number.
- OTX_RES_BLOCKED
- Device Blocked.
- OTX_RES_NO_INTERRUPT
- No Interrupt.
- OTX_RES_WRONG_CONTEXT
- Call not allowed in the current context.
- OTX_RES_NOT_INITIALIZED
- Device Object not properly initialized.
- OTX_RES_ALREADY_EXISTS
- Attempted to create an already existing Device Object.
- OTX_RES_IN_USE
- The requested resource is already in use.
- OTX_RES_BUSY
- The requested resource or function cannot service the request at this time.
- OTX_RES_NOT_WORKING
- Device Object is not in working state.
- OTX_RES_NOT_CONNECTED
- Device Object is not connected.
- OTX_RES_BUFFER_TO_SMALL
- Buffer too small for return data.
Developer Notes
When result codes are added, remember to add the corresponding string
to OdDevice.
\\*---------------------------------------------------------------------------
The following macros are kept for backwards compatibility, new code uses OtxCommonResultCodesE instead
\\*-------------------------------
The following macros are kept for backwards compatibility, new code uses OtxCommonResultCodesE instead
\\*-------------------------------
OtxConstValGeneratorEventCodesE
enum OtxConstValGeneratorEventCodesE {
,
};
Const Val Generator Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxConstValGeneratorResultCodesE
enum OtxConstValGeneratorResultCodesE {
,
};
Const Val Generator Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxCtBusDataRateE
enum OtxCtBusDataRateE {
,
};
DSP Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxDrvD.h
OtxCtBusDeviceAttributesE
enum OtxCtBusDeviceAttributesE {
OTX_ATTR_CTBUS_OTX_TIMESLOTS_PER_HWY,
OTX_ATTR_CTBUS_OTX_HWYS,
};
CtBus Device Attributes
Defined in: OtxType.h
Members
- OTX_ATTR_CTBUS_OTX_TIMESLOTS_PER_HWY
- (OTX_ATTRIB_UINT32) Read/Write. Number of timeslot to reserve for OTX pipe connections
(on CT Bus Highway 0 through the value assigned to attribute OTX_ATTR_CTBUS_OTX_HWYS)
Default is OTX_PIPE_TIMESLOTS_MAX (all timeslot).
- OTX_ATTR_CTBUS_OTX_HWYS
- (OTX_ATTRIB_UINT32) Read/Write. Number of highways to reserve for OTX pipe connections.
Default is OTX_H100_HIGHWAYS_MAX (all highways).
OtxDataConverterEventCodesE
enum OtxDataConverterEventCodesE {
,
};
Data Converter Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxDataD.h
OtxDataFormatE
enum OtxDataFormatE {
OTX_DATA_FORMAT_UNKNOWN,
OTX_DATA_FORMAT_UINT8,
OTX_DATA_FORMAT_UINT16,
OTX_DATA_FORMAT_COMPAND8_A_LAW,
OTX_DATA_FORMAT_COMPAND8_U_LAW,
};
Format of the data transmitted on a Pipe
Defined in: OtxDataD.h
Members
- OTX_DATA_FORMAT_UNKNOWN
- Unknown or uninitialized data format
- OTX_DATA_FORMAT_UINT8
- Unsigned integer 8 bits. Raw data. Use for example HDLC transmission
- OTX_DATA_FORMAT_UINT16
- Unsigned integer 16-bits. Raw Data, each sample occupying 2 time-slots
- OTX_DATA_FORMAT_COMPAND8_A_LAW
- G.711 A-law (International) companded PCM data (8 bit samples)
- OTX_DATA_FORMAT_COMPAND8_U_LAW
- G.711 U-law (North American) companded PCM data (8 bit samples)
OtxDeviceInterfaceE
enum OtxDeviceInterfaceE {
,
};
Model of a Physical or Logical Devices. Every Physical or Logical
Device contain 4 interfaces: Data In, Data Out, Control, and Events.
Defined in: OtxType.h
Example
A Device can be characterized as follows
<nl>
<nl> Control
<nl> User Handle (OTX_HANDLE)
<nl> |
<nl> \\|/
<nl> +----------------------+
<nl> | |
<nl> | A Physical |
<nl> DATA IN ---> | or | ---> DATA OUT
<nl> | Logical Device |
<nl> | |
<nl> +----------------------+
<nl> |
<nl> \\|/
<nl> Events Out
<nl>
OtxDeviceStateE
enum OtxDeviceStateE {
OTX_DEVICE_STATE_UNKNOWN,
OTX_DEVICE_WORKING,
OTX_DEVICE_BLOCKED_AUTO,
OTX_DEVICE_BLOCKED_MANUAL,
};
State of a Hardware Device. Before a device has been configured, it's state
is UNKNOWN. After configuration and call to function OtxDrvEnable can
put the device into WORKING state. The driver can automatically block the
device and change the state to BLOCKED_AUTO in a case of non-working device.
The device can also be manually blocked with function OtxDrvDisable
Defined in: OtxType.h
Members
- OTX_DEVICE_STATE_UNKNOWN
- Device state is unknown, device has not been initialized
- OTX_DEVICE_WORKING
- Device is operational
- OTX_DEVICE_BLOCKED_AUTO
- Device is automatically blocked due to an error condition
- OTX_DEVICE_BLOCKED_MANUAL
- Device is manually blocked
OtxDeviceType
Generic type for either OtxPhysicalDeviceTypeE or OtxLogicalDeviceTypeE
Defined in: OtxType.h
OtxDriverDeviceAttributesE
enum OtxDriverDeviceAttributesE {
OTX_ATTR_DRV_REV_STR,
OTX_ATTR_DRV_REV_NUM,
OTX_ATTR_DRV_TIMESTAMP_TICK_FREQUENCY,
OTX_ATTR_DRV_TIMESTAMP_FROM_1601,
};
Driver Device Attributes
Defined in: OtxType.h
Members
- OTX_ATTR_DRV_REV_STR
- (OTX_ATTRIB_SZ) Read-only. The Driver revision as a string (E.g "1.0-P62" or "1.0" etc.)
- OTX_ATTR_DRV_REV_NUM
- (OTX_ATTRIB_OCTETS) Read-only. The Driver revision formatted as OtxVersionInfo
- OTX_ATTR_DRV_TIMESTAMP_TICK_FREQUENCY
- (OTX_ATTRIB_UINT32) Read-only. The timestamp tick frequency (in Hz)
- OTX_ATTR_DRV_TIMESTAMP_FROM_1601
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE (default) the timestamp is generated in 100ns increments from January 1, 1601. If set to OTX_FALSE, the timestamp is generated using the finest grained running count available in the system (QueryPerformanceCounter() in Win32).
OtxDspDeviceAttributesE
enum OtxDspDeviceAttributesE {
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_CURRENT_USAGE,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_MAX_USAGE,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_LOST_EVENTS,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_ADDR,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_SIZE,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_PROCESSING_ADDR,
OTX_ATTR_DSP_IOCTL_CODE_ADDR,
OTX_ATTR_DSP_IOCTL_DATA_MAX_SIZE,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_INCLUDE_HANDLE,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_INCLUDE_TASKREF,
OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_INCLUDE_TIMESTAMP,
OTX_ATTR_DSP_IOCTL_INCLUDE_HANDLE,
OTX_ATTR_DSP_IOCTL_INCLUDE_TASKREF,
OTX_ATTR_DSP_AUTO_DISABLE,
};
DSP Device Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxDspD.h
Members
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_CURRENT_USAGE
- (OTX_ATTRIB_UINT32) Read-only. Current number of words in use of the
HPI Notification Event Buffer
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_MAX_USAGE
- (OTX_ATTRIB_UINT32) Read-only. Maximum number of words in use of the
HPI Notification Event Buffer (since the application started)
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_LOST_EVENTS
- (OTX_ATTRIB_UINT32) Read-only. Number of the lost events (due to a
full HPI Notification Event Buffer)
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_ADDR
- (OTX_ATTRIB_UINT32) Read/Write. Start address of the HPI Notification
Event Buffer
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_SIZE
- (OTX_ATTRIB_UINT32) Read/Write. Size (in words) of the HPI Notification Event Buffer
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_PROCESSING_ADDR
- (OTX_ATTRIB_UINT32) Read/Write. Address of where the host driver will
write the address of its Notification Event Buffer Read Pointer (i.e. the
address of where it will read the next Notification Event from)
- OTX_ATTR_DSP_IOCTL_CODE_ADDR
- (OTX_ATTRIB_UINT32) Read/Write. Start address of the DSP IO Control packet.
- OTX_ATTR_DSP_IOCTL_DATA_MAX_SIZE
- (OTX_ATTRIB_UINT32) Read/Write. Maximum data length of the DSP IO Control
packet.
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_INCLUDE_HANDLE
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE the DSP code must include the
DSP Handle in the Notification Events
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_INCLUDE_TASKREF
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE the DSP code must include the
TaskRef in the Notification Events
- OTX_ATTR_DSP_NOTIFICATION_EVENT_BUF_INCLUDE_TIMESTAMP
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE the DSP code must include the
TimeStamp in the Notification Events
- OTX_ATTR_DSP_IOCTL_INCLUDE_HANDLE
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE the host driver will include the
DSP Handle in the DSP IO Control packet
- OTX_ATTR_DSP_IOCTL_INCLUDE_TASKREF
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE the host driver will include
the TaskRef in the DSP IO Control packet
- OTX_ATTR_DSP_AUTO_DISABLE
- (OTX_ATTRIB_BOOL) Read/Write. Default OTX_TRUE. If OTX_TRUE the driver
will automatically disable the device if the Notification Event buffer encounters
to many serious errors. A call to OtxDrvReset will reset the error counter for
serious errors.
OtxDspEventCodesE
enum OtxDspEventCodesE {
OTX_DSP_EC_RX_OVERFLOW,
OTX_DSP_EC_INTERNAL_ERROR,
OTX_DSP_EC_UNKNOWN_NOTIFY_CODE,
OTX_DSP_EC_INVALID_NOTIFY_EVENT_HANDLE,
OTX_DSP_EC_NOTIFY_EVENT_OVERFLOW,
OTX_DSP_EC_AUTO_DISABLED,
OTX_DSP_EC_NOTIFY_EVENT_FREQ_HIGH,
};
DSP Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxDspD.h
Members
- OTX_DSP_EC_RX_OVERFLOW
- OtxSpm1 Receive overflow
- OTX_DSP_EC_INTERNAL_ERROR
- OtxSpm1 Undefined Internal error
- OTX_DSP_EC_UNKNOWN_NOTIFY_CODE
- OtxSpm1 Error. Unknown notify code for System Notify Event Handle.
- OTX_DSP_EC_INVALID_NOTIFY_EVENT_HANDLE
- Invalid Notify Event Handle. Could not find a matching logical device for this handle.
- OTX_DSP_EC_NOTIFY_EVENT_OVERFLOW
- Event frequency too high. Driver cannot handle all these events.
- OTX_DSP_EC_AUTO_DISABLED
- Fatal error has occurred. The device is automatically disabled.
- OTX_DSP_EC_NOTIFY_EVENT_FREQ_HIGH
- Event frequency from the DSP is seriously high. Fatal errors are imminent.
OtxDspResultCodesE
enum OtxDspResultCodesE {
OTX_DSP_RES_DATA_TOO_LARGE,
OTX_DSP_RES_INVALID_CHANNEL,
OTX_DSP_RES_COMM_FAILURE,
OTX_DSP_RES_NO_KERNEL_RESPONSE,
OTX_DSP_RES_NO_FREE_LOGICAL_DEVICE,
};
DSP Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxDspD.h
Members
- OTX_DSP_RES_DATA_TOO_LARGE
- Data too large for the supplied buffer. Supply a larger buffer.
- OTX_DSP_RES_INVALID_CHANNEL
- Invalid channel
- OTX_DSP_RES_COMM_FAILURE
- Communication failure with the DSP
- OTX_DSP_RES_NO_KERNEL_RESPONSE
- No response from DSP Kernel
- OTX_DSP_RES_NO_FREE_LOGICAL_DEVICE
- No free logical device
OtxDspSpmE
enum OtxDspSpmE {
OTX_DSP_SPM_OTXSPM1,
OTX_DSP_SPM_OTXSPM2,
OTX_DSP_SPM_OTXHDLC,
OTX_DSP_SPM_OTXDTTX,
OTX_DSP_SPM_CAS,
};
Standard Program Modules (SPM)
Defined in: OtxDspD.h
Members
- OTX_DSP_SPM_OTXSPM1
- DSP Program OtxSpm1.out
- OTX_DSP_SPM_OTXSPM2
- DSP Program OtxSpm2.out
- OTX_DSP_SPM_OTXHDLC
- DSP Program OtxHdlc.out
- OTX_DSP_SPM_OTXDTTX
- DSP Program OtxDtTx.out
- OTX_DSP_SPM_CAS
- DSP Program OtxSpmCas.out
Comments
These DSP program modules can be loaded in the DSPs by
calling OtxDspRunSpm.
OtxSpm1 supports the following logical devices:
8 OTX_LDEVICE_HDLC_RECEIVER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_HDLC_SENDER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_DATA_RAW_RECEIVER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_DATA_RAW_SENDER (all 8 can not be enabled at one time)
16 OTX_LDEVICE_TONE_DTMF_DETECTOR
16 OTX_LDEVICE_TONE_DTMF_DIALER
16 OTX_LDEVICE_TONE_EFFECTS_GENERATOR
16 OTX_LDEVICE_DATA_CONVERTER
16 OTX_LDEVICE_TONE_CONST_VAL_GENERATOR
16 OTX_LDEVICE_TONE_VAL_SAMPLER
16 OTX_LDEVICE_TONE_SINEWAVE_GENERATOR
16 OTX_LDEVICE_TONE_SILENCE_DETECTOR
OtxSpm1 supports pipes of capacity 64kbps and 128kbps.
OtxSpm2 supports the following logical devices:
8 OTX_LDEVICE_HDLC_RECEIVER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_HDLC_SENDER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_DATA_RAW_RECEIVER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_DATA_RAW_SENDER (all 8 can not be enabled at one time)
8 OTX_LDEVICE_TONE_DTMF_DETECTOR
8 OTX_LDEVICE_TONE_DTMF_DIALER
8 OTX_LDEVICE_TONE_MF_DETECTOR
8 OTX_LDEVICE_TONE_MF_DIALER
8 OTX_LDEVICE_TONE_EFFECTS_GENERATOR
8 OTX_LDEVICE_DATA_CONVERTER
8 OTX_LDEVICE_TONE_CONST_VAL_GENERATOR
8 OTX_LDEVICE_TONE_VAL_SAMPLER
8 OTX_LDEVICE_TONE_SINEWAVE_GENERATOR
8 OTX_LDEVICE_TONE_SILENCE_DETECTOR
OtxSpm2 supports pipes of capacity 64kbps and 128kbps.
OtxHdlc supports the following logical devices:
32 OTX_LDEVICE_HDLC_RECEIVER (all 32 can not be enabled at one time)
32 OTX_LDEVICE_HDLC_SENDER (all 32 can not be enabled at one time)
32 OTX_LDEVICE_DATA_RAW_SENDER
32 OTX_LDEVICE_DATA_RAW_RECEIVER
32 OTX_LDEVICE_DATA_CONVERTER
OtxHdlc supports pipes of capacity 8kbps, 16kbps, 32kbps and n*64kbps.
OtxDtTx supports the following logical devices:
32 OTX_LDEVICE_TONE_DTMF_DIALER
32 OTX_LDEVICE_TONE_CONST_VAL_GENERATOR
32 OTX_LDEVICE_TONE_VAL_SAMPLER
OtxDtTx supports pipes of capacity 64kbps.
OtxCas is not implemented yet.
OtxDtmfDetectorAttributesE
enum OtxDtmfDetectorAttributesE {
OTX_ATTR_DTMF_DETECTOR_MIN_DURATION,
};
DTMF Detector Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_ATTR_DTMF_DETECTOR_MIN_DURATION
- (OTX_ATTRIB_UINT32) Read/Write.
Minimum required duration (in milliseconds) of a tone
before it is reported as a detected tone.
OtxDtmfDetectorEventCodesE
enum OtxDtmfDetectorEventCodesE {
OTX_DTMF_DETECTOR_EC_DIGIT,
OTX_DTMF_DETECTOR_EC_PAUSE,
};
DTMF Detector Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_DTMF_DETECTOR_EC_DIGIT
- DTMF tone detected
- OTX_DTMF_DETECTOR_EC_PAUSE
- Pause detected
OtxDtmfDetectorResultCodesE
enum OtxDtmfDetectorResultCodesE {
OTX_DTMF_DETECTOR_RES_NO_TONE,
OTX_DTMF_DETECTOR_RES_TONE,
};
DTMF Detector Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_DTMF_DETECTOR_RES_NO_TONE
- No DTMF tone presently detected
- OTX_DTMF_DETECTOR_RES_TONE
- DTMF tone is presently detected
OtxDtmfDialerEventCodesE
enum OtxDtmfDialerEventCodesE {
,
};
DTMF Dialer Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxDtmfDialerResultCodesE
enum OtxDtmfDialerResultCodesE {
OTX_DTMF_DIALER_RES_INVALID_DTMF_VALUE,
OTX_DTMF_DIALER_RES_BUSY,
};
DTMF Dialer Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_DTMF_DIALER_RES_INVALID_DTMF_VALUE
- Invalid DTMF value
- OTX_DTMF_DIALER_RES_BUSY
- DTMF Dialer is busy
OtxE1ABCDBitDataS structure
struct {
OTX_UINT32 chA;
OTX_UINT32 chB;
OTX_UINT32 chC;
OTX_UINT32 chD;
} OtxE1ABCDBitDataS;
Value for the E1 ABCD Bits to be transmitted (used in CAS). See
the OtxE1SetABCDBitData function.
Defined in: OtxT1E1D.h
Members
- chA
- Channel A
- chB
- Channel B
- chC
- Channel C
- chD
- Channel D
Comments
The A, B, C, and D channels are transmitted in time-slot 16 of a
E1 multframe.
The struct holds 30 bits for each channel. The least significant
bit (bit #0, zero counting) is transmitted first in channel 1,
frame 1. Bit #15 is then transmitted in channel 16, frame 1.
Next the bits #1 and #16 are transmitted in channels 2 and 17 in
frame 2. And Finally, the bits #14 and #29 are transmitted on
channels 15 and 30 in Frame 15.
These values will be repeated unless OtxE1SetABCDBitData is called
again with a different values in this struct.
Example
Multi-Frame structure for time-slot 16
+-----------+
| TS16 | TS16 | TS16 | TS16 | | TS16 |
| Frame 0 | Frame 1 | Frame 2 | Frame 3 | | Frame 15 |
... +-----------+
| 0000xyxx | abcd abcd | abcd abcd | abcd abcd | | abcd abcd |
| | ch1 ch16 | ch2 ch17 | ch3 ch18 | | ch15 ch30 |
+-----------+
Developer Notes
When B, C or D are not used, they should have values
B = 1, C = 0, D = 1.
It is recommended that the combination of 0000 of A, B, C, and D should
not be used for signalling purposes for channels 1 to 15.
See Also
OtxE1SetRobBitData
OtxE1GetRobBitData
OtxE1AisDetectModeE
enum OtxE1AisDetectModeE {
OTX_E1_AIS_ETS300233,
OTX_E1_AIS_G775,
};
Set the algorithm that is used to detect the Alarm Indication Signal (AIS).
Defined in: OtxT1E1D.h
Members
- OTX_E1_AIS_ETS300233
- AIS alarm will be detected according to ETS300233
- OTX_E1_AIS_G775
- AIS alarm will be detected according to CCITT G.775
Comments
According to ETX300233 an AIS alarm is detected if the incoming data stream
contains less than 3 zeros within 512 bits and a Loss of Frame Alignment is
indicated. The alarm will be cleared if 3 or more zeros will be detected within
512 bits or a Frame Alignment Signal (FAS) word is found. According to
ITU-T G.775 an AIS alarm is detected if the incoming data stream contains less
than 3 zeros within a doubleframe (512 bits) over a two doubleframe period (1024 bits).
The alarm will be cleared if 3 or more zeros are detected within a doubleframe
for two consecutive doubleframes.
See Also
OtxE1ConfigOptionsS
OtxE1SetConfiguration
OtxE1ConfigOptionsS structure
struct {
OtxE1LineCodeE eTxLineCode;
OtxE1LineCodeE eRxLineCode;
OtxE1FrameFormatE eTxFrameFormat;
OtxE1FrameFormatE eRxFrameFormat;
OtxE1AisDetectModeE eAisDetection;
OTX_UINT8 bfSiBits;
OTX_UINT8 bfSaBits;
OTX_BOOL bExtendedHDB3errorDetect;
OTX_BOOL bAutoRegainMultiframe;
OTX_BOOL bAutoResync;
OTX_BOOL bAutoCrcBitInversion;
OTX_BOOL bAutoRemoteAlarm;
OTX_UINT8 nLosSensitivity;
OTX_UINT8 nLosRecovery;
OTX_UINT16 nLineLength;
OTX_BOOL bHighTxPower;
OTX_BOOL bReceiveEqualizer;
} OtxE1ConfigOptionsS;
E1 Line Interface Configuration Options
Defined in: OtxT1E1D.h
Members
- eTxLineCode
- Line Coding in Transmit Direction
- eRxLineCode
- Line Coding in Receive Direction
- eTxFrameFormat
- Frame Format in Transmit Direction
- eRxFrameFormat
- Frame Format in Receive Direction
- eAisDetection
- Alarm Indication Signal (AIS) Detect mode
- bfSiBits
- Set the Si bits (spare bits for international use) transmitted in
the bit position 1 of time-slot 0 in doubleframe format and in bit the
1 of time-slot 0 in frames 13 and 15 in CRC-Multiframe format Use bit pattern
marking the corresponding bit position '1' the bit should be turned on.
Si Frame 13, Si Frame 15: 00, 01, 10, 11.
For Both bits on nSiBits = 0x3
- bfSaBits
- Set the Sa bits (spare bits for national use) transmitted in bit
positions 4-8 of time-slot 0 of every other (odd) frame. Use bit pattern
marking the corresponding bit position '1' the bit should be turned on.
Sa4, Sa5, Sa6, Sa7, Sa8: 00000, 00001, ..., 11111
For all Sa bits on nSaBits = 0x1F
- bExtendedHDB3errorDetect
- Selects the error detection mode. When turned off (OTX_FALSE),
only double violations are detected. When turned on (OTX_TRUE), 0000 strings
are detected as code violations as well.
- bAutoRegainMultiframe
- When enabled (OTX_TRUE), the receiver will search a new basic-
and multiframing if more than 914 CRC errors have been detected in a
time interval of one second.
- bAutoResync
- If OTX_TRUE, the Framer will automatically re-synchronize after
loss of synchronization. If OTX_FALSE the Framer will not synchronize
automatically but a re-synchronization procedure must be specifically
initiated by the software.
- bAutoCrcBitInversion
- If OTX_TRUE, all CRC bits of one outgoing sub-multiframe are
inverted in case a CRC error is flagged for the previous received
sub-multiframe.
- bAutoRemoteAlarm
- If OTX_TRUE, a Remote Alarm (Yellow Alarm) will be sent automatically
in the outgoing data stream when the receiver is out of synchronization.
The alarm will also be automatically removed when the receiver returns to
the synchronized state.
- nLosSensitivity
- Sets the sensitivity level for the Loss Of Signal (LOS) detection.
A LOS alarm will be generated if the incoming data stream has no
transitions during programmable number (N) of consecutive pulse periods.
The number given as the LOS Sensitivity value will be multiplied by 16 to
arrive to the pulse count number N. The time for detecting LOS will be
16 x LOS Sensitivity x Pulse Length (488ns).
The maximum time is 16 x 256 x 488ns = 2ms
Possible Values: 1-256
Example/Default Value:
LOS Sensitivity = 128 (16 x 128 x 488ns = 1ms)
- nLosRecovery
- Sets the sensitivity level for the Loss Of Signal (LOS) recovery.
A LOS alarm will be cleared if in the incoming data a number of Pulses (N)
occur during the time period set with the LOS Recovery parameter. The time
interval starts with the first detected pulse transition and a pulse
count is incremented with every received pulse. If the pulse number is
greater than the number N set with this parameter, the LOS alarm will be cleared.
Possible Values: 1-256
- nLineLength
- Specify the length of the T1 line cable in meters. This information
is used by the T1 transceivers to adjust the transmit pulse masks according
to the line length.
Possible Values: 0-65535
- bHighTxPower
- When OTX_TRUE the pulses on the line interface will be sent with
high power. If OTX_FALSE the pulses will be sent with low power.
- bReceiveEqualizer
- The Receive Equalizer can be used match the 18dB ITU-T I.431
requirement. When the Equalizer is turned off (OTX_FALSE), the Receiver is -10dB (short haul), when
turned on (OTX_TRUE), the Receiver is -36dB (long haul).
See Also
OtxE1SetConfiguration
OtxE1GetConfiguration
OtxE1FrameFormatE
enum OtxE1FrameFormatE {
OTX_E1_FF_DOUBLE_FRAME,
OTX_E1_FF_CRC4_MULTIFRAME,
OTX_E1_FF_CRC4_MULTIFRAME_G706,
};
E1 Frame Formats
Defined in: OtxT1E1D.h
Members
- OTX_E1_FF_DOUBLE_FRAME
- Double Frame
- OTX_E1_FF_CRC4_MULTIFRAME
- CRC4 Multiframe
- OTX_E1_FF_CRC4_MULTIFRAME_G706
- CRC4 Multiframe format with modified CRC4 Multiframe alignment
algorithm (Interworking according to CCITT G.706 Annex B)
See Also
OtxE1ConfigOptionsS
OtxE1SetConfiguration
OtxE1LineCodeE
enum OtxE1LineCodeE {
OTX_E1_LC_AMI,
OTX_E1_LC_HDB3,
};
E1 Line Codes
Defined in: OtxT1E1D.h
Members
- OTX_E1_LC_AMI
- Alternate Mark Inversion (AMI) Line Coding
- OTX_E1_LC_HDB3
- High Density Bipolar 3 (HDB3) Line Coding
See Also
OtxE1ConfigOptionsS
OtxE1SetConfiguration
OtxE1SaBitE
enum OtxE1SaBitE {
OTX_E1_SA4,
OTX_E1_SA5,
OTX_E1_SA6,
OTX_E1_SA7,
OTX_E1_SA8,
};
E1 time-slot 0 Sa bits (spare bits for national use)
Defined in: OtxT1E1D.h
Members
- OTX_E1_SA4
- Sa Bit number 4
- OTX_E1_SA5
- Sa Bit number 5
- OTX_E1_SA6
- Sa Bit number 6
- OTX_E1_SA7
- Sa Bit number 7
- OTX_E1_SA8
- Sa Bit number 8
See Also
OtxE1SetSaBit
OtxE1GetSaBit
OtxEffectsGeneratorEventCodesE
enum OtxEffectsGeneratorEventCodesE {
,
};
Effects Generator Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxEffectsGeneratorResultCodesE
enum OtxEffectsGeneratorResultCodesE {
,
};
Effects Generator Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxEventDataS structure
struct {
OTX_DATETIME m_nTimeStamp;
OSA_ENUM_DECL(OTX_UINT32) m_eDeviceType;
OTX_UINT32 m_nSourceId;
OTX_HANDLE m_hDevice;
OTX_NOTIFY_CAUSE m_nCode;
OTX_TASK_REF m_nRequestId;
OTX_UINT32 m_nParam;
} OtxEventDataS;
Data recorded for an event
Defined in: OtxType.h
Members
- m_nTimeStamp
- Absolute time the event was recorded
- m_eDeviceType
- Device Type with which the event is associated
- m_nSourceId
- Device Id of the device that the event is associated with (supplied by the user when the device for opened/created)
- m_hDevice
- Handle to the Device with which the event is associated
- m_nCode
- Device specific cause code indicating what happened. Each device types has it own set of event cause codes
- m_nRequestId
- If the message is for a previous user request this member holds the user assigned request ID
- m_nParam
- Optional parameter, usually number of bytes to be fetched
OtxEventQueueDeviceAttributesE
enum OtxEventQueueDeviceAttributesE {
OTX_ATTR_QUEUE_EVENT,
OTX_ATTR_QUEUE_SIZE,
OTX_ATTR_QUEUE_USAGE,
OTX_ATTR_QUEUE_MAX_USAGE,
OTX_ATTR_QUEUE_LOST_EVENTS,
};
Event Queue Device Attributes
Defined in: OtxType.h
Members
- OTX_ATTR_QUEUE_EVENT
- (OTX_ATTRIB_UINT32) Read-only. Handle to associated OTX_EVENT
- OTX_ATTR_QUEUE_SIZE
- (OTX_ATTRIB_UINT32) Read-only. Size of the event queue in number of events
- OTX_ATTR_QUEUE_USAGE
- (OTX_ATTRIB_UINT32) Read-only. Number of events currently in queue (less than size)
- OTX_ATTR_QUEUE_MAX_USAGE
- (OTX_ATTRIB_UINT32) Read-only. Max usage since this attribute last read
- OTX_ATTR_QUEUE_LOST_EVENTS
- (OTX_ATTRIB_UINT32) Read-only. Number of lost events since this attribute last read
OtxFskDetectorEventCodesE
enum OtxFskDetectorEventCodesE {
,
};
FSK Detector Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxFskDetectorResultCodesE
enum OtxFskDetectorResultCodesE {
,
};
FSK Detector Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxHdlcCrcModeE
enum OtxHdlcCrcModeE {
OTX_HDLC_CRC16,
OTX_HDLC_CRC32,
};
Cyclic Redundancy Check (CRC) mode
Defined in: OtxHdlcD.h
Members
- OTX_HDLC_CRC16
- 16-bit Cyclic Redundancy Check
- OTX_HDLC_CRC32
- 32-bit Cyclic Redundancy Check
OtxHdlcFrameEndCodeE
enum OtxHdlcFrameEndCodeE {
OTX_HDLC_FEC_OK,
OTX_HDLC_FEC_INVALID,
OTX_HDLC_FEC_OVERFLOW,
OTX_HDLC_FEC_BAD_CRC,
OTX_HDLC_FEC_ABORTED,
OTX_HDLC_FEC_TRUNCATED,
};
Frame End Code for HDLC frames. Specifies whether the frame is a good or
faulty frame.
If the frame is a faulty, then this bit mask provides further indications of the cause
of the fault.
The frame End Code of frame is retrieved by a call to OtxHdlcReadData.
Please note that the Frame End Code is a bit mask value. The Frame End code can
have multiple values, e.g. both OTX_HDLC_FEC_INVALID and
OTX_HDLC_FEC_ABORTED can be set.
Defined in: OtxHdlcD.h
Members
- OTX_HDLC_FEC_OK
- The frame is a good HDLC frame. No faults
- OTX_HDLC_FEC_INVALID
- Invalid frame; Either not a multiple of 8 bits, or a short frame
- OTX_HDLC_FEC_OVERFLOW
- Receive Data Overflow. The host is not servicing the receive FIFO fast enough.
- OTX_HDLC_FEC_BAD_CRC
- The frame failed the CRC check
- OTX_HDLC_FEC_ABORTED
- The received frame was aborted
- OTX_HDLC_FEC_TRUNCATED
- The received frame was too long for the buffer in the driver
See Also
OtxHdlcReadData
\\*---------------------------------------------------------------------------
OtxHdlcFrameFillTypeE
enum OtxHdlcFrameFillTypeE {
OTX_THOR_FFT_NONE,
OTX_HDLC_FFT_FLAGS,
OTX_HDLC_FFT_ALL_ONES,
};
Character(s) to be send between HDLC frames
Defined in: OtxHdlcD.h
Members
- OTX_THOR_FFT_NONE
- No frame fill between frames
- OTX_HDLC_FFT_FLAGS
- Send HDLC flags (0x7E) between the frames.
- OTX_HDLC_FFT_ALL_ONES
- Send all ones (0xFF) between frames.
OtxHdlcFrameInfoS structure
struct {
OTX_UINT32 cbOctets;
OTX_UINT32 nFrameSeq;
OSA_ENUM_DECL(OtxHdlcFrameEndCodeE) nFrameEndCode;
OTX_DATETIME nTimeStamp;
OTX_UINT32 nOffsetNext;
} OtxHdlcFrameInfoS;
HDLC info data structs preceeding HDLC data in buffer returned by HdlcReadDataEx.
Each frame in the buffer is preceeded with a struct of this type.
Defined in: OtxHdlcD.h
Members
- cbOctets
- Number of octets in the frame (not including this struct)
- nFrameSeq
- Sequence number of the received HDLC frame (matches the number in the event queue)
- nFrameEndCode
- Frame Status Code
- nTimeStamp
- Timestamp of the last received octet of the frame
- nOffsetNext
- Offset in bytes to the next OtxHdlcFrameInfoS realtive the start of this one or, 0 if this one is last
OtxHdlcReceiverAttributesE
enum OtxHdlcReceiverAttributesE {
OTX_ATTR_HDLC_RECEIVER_FIFO_SIZE_FRAMES,
OTX_ATTR_HDLC_RECEIVER_FIFO_SIZE_OCTETS,
OTX_ATTR_HDLC_RECEIVER_FIFO_PEAK_USAGE_OCTETS,
OTX_ATTR_HDLC_RECEIVER_FIFO_PEAK_USAGE_FRAMES,
OTX_ATTR_HDLC_RECEIVER_FIFO_CURRENT_USAGE_OCTETS,
OTX_ATTR_HDLC_RECEIVER_FIFO_CURRENT_USAGE_FRAMES,
OTX_ATTR_HDLC_RECEIVER_FIFO_LOST_FRAMES,
};
HDLC Receiver Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxHdlcD.h
Members
- OTX_ATTR_HDLC_RECEIVER_FIFO_SIZE_FRAMES
- (OTX_ATTRIB_UINT32) Size of allocated buffer for the HDLC Receiver Fifo (in number of frames)
- OTX_ATTR_HDLC_RECEIVER_FIFO_SIZE_OCTETS
- (OTX_ATTRIB_UINT32) Size of allocated buffer for the HDLC Receiver Fifo (in number of bytes)
- OTX_ATTR_HDLC_RECEIVER_FIFO_PEAK_USAGE_OCTETS
- (OTX_ATTRIB_UINT32) Peak usage (in octets) of the HDLC Receiver Fifo
- OTX_ATTR_HDLC_RECEIVER_FIFO_PEAK_USAGE_FRAMES
- (OTX_ATTRIB_UINT32) Peak usage (in frames) of the HDLC Receiver Fifo
- OTX_ATTR_HDLC_RECEIVER_FIFO_CURRENT_USAGE_OCTETS
- (OTX_ATTRIB_UINT32) Current usage (in octets) of the HDLC Receiver Fifo
- OTX_ATTR_HDLC_RECEIVER_FIFO_CURRENT_USAGE_FRAMES
- (OTX_ATTRIB_UINT32) Current usage (in frames) of the HDLC Receiver Fifo
- OTX_ATTR_HDLC_RECEIVER_FIFO_LOST_FRAMES
- (OTX_ATTRIB_UINT32) Number of lost frames (due to Fifo-full condition)
OtxHdlcReceiverEventCodesE
enum OtxHdlcReceiverEventCodesE {
OTX_HDLC_RECEIVER_EC_COMPLETE_FRAME,
OTX_HDLC_RECEIVER_EC_START_FRAME,
OTX_HDLC_RECEIVER_EC_PROTOCOL_ERROR,
OTX_HDLC_RECEIVER_EC_BUFFER_OVERRUN,
};
HDLC Receiver Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxHdlcD.h
Members
- OTX_HDLC_RECEIVER_EC_COMPLETE_FRAME
- HDLC Frame Received
- OTX_HDLC_RECEIVER_EC_START_FRAME
- HDLC Receive Frame Start
- OTX_HDLC_RECEIVER_EC_PROTOCOL_ERROR
- HDLC Protocol Error
- OTX_HDLC_RECEIVER_EC_BUFFER_OVERRUN
- HDLC Buffer Overrun. The host is too slow retrieving the data from the Hdlc Receiver
OtxHdlcReceiverResultCodesE
enum OtxHdlcReceiverResultCodesE {
,
};
HDLC Receiver Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxHdlcD.h
OtxHdlcSenderAttributesE
enum OtxHdlcSenderAttributesE {
OTX_ATTR_HDLC_SENDER_GENERATE_FRAME_SENT_EVENT,
};
HDLC Sender Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxHdlcD.h
Members
- OTX_ATTR_HDLC_SENDER_GENERATE_FRAME_SENT_EVENT
- (OTX_ATTRIB_BOOL) Read/Write. If OTX_TRUE the HDLC Sender will generate a OTX_HDLC_SENDER_EC_FRAME_SENT event after each transmitted frame
OtxHdlcSenderEventCodesE
enum OtxHdlcSenderEventCodesE {
OTX_HDLC_SENDER_EC_FRAME_SENT,
OTX_HDLC_SENDER_EC_BUF_UNDERRUN,
OTX_HDLC_SENDER_EC_FRAME_LOST,
};
HDLC Sender Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxHdlcD.h
Members
- OTX_HDLC_SENDER_EC_FRAME_SENT
- HDLC Frame completely sent
- OTX_HDLC_SENDER_EC_BUF_UNDERRUN
- Buffer Underrun. Host is to slow supplying HDLC data to the Hdlc Sender
- OTX_HDLC_SENDER_EC_FRAME_LOST
- Internal device error. Frame is lost.
OtxHdlcSenderResultCodesE
enum OtxHdlcSenderResultCodesE {
OTX_HDLC_SENDER_RES_TX_BUSY,
OTX_HDLC_SENDER_RES_FRAME_TOO_LONG,
};
HDLC Sender Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxHdlcD.h
Members
- OTX_HDLC_SENDER_RES_TX_BUSY
- Transmitter is busy sending a frame.
- OTX_HDLC_SENDER_RES_FRAME_TOO_LONG
- Frame too long.
OtxHdlcSS7FisuS structure
struct {
unsigned int bsn : 7;
unsigned int bib : 1;
unsigned int fsn : 7;
unsigned int fib : 1;
unsigned int li : 6;
unsigned int reserved : 2;
} OtxHdlcSS7FisuS;
Fill-In Signalling Unit (FISU), used in the OTX_HDLC_MODE_SS7 mode
Defined in: OtxHdlcD.h
Members
- 7
- Backward Sequence Number
- 1
- Backward Indicator Bit
- 7
- Forward Sequence Number
- 1
- Forward Indicator Bit
- 6
- Length Indication (0)
- 2
- Reserved
OtxHdlcSS7LongLssuS structure
struct {
unsigned int bsn : 7;
unsigned int bib : 1;
unsigned int fsn : 7;
unsigned int fib : 1;
unsigned int li : 6;
unsigned int reserved : 2;
unsigned int sf : 16;
} OtxHdlcSS7LongLssuS;
Long Link Status Signalling Unit (Long LSSU), used in the OTX_HDLC_MODE_SS7 mode
Defined in: OtxHdlcD.h
Members
- 7
- Backward Sequence Number
- 1
- Backward Indicator Bit
- 7
- Forward Sequence Number
- 1
- Forward Indicator Bit
- 6
- Length Indication (2)
- 2
- Reserved
- 16
- Status Field
OtxHdlcSS7ShortLssuS structure
struct {
unsigned int bsn : 7;
unsigned int bib : 1;
unsigned int fsn : 7;
unsigned int fib : 1;
unsigned int li : 6;
unsigned int reserved : 2;
unsigned int sf : 8;
} OtxHdlcSS7ShortLssuS;
Short Link Status Signalling Unit (Short LSSU), used in the OTX_HDLC_MODE_SS7 mode
Defined in: OtxHdlcD.h
Members
- 7
- Backward Sequence Number
- 1
- Backward Indicator Bit
- 7
- Forward Sequence Number
- 1
- Forward Indicator Bit
- 6
- Length Indication (1)
- 2
- Reserved
- 8
- Status Field
OtxHdlcTxRateE
enum OtxHdlcTxRateE {
OTX_HDLC_TR_NA,
OTX_HDLC_TR_600BPS,
OTX_HDLC_TR_1200BPS,
OTX_HDLC_TR_2400BPS,
OTX_HDLC_TR_4800BPS,
};
HDLC Transmission Rates for V.110 and X.30 modes
Defined in: OtxHdlcD.h
Members
- OTX_HDLC_TR_NA
- Transmission Rate Not Applicaple in this Pipe Mode
- OTX_HDLC_TR_600BPS
- Transmission Rate 600 bit/s
- OTX_HDLC_TR_1200BPS
- Transmission Rate 1200 bit/s
- OTX_HDLC_TR_2400BPS
- Transmission Rate 2400 bit/s
- OTX_HDLC_TR_4800BPS
- Transmission Rate 4800 bit/s
OtxJtagAttributesE
enum OtxJtagAttributesE {
OTX_ATTR_JTAG_HM2X20_HIGHZ,
};
JTAG Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxJtagD.h
Members
- OTX_ATTR_JTAG_HM2X20_HIGHZ
- (OTX_ATTRIB_BOOL) Read/Write.
If set to OTX_TRUE the Hermod-2x20 board is tri-stated from the Hermod-PCI board.
OtxJtagControlCmdE
enum OtxJtagControlCmdE {
OTX_JTAG_CLK_PULSE,
OTX_JTAG_SET_TCLK,
OTX_JTAG_SET_TMS,
OTX_JTAG_SET_TDI,
OTX_JTAG_UNSET_TCLK,
OTX_JTAG_UNSET_TMS,
OTX_JTAG_UNSET_TDI,
OTX_JTAG_READ_TDO,
OTX_JTAG_SET_TMS0,
OTX_JTAG_SET_TMS1,
OTX_JTAG_SET_TMS2,
OTX_JTAG_SET_TMS3,
OTX_JTAG_SET_TMS4,
OTX_JTAG_SET_TMS5,
OTX_JTAG_SET_TMS6,
OTX_JTAG_SET_TMS7,
OTX_JTAG_UNSET_TMS0,
OTX_JTAG_UNSET_TMS1,
OTX_JTAG_UNSET_TMS2,
OTX_JTAG_UNSET_TMS3,
OTX_JTAG_UNSET_TMS4,
OTX_JTAG_UNSET_TMS5,
OTX_JTAG_UNSET_TMS6,
OTX_JTAG_UNSET_TMS7,
};
Control commands to the TBC device.
Defined in: OtxJtagD.h
Members
- OTX_JTAG_CLK_PULSE
- Issue a positive pulse on TCLK
- OTX_JTAG_SET_TCLK
- Set TCLK high
- OTX_JTAG_SET_TMS
- Set TMS0 high; alias for OTX_JTAG_SET_TMS0
- OTX_JTAG_SET_TDI
- Set TDI high
- OTX_JTAG_UNSET_TCLK
- Set TCLK low
- OTX_JTAG_UNSET_TMS
- Set TMS0 low; alias for OTX_JTAG_UNSET_TMS0
- OTX_JTAG_UNSET_TDI
- Set TDI low.
- OTX_JTAG_READ_TDO
- Read bit value of TDO
- OTX_JTAG_SET_TMS0
- Set TMS0 high
- OTX_JTAG_SET_TMS1
- Set TMS1 high
- OTX_JTAG_SET_TMS2
- Set TMS2 high
- OTX_JTAG_SET_TMS3
- Set TMS3 high
- OTX_JTAG_SET_TMS4
- Set TMS4 high
- OTX_JTAG_SET_TMS5
- Set TMS5 high
- OTX_JTAG_SET_TMS6
- Set TMS6 high
- OTX_JTAG_SET_TMS7
- Set TMS7 high
- OTX_JTAG_UNSET_TMS0
- Set TMS0 low
- OTX_JTAG_UNSET_TMS1
- Set TMS1 low
- OTX_JTAG_UNSET_TMS2
- Set TMS2 low
- OTX_JTAG_UNSET_TMS3
- Set TMS3 low
- OTX_JTAG_UNSET_TMS4
- Set TMS4 low
- OTX_JTAG_UNSET_TMS5
- Set TMS5 low
- OTX_JTAG_UNSET_TMS6
- Set TMS6 low
- OTX_JTAG_UNSET_TMS7
- Set TMS7 low
See Also
OtxJtagControl
\\*---------------------------------------------------------------------------
OtxJtagEventCodesE
enum OtxJtagEventCodesE {
,
};
JTAG Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxJtagD.h
OtxJtagResultCodesE
enum OtxJtagResultCodesE {
,
};
JTAG Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxJtagD.h
OtxLibraryAttributesE
enum OtxLibraryAttributesE {
OTX_ATTR_LIB_REV_STR,
OTX_ATTR_LIB_REV_NUM,
OTX_ATTR_LIB_FILE_NAME,
OTX_ATTR_LIB_TYPE_STATIC,
};
Library Attributes (
Defined in: OtxType.h
Members
- OTX_ATTR_LIB_REV_STR
- (OTX_ATTRIB_SZ) Read-only. The Library revision as a string (E.g "1.0-P62" or "1.0" etc.)
- OTX_ATTR_LIB_REV_NUM
- (OTX_ATTRIB_OCTETS) Read-only. The Library revision formatted as OtxVersionInfo
- OTX_ATTR_LIB_FILE_NAME
- (OTX_ATTRIB_SZ) Read-only. File name of the library
- OTX_ATTR_LIB_TYPE_STATIC
- (OTX_ATTRIB_BOOL) Read-only. OTX_TRUE if the library is a static linked library, and OTX_FALSE if the library is a dynamic linked library
OtxLogicalDeviceTypeE
enum OtxLogicalDeviceTypeE {
OTX_LDEVICE_UNKNOWN,
OTX_LDEVICE_TONE_CONST_VAL_GENERATOR,
OTX_LDEVICE_TONE_EFFECTS_GENERATOR,
OTX_LDEVICE_TONE_SINEWAVE_GENERATOR,
OTX_LDEVICE_TONE_DTMF_GENERATOR,
OTX_LDEVICE_TONE_MF_GENERATOR,
OTX_LDEVICE_TONE_SEQUENCE_GENERATOR,
OTX_LDEVICE_TONE_DTMF_DIALER,
OTX_LDEVICE_TONE_MF_DIALER,
OTX_LDEVICE_TONE_SILENCE_DETECTOR,
OTX_LDEVICE_TONE_DIALTONE_DETECTOR,
OTX_LDEVICE_TONE_DTMF_DETECTOR,
OTX_LDEVICE_TONE_MF_DETECTOR,
OTX_LDEVICE_TONE_FSK_DETECTOR,
OTX_LDEVICE_DATA_RAW_SENDER,
OTX_LDEVICE_DATA_RAW_RECEIVER,
OTX_LDEVICE_DATA_CONVERTER,
OTX_LDEVICE_DATA_MIXER,
OTX_LDEVICE_DATA_CONFERENCE_BRIDGE,
OTX_LDEVICE_HDLC_SENDER,
OTX_LDEVICE_HDLC_RECEIVER,
OTX_LDEVICE_T1_ROB_BIT_ACCESS,
OTX_LDEVICE_E1_S_BIT_ACCESS,
OTX_LDEVICE_E1_ABCD_BIT_ACCESS,
OTX_LDEVICE_MODEM_V34_SENDER,
OTX_LDEVICE_MODEM_V34_RECEIVER,
OTX_LDEVICE_FAX_V17_SENDER,
OTX_LDEVICE_FAX_V17_RECEIVER,
OTX_LDEVICE_VOICE_ECHO_CANCELLER,
OTX_LDEVICE_VOICE_SILENCE_SUPRESSOR,
OTX_LDEVICE_VOICE_CODEC_G723_ENCODER,
OTX_LDEVICE_VOICE_CODEC_G723_DECODER,
OTX_LDEVICE_VOICE_CODEC_G729_ENCODER,
OTX_LDEVICE_VOICE_CODEC_G729_DECODER,
OTX_LDEVICE_USER_APPLICATION,
OTX_LDEVICE_TONE_VAL_SAMPLER,
OTX_LDEVICE_T1_DL_BIT_ACCESS,
};
Type of logical device
Defined in: OtxDev.h
Members
- OTX_LDEVICE_UNKNOWN
- Used in error conditions
- OTX_LDEVICE_TONE_CONST_VAL_GENERATOR
- Logical Device for Generating Constant Value (See OtxTone.h)
- OTX_LDEVICE_TONE_EFFECTS_GENERATOR
- Logical Device for Generating Tone Effects (See OtxTone.h)
- OTX_LDEVICE_TONE_SINEWAVE_GENERATOR
- Logical Device for Generating Sine Wave (See OtxTone.h)
- OTX_LDEVICE_TONE_DTMF_GENERATOR
- Logical Device for Generating single DTMF tone (See OtxTone.h)
- OTX_LDEVICE_TONE_MF_GENERATOR
- Logical Device for Generating single MF tone (See OtxTone.h)
- OTX_LDEVICE_TONE_SEQUENCE_GENERATOR
- Logical Device for Generating Sequence of Frequencies (See OtxTone.h)
- OTX_LDEVICE_TONE_DTMF_DIALER
- Logical Device for Generating Sequence of DTMF tones (See OtxTone.h)
- OTX_LDEVICE_TONE_MF_DIALER
- Logical Device for Generating Sequence of MF tones (See OtxTone.h)
- OTX_LDEVICE_TONE_SILENCE_DETECTOR
- Logical Device for Silence Detection (See OtxTone.h)
- OTX_LDEVICE_TONE_DIALTONE_DETECTOR
- Logical Device for Dial Tone Detection (See OtxTone.h)
- OTX_LDEVICE_TONE_DTMF_DETECTOR
- Logical Device for DTMF Detection (See OtxTone.h)
- OTX_LDEVICE_TONE_MF_DETECTOR
- Logical Device for MF Detection (See OtxTone.h)
- OTX_LDEVICE_TONE_FSK_DETECTOR
- Logical Device for FSK Detection (See OtxTone.h)
- OTX_LDEVICE_DATA_RAW_SENDER
- Logical Device for Sending Raw Data (See OtxData.h)
- OTX_LDEVICE_DATA_RAW_RECEIVER
- Logical Device for Receiving Raw Data (See OtxData.h)
- OTX_LDEVICE_DATA_CONVERTER
- Logical Device for Converting from one data format to another (See OtxData.h)
- OTX_LDEVICE_DATA_MIXER
- Multiplexes (mixes) N inputs to 1 output. Allows
device or pipe outputs to be connected together (See OtxData.h)
- OTX_LDEVICE_DATA_CONFERENCE_BRIDGE
- Conference Bridge. Conferences N inputs to N outputs. Allows
construction of multi-party conferences (See OtxData.h)
- OTX_LDEVICE_HDLC_SENDER
- Logical Device for sending HDLC Framing (See OtxHdlc.h)
- OTX_LDEVICE_HDLC_RECEIVER
- Logical Device for receiving HDLC Framing (See OtxHdlc.h)
- OTX_LDEVICE_T1_ROB_BIT_ACCESS
- Logical Device for T1 Bit Rob Signalling for CAS (See OtxT1E1.h)
- OTX_LDEVICE_E1_S_BIT_ACCESS
- Logical Device for E1 Sa and Si bits access (See OtxT1E1.h)
- OTX_LDEVICE_E1_ABCD_BIT_ACCESS
- Logical Device for E1 ABCD bit access for CAS (See OtxT1E1.h)
- OTX_LDEVICE_MODEM_V34_SENDER
- V.34bis Modem Emulation Sender
- OTX_LDEVICE_MODEM_V34_RECEIVER
- V.34bis Modem Emulation Receiver
- OTX_LDEVICE_FAX_V17_SENDER
- V.17 Fax Emulation Sender
- OTX_LDEVICE_FAX_V17_RECEIVER
- V.17 Fax Emulation Receiver
- OTX_LDEVICE_VOICE_ECHO_CANCELLER
- Voice Echo Canceller
- OTX_LDEVICE_VOICE_SILENCE_SUPRESSOR
- Voice Silence Canceller
- OTX_LDEVICE_VOICE_CODEC_G723_ENCODER
- G.723 Voice Codec Encoder
- OTX_LDEVICE_VOICE_CODEC_G723_DECODER
- G.723 Voice Codec Decoder
- OTX_LDEVICE_VOICE_CODEC_G729_ENCODER
- G.729 Voice Codec Encoder
- OTX_LDEVICE_VOICE_CODEC_G729_DECODER
- G.729 Voice Codec Decoder
- OTX_LDEVICE_USER_APPLICATION
- DSP User Application compliant with the OTX DSP Software Development Kit (SDK)
- OTX_LDEVICE_TONE_VAL_SAMPLER
- Logical Device for reading an 8-bit incoming sample (See OtxTone.h)
- OTX_LDEVICE_T1_DL_BIT_ACCESS
- Logical Device for FS/DL Bit Access (See OtxT1E1.h)
Comments
Note that logical devices are numbered so that they don't overlap
with physical devices, hence by using the number one can tell exactly
what kind of logical or physical device it is. Only the 16 lower bits
are used since we also support 16 bit platforms
OtxMfDetectorAttributesE
enum OtxMfDetectorAttributesE {
OTX_ATTR_MF_DETECTOR_VERBOSE_STATUS,
OTX_ATTR_MF_DETECTOR_THRESHOLD_TONE_ENERGY,
OTX_ATTR_MF_DETECTOR_THRESHOLD_PAUSE_ENERGY,
OTX_ATTR_MF_DETECTOR_THRESHOLD_TWIST,
OTX_ATTR_MF_DETECTOR_THRESHOLD_RELATIVE_3RD,
};
MF Detector Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_ATTR_MF_DETECTOR_VERBOSE_STATUS
- (OTX_ATTRIB_BOOL) Read/Write.
Used mainly for debugging. When set to OTX_TRUE
the MF detector will report energy level for tones
which failed to meet the criteria for a valid tone/digit
- OTX_ATTR_MF_DETECTOR_THRESHOLD_TONE_ENERGY
- (OTX_ATTRIB_UINT32) Read/Write.
Threshold for definite tone. The energy for two frequency components
if the tone must both be above this level to be considered as a candidate
for a detected MF tone.
- OTX_ATTR_MF_DETECTOR_THRESHOLD_PAUSE_ENERGY
- (OTX_ATTRIB_UINT32) Read/Write.
Threshold for pause energy. All frequency components must be below this
energy level to be considered as a pause (silence) between two tones.
- OTX_ATTR_MF_DETECTOR_THRESHOLD_TWIST
- (OTX_ATTRIB_UINT32) Read/Write.
Twist. MaxEnergy-2ndMaxEnergy must be less than this threshold to be considered
a candidate for a detected MF tone.
- OTX_ATTR_MF_DETECTOR_THRESHOLD_RELATIVE_3RD
- (OTX_ATTRIB_UINT32) Read/Write.
The energy level of the 2nd highest frequency component must be this must
larger than the the energy level of 3rd highest frequency component.
I.e. 2ndMaxEnergy-3rdMaxEnergy must be greater than this threshold.
OtxMfDetectorEventCodesE
enum OtxMfDetectorEventCodesE {
OTX_MF_DETECTOR_EC_DIGIT,
OTX_MF_DETECTOR_EC_PAUSE,
OTX_MF_DETECTOR_EC_VERBOSE_STATUS,
};
MF Detector Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_MF_DETECTOR_EC_DIGIT
- MF tone detected
- OTX_MF_DETECTOR_EC_PAUSE
- Pause detected
- OTX_MF_DETECTOR_EC_VERBOSE_STATUS
- Decode status
OtxMfDetectorResultCodesE
enum OtxMfDetectorResultCodesE {
OTX_MF_DETECTOR_RES_NO_TONE,
OTX_MF_DETECTOR_RES_TONE,
};
MF Detector Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_MF_DETECTOR_RES_NO_TONE
- No MF tone presently detected
- OTX_MF_DETECTOR_RES_TONE
- MF tone is presently detected
OtxMfDialerAttributesE
enum OtxMfDialerAttributesE {
,
};
MF Dialer Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxMfDialerEventCodesE
enum OtxMfDialerEventCodesE {
,
};
MF Dialer Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxMfDialerResultCodesE
enum OtxMfDialerResultCodesE {
OTX_MF_DIALER_RES_INVALID_MF_VALUE,
OTX_MF_DIALER_RES_BUSY,
};
MF Dialer Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
Members
- OTX_MF_DIALER_RES_INVALID_MF_VALUE
- Invalid MF value
- OTX_MF_DIALER_RES_BUSY
- MF Dialer is busy
OtxMfToneE
enum OtxMfToneE {
OTX_TONE_MF_UNKNOWN,
OTX_TONE_MF_R1,
OTX_TONE_MF_R2_FORWARD,
OTX_TONE_MF_R2_BACKWARD,
};
Type of MF (Multi Frequency) tone
Defined in: OtxToneD.h
Members
- OTX_TONE_MF_UNKNOWN
- Invalid value
- OTX_TONE_MF_R1
- CCITT R1 MF tones:
0: 0 (1300Hz/1500Hz)
1: 1 (700Hz/900Hz)
2: 2 (700Hz/1100Hz)
3: 3 (900Hz/1100Hz)
4: 4 (700Hz/1300Hz)
5: 5 (900Hz/1300Hz)
6: 6 (1100Hz/1300Hz)
7: 7 (700Hz/1500Hz)
8: 8 (900Hz/1500Hz)
9: 9 (1100Hz/1500Hz)
10: KP (1100Hz/1700Hz)
11: ST (1500Hz/1700Hz)
12: ST1 (900Hz/1700Hz)
13: ST2 (1300Hz/1700Hz)
14: ST3 (700Hz/1700Hz)
- OTX_TONE_MF_R2_FORWARD
- CCITT R2 MF Forward tones:
1: (1380Hz/1500Hz)
2: (1380Hz/1620Hz)
3: (1500Hz/1620Hz)
4: (1380Hz/1740Hz)
5: (1500Hz/1740Hz)
6: (1620Hz/1740Hz)
7: (1380Hz/1860Hz)
8: (1500Hz/1860Hz)
9: (1620Hz/1860Hz)
10: (1740Hz/1860Hz)
11: (1380Hz/1980Hz)
12: (1500Hz/1980Hz)
13: (1620Hz/1980Hz)
14: (1740Hz/1980Hz)
15: (1860Hz/1980Hz)
- OTX_TONE_MF_R2_BACKWARD
- CCITT R2 MF Backward tones:
1: (1140Hz/1020Hz)
2: (1140Hz/900Hz)
3: (1020Hz/900Hz)
4: (1140Hz/780Hz)
5: (1020Hz/780Hz)
6: (900Hz/780Hz)
7: (1140Hz/660Hz)
8: (1020Hz/660Hz)
9: (900Hz/660Hz)
10: (780Hz/660Hz)
11: (1140Hz/540Hz)
12: (1020Hz/540Hz)
13: (900Hz/540Hz)
14: (780Hz/540Hz)
15: (660Hz/540Hz)
OtxPhysicalDeviceTypeE
enum OtxPhysicalDeviceTypeE {
OTX_DEVICE_UNKNOWN,
OTX_DEVICE_DRIVER,
OTX_DEVICE_ARNI_PCI,
OTX_DEVICE_BALDER_PCMCIA,
OTX_DEVICE_BALDER_S_PCI,
OTX_DEVICE_BALDER_U_PCI,
OTX_DEVICE_THOR_PCI,
OTX_DEVICE_THOR_PCMCIA,
OTX_DEVICE_VIDAR_5x_PCI,
OTX_DEVICE_VIDAR_6x_PCI,
OTX_DEVICE_SIF_PCI,
OTX_DEVICE_VIDAR_5x_ASM,
OTX_DEVICE_VIDAR_6x_ASM,
OTX_DEVICE_MUNINN_ASM,
OTX_DEVICE_LI_CONTROLLER,
OTX_DEVICE_LI_POTS,
OTX_DEVICE_LI_SLIC,
OTX_DEVICE_LI_T1E1,
OTX_DEVICE_LI_BRI_S,
OTX_DEVICE_LI_BRI_U,
OTX_DEVICE_HDLC,
OTX_DEVICE_TSS,
OTX_DEVICE_DSP,
OTX_DEVICE_PROCESSOR,
OTX_DEVICE_PCI_BRIDGE,
OTX_DEVICE_CODEC,
OTX_DEVICE_EEPROM,
OTX_DEVICE_TBC,
OTX_DEVICE_QUAD_T1E1,
OTX_DEVICE_QUAD_CODEC,
OTX_DEVICE_THOR_8_PCI,
OTX_DEVICE_CT_BUS,
OTX_DEVICE_HERMOD_PCI,
};
Type of physical device
Defined in: OtxDev.h
Members
- OTX_DEVICE_UNKNOWN
- Used in error conditions
- OTX_DEVICE_DRIVER
- The root device that represents the driver
- OTX_DEVICE_ARNI_PCI
- Board Arni-16-PCI, Arni-32-PCI
- OTX_DEVICE_BALDER_PCMCIA
- Board Balder-2-PCMCIA
- OTX_DEVICE_BALDER_S_PCI
- Board Balder-8S-PCI
- OTX_DEVICE_BALDER_U_PCI
- Board Balder-8U-PCI
- OTX_DEVICE_THOR_PCI
- Board Thor-1-PCI, Thor-2-PCI
- OTX_DEVICE_THOR_PCMCIA
- Board Thor-1-PCMCIA, Thor-2-PCMCIA,
- OTX_DEVICE_VIDAR_5x_PCI
- Board Vidar-5x8-PCI, Vidar-5x12-PCI, Vidar-5x16-PCI,
- OTX_DEVICE_VIDAR_6x_PCI
- Board Vidar-6x3-PCI
- OTX_DEVICE_SIF_PCI
- Board Sif-16-PCI, Sif-32-PCI
- OTX_DEVICE_VIDAR_5x_ASM
- Board Vidar-5x2-ASM, Vidar-5x4-ASM
- OTX_DEVICE_VIDAR_6x_ASM
- Board Vidar-6x1-ASM
- OTX_DEVICE_MUNINN_ASM
- Board Muninn-128-ASM
- OTX_DEVICE_LI_CONTROLLER
- Line Interface Controller for a Line Interface Group
- OTX_DEVICE_LI_POTS
- Analog telephone Line Interface - Phone side (See OtxPots.h)
- OTX_DEVICE_LI_SLIC
- Analog telephone Line Interface - Line Interface Side
- OTX_DEVICE_LI_T1E1
- T1/E1 Line Interface (See OtxT1E1.h)
- OTX_DEVICE_LI_BRI_S
- ISDN BRI S/T Line Interface (See OtxBri.h)
- OTX_DEVICE_LI_BRI_U
- ISDN BRI U Line Interface (See OtxBri.h)
- OTX_DEVICE_HDLC
- HDLC controller (See OtxHdlc.h)
- OTX_DEVICE_TSS
- Time space switch (See OtxBrd.h)
- OTX_DEVICE_DSP
- Digital Signal processor (See OtxDsp.h)
- OTX_DEVICE_PROCESSOR
- General Purpose Micro Processor
- OTX_DEVICE_PCI_BRIDGE
- PCI Board Bridge
- OTX_DEVICE_CODEC
- A/D, D/A converter. Connected to a external handset and/or speaker
- OTX_DEVICE_EEPROM
- EEPROM. Storage of persistent data
- OTX_DEVICE_TBC
- JTAG Test Bus Controller
- OTX_DEVICE_QUAD_T1E1
- Quad E1/T1 Device (hosting 4 OTX_DEVICE_LI_T1E1 devices)
- OTX_DEVICE_QUAD_CODEC
- Quad Codec (hosting 4 OTX_DEVICE_CODEC devices)
- OTX_DEVICE_THOR_8_PCI
- Board Thor-4-PCI, Thor-8-PCI
- OTX_DEVICE_CT_BUS
- CT Bus (H.100 or H.110) representing the cable which connects a number of boards
- OTX_DEVICE_HERMOD_PCI
- Board Hermod-PCI (PCI JTAG Adapter)
OtxPipeCtBusConnectionS structure
struct {
OTX_UINT32 nCtBus;
OTX_UINT32 nHighway;
OTX_UINT32 nTimeslot;
} OtxPipeCtBusConnectionS;
Interconnect information for a pipe (used by the OTX_ATTR_PIPE_CT_BUS_CONNECTIONS)
Defined in: OtxType.h
Members
- nCtBus
- CT Bus number
- nHighway
- Highway number on the CT bus
- nTimeslot
- Timeslot on the highway on the CT bus
OtxPipeDeviceAttributesE
enum OtxPipeDeviceAttributesE {
OTX_ATTR_PIPE_CAPACITY,
OTX_ATTR_PIPE_IN_CONNECTED,
OTX_ATTR_PIPE_OUT_CONNECTED,
OTX_ATTR_PIPE_IN_HIGHWAY,
OTX_ATTR_PIPE_OUT_HIGHWAY,
OTX_ATTR_PIPE_IN_CONN_MASK,
OTX_ATTR_PIPE_OUT_CONN_MASK,
OTX_ATTR_PIPE_IN_CONN_MASK_SIZE,
OTX_ATTR_PIPE_OUT_CONN_MASK_SIZE,
OTX_ATTR_PIPE_CT_BUS_CONNECTIONS_COUNT,
OTX_ATTR_PIPE_CT_BUS_CONNECTIONS_DETAILS,
};
Pipe Device Attributes
Defined in: OtxType.h
Members
- OTX_ATTR_PIPE_CAPACITY
- (OTX_ATTRIB_UINT32) Read-only. Capacity of the pipe in kbps
- OTX_ATTR_PIPE_IN_CONNECTED
- (OTX_ATTRIB_UINT32) Read-only. Handle of device connected to input, or OTX_INVALID_HANDLE_VALUE
- OTX_ATTR_PIPE_OUT_CONNECTED
- (OTX_ATTRIB_UINT32) Read-only. Handle of device connected to output, or OTX_INVALID_HANDLE_VALUE
- OTX_ATTR_PIPE_IN_HIGHWAY
- (OTX_ATTRIB_UINT32) Read-only. Number of the highway used as input
- OTX_ATTR_PIPE_OUT_HIGHWAY
- (OTX_ATTRIB_UINT32) Read-only. Number of the highway used as output
- OTX_ATTR_PIPE_IN_CONN_MASK
- (OTX_ATTRIB_OCTETS) Read-only. Connection mask for input (how connected to "in" highway)
- OTX_ATTR_PIPE_OUT_CONN_MASK
- (OTX_ATTRIB_OCTETS) Read-only. Connection mask for output (how connected to "out" highway)
- OTX_ATTR_PIPE_IN_CONN_MASK_SIZE
- (OTX_ATTRIB_UINT32) Read-only. Size of the input connection mask (in octets)
- OTX_ATTR_PIPE_OUT_CONN_MASK_SIZE
- (OTX_ATTRIB_UINT32) Read-only. Size of the output connection mask (in octets)
- OTX_ATTR_PIPE_CT_BUS_CONNECTIONS_COUNT
- (OTX_ATTRIB_UINT32) Read-only. If this pipe connects to a CT bus, this attribute returns
the number timeslot connections that this pipe occupies on the CT bus. This attribute can be
used to determince the size of the array to supply to
the OTX_ATTR_PIPE_CT_BUS_CONNECTIONS_DETAILS attribute.
- OTX_ATTR_PIPE_CT_BUS_CONNECTIONS_DETAILS
- (OTX_ATTRIB_OCTETS) Read-only. If this pipe is connected to an H.100/H.110 CT bus and is the source in
such a connection, this attribute supplies the connection information for this pipe as an
an array of OtxPipeCtBusConnectionS. The size of the array to supply to this attribute
can be determined with the OTX_ATTR_PIPE_CT_BUS_CONNECTIONS_COUNT attribute.
OtxPipeEndE
enum OtxPipeEndE {
OTX_PIPE_INPUT,
OTX_PIPE_OUTPUT,
};
End of a Pipe. A pipe is always one-directional serial bit stream having
an input and an output. Two pipes are needed for a duplex connection between
two devices.
Defined in: OtxType.h
Members
- OTX_PIPE_INPUT
- Pipe end which receives data from a device
- OTX_PIPE_OUTPUT
- Pipe end that delivers data to a device
Example
A Pipe can be characterized as follows
<nl>
<nl> Control
<nl> User Handle (OTX_HANDLE)
<nl> |
<nl> \\|/
<nl> +----------------------------------------+
<nl> OTX_PIPE_INPUT ---> | Pipe with a set capacity | ---> OTX_PIPE_OUTPUT
<nl> +----------------------------------------+
<nl>
<nl>
OtxPotsCfgSetE
enum OtxPotsCfgSetE {
OTX_POTS_CFG_SET_USA,
OTX_POTS_CFG_SET_GERMANY,
OTX_POTS_CFG_SET_UK,
OTX_POTS_CFG_SET_FRANCE,
OTX_POTS_CFG_SET_AUSTRALIA,
OTX_POTS_CFG_SET_JAPAN,
};
POTS Country Specific configuration sets (to be used with the OTX_ATTR_POTS_CFG_SET attribute
Defined in: OtxPotsD.h
Members
- OTX_POTS_CFG_SET_USA
- POTS configuration for USA
- OTX_POTS_CFG_SET_GERMANY
- POTS configuration for Germany
- OTX_POTS_CFG_SET_UK
- POTS configuration for United Kingdom
- OTX_POTS_CFG_SET_FRANCE
- POTS configuration for France
- OTX_POTS_CFG_SET_AUSTRALIA
- POTS configuration for Australia
- OTX_POTS_CFG_SET_JAPAN
- POTS configuration for Japan
OtxPotsDeviceAttributesE
enum OtxPotsDeviceAttributesE {
OTX_ATTR_POTS_CID_ENABLED,
OTX_ATTR_POTS_CFG_SET,
};
POTS Device Attributes
Defined in: OtxPotsD.h
Members
- OTX_ATTR_POTS_CID_ENABLED
- (OTX_ATTRIB_BOOL) Read/Write. For OTX_DEVICE_LI_POTS devices. Caller ID detection enabled/disabled
- OTX_ATTR_POTS_CFG_SET
- (OTX_ATTRIB_UINT32) Read/Write. For OTX_DEVICE_LI_CONTROLLER devices. Set the Country Specific configuration set
for the POTS line interface (e.g. DC characteristics, ringer impedance, filter coefficients, etc).
Please see OtxPotsCfgSetE for supported configuration sets.
OtxPotsEventCodeE
enum OtxPotsEventCodeE {
OTX_POTS_WAKE_UP,
OTX_POTS_RING_SIGNAL_DETECTED,
OTX_POTS_RING_SIGNAL_ON,
OTX_POTS_RING_SIGNAL_OFF,
OTX_POTS_INVALID_RING_SIGNAL,
OTX_POTS_CALLER_ID,
};
POTS Notify Causes. Note: Inband signals (e.g. DTMF digits) must
be detected by a DSP module
Defined in: OtxPotsD.h
Members
- OTX_POTS_WAKE_UP
- Ring signal detected waking-up the line interface device, which had
been in power-down mode.
- OTX_POTS_RING_SIGNAL_DETECTED
- A ring signal has been detected on tip and ring
- OTX_POTS_RING_SIGNAL_ON
- Ring signal On-State detected (Off --> On transition)
- OTX_POTS_RING_SIGNAL_OFF
- Ring signal Off-state detected (On --> Off transition)
- OTX_POTS_INVALID_RING_SIGNAL
- An invalid ring signal detected
- OTX_POTS_CALLER_ID
- Caller-ID (FSK octets) have been received
OtxPotsLiModeE
enum OtxPotsLiModeE {
OTX_POTS_MODE_SLEEP,
OTX_POTS_MODE_RINGING,
OTX_POTS_MODE_CONVERSATION,
OTX_POTS_MODE_PULSE_DIALING,
};
Operating modes of the POTS Line Interface (Li) Devices.
Defined in: OtxPotsD.h
Members
- OTX_POTS_MODE_SLEEP
- The line interface device is sleeping
- OTX_POTS_MODE_RINGING
- The line interface device is ringing
- OTX_POTS_MODE_CONVERSATION
- The line interface device is in conversation mode
- OTX_POTS_MODE_PULSE_DIALING
- The line interface device is pulse dialing
Developer Notes
The values are meaningful
See Also
OtxPotsSetLiMode
OtxPotsGetLiMode
OtxRawDataReceiverAttributesE
enum OtxRawDataReceiverAttributesE {
OTX_ATTR_RAWDATA_RECEIVER_FIFO_SIZE,
OTX_ATTR_RAWDATA_RECEIVER_GENERATE_DATA_EVENTS,
};
RAWDATA Receiver Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxRawD.h
Members
- OTX_ATTR_RAWDATA_RECEIVER_FIFO_SIZE
- (OTX_ATTRIB_UINT32) Read/Write.
Fifo buffer size factor for received data in the driver.
The fifo is allocated when the logical device is connected.
Total fifo size in bytes is this attribute * (PipeCapacity/64).
- OTX_ATTR_RAWDATA_RECEIVER_GENERATE_DATA_EVENTS
- (OTX_ATTRIB_BOOL) Read/Write.
If set to OTX_TRUE (default) the device will generate
a OTX_RAWDATA_RECEIVER_EC_DATA_AVAILABLE
event when the device has any data to be retrieved from the driver buffer.
By setting this attribute to OTX_FALSE, such events
are not generated, thus reducing event handling processing overhead.
OtxRawDataReceiverEventCodesE
enum OtxRawDataReceiverEventCodesE {
OTX_RAWDATA_RECEIVER_EC_DATA_AVAILABLE,
OTX_RAWDATA_RECEIVER_EC_BUFFER_OVERRUN,
OTX_RAWDATA_RECEIVER_EC_FLAG_FILTERING,
};
RAWDATA Receiver Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxRawD.h
Members
- OTX_RAWDATA_RECEIVER_EC_DATA_AVAILABLE
- Raw Data is available to
be retrieved by calling OtxRawDataReadData
Generation of this event can be blocked by setting the
OTX_ATTR_RAWDATA_RECEIVER_GENERATE_DATA_EVENTS
attribute to OTX_FALSE.
- OTX_RAWDATA_RECEIVER_EC_BUFFER_OVERRUN
- Raw Data Buffer Overrun.
The host is too slow retrieving
the data from the Raw Data Receiver
- OTX_RAWDATA_RECEIVER_EC_FLAG_FILTERING
- Flag encountered. Filtering
incoming data
OtxRawDataReceiverResultCodesE
enum OtxRawDataReceiverResultCodesE {
,
};
RAWDATA Receiver Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxRawD.h
OtxRawDataSenderAttributesE
enum OtxRawDataSenderAttributesE {
OTX_ATTR_RAWDATA_SENDER_GENERATE_DATA_EVENTS,
};
RAWDATA Sender Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxRawD.h
Members
- OTX_ATTR_RAWDATA_SENDER_GENERATE_DATA_EVENTS
- (OTX_ATTRIB_BOOL) Read/Write.
If set to OTX_TRUE (default) the device will generate
a OTX_RAWDATA_SENDER_EC_BUF_DEPLETED
event when the device is ready
to accept more data. By setting this attribute to OTX_FALSE, such events
are not generated, thus reducing event handling processing overhead.
OtxRawDataSenderEventCodesE
enum OtxRawDataSenderEventCodesE {
OTX_RAWDATA_SENDER_EC_COMPLETED,
OTX_RAWDATA_SENDER_EC_BUF_DEPLETED,
};
Raw Data Sender Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxRawD.h
Members
- OTX_RAWDATA_SENDER_EC_COMPLETED
- Raw Data completely sent.
Now sending flags.
- OTX_RAWDATA_SENDER_EC_BUF_DEPLETED
- Raw Data Sender buffer depleted.
Now accepting more data.
Generation of this event can be blocked by setting the
OTX_ATTR_RAWDATA_SENDER_GENERATE_DATA_EVENTS
attribute to OTX_FALSE.
OtxRawDataSenderResultCodesE
enum OtxRawDataSenderResultCodesE {
OTX_RAWDATA_SENDER_RES_TX_BUSY,
OTX_RAWDATA_SENDER_RES_FRAME_TOO_LONG,
};
Raw Data Sender Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxRawD.h
Members
- OTX_RAWDATA_SENDER_RES_TX_BUSY
- Transmitter queue is full.
- OTX_RAWDATA_SENDER_RES_FRAME_TOO_LONG
- Data buffer too long.
OtxSilenceDetectorEventCodesE
enum OtxSilenceDetectorEventCodesE {
,
};
Silence Detector Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxSilenceDetectorResultCodesE
enum OtxSilenceDetectorResultCodesE {
,
};
Silence Detector Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxSineWaveGeneratorEventCodesE
enum OtxSineWaveGeneratorEventCodesE {
,
};
SineWave Generator Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxSineWaveGeneratorResultCodesE
enum OtxSineWaveGeneratorResultCodesE {
,
};
SineWave Generator Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxT1ConfigOptionsS structure
struct {
OtxT1SignallingModeE eSignalingMode;
OtxT1LineCodeE eTxLineCode;
OtxT1LineCodeE eRxLineCode;
OtxT1FrameFormatE eFrameFormat;
OTX_BOOL bCRC6Enable;
OtxT1RemoteAlarmFormatE eTxRemoteAlarmFormat;
OtxT1RemoteAlarmFormatE eRxRemoteAlarmFormat;
OTX_BOOL bAutoResync;
OTX_BOOL bAutoCrcBitInversion;
OtxT1LfaSensitivityE eLfaSensitivity;
OTX_BOOL bAutoRemoteAlarm;
OTX_UINT8 nLosSensitivity;
OTX_UINT8 nLosRecovery;
OTX_UINT16 nLineLength;
OTX_BOOL bHighTxPower;
OTX_BOOL bReceiveEqualizer;
OTX_UINT32 bfClearChannels;
} OtxT1ConfigOptionsS;
T1 Line Interface Configuration Options
Defined in: OtxT1E1D.h
Members
- eSignalingMode
- Signalling Mode. See type OtxT1SignallingModeE
- eTxLineCode
- Line Coding in Transmit Direction. See type OtxT1LineCodeE
- eRxLineCode
- Line Coding in Receive Direction
- eFrameFormat
- Frame Format. See type OtxT1FrameFormatE
- bCRC6Enable
- Set whether CRC6 checking and generation will be enabled when using
the ESF frame format. When disabled, the receive will not perform the
CRC6 check and the CRC6 bits are set to `1' to the transmit direction.
- eTxRemoteAlarmFormat
- Transmit Remote Alarm Format. See type OtxT1RemoteAlarmFormatE
- eRxRemoteAlarmFormat
- Receive Remote Alarm Format. See type OtxT1RemoteAlarmFormatE
- bAutoResync
- If OTX_TRUE, the Framer will automatically re-synchronize after
loss of synchronization. If OTX_FALSE the Framer will not synchronize
automatically but a re-synchronization procedure must be specifically
initiated by the software.
- bAutoCrcBitInversion
- Valid only for ESF frame format. For other frame format this value
is ignored.
If OTX_TRUE, all CRC6 bits of one outgoing sub-multiframe are
inverted in case a CRC6 error is flagged for the previous received
sub-multiframe.
- eLfaSensitivity
- Loss of Frame Alignment Sensitivity. See type OtxT1LfaSensitivityE
- bAutoRemoteAlarm
- If OTX_TRUE, a Remote Alarm (Yellow Alarm) will be sent automatically
in the outgoing data stream when the receiver is out of synchronization.
The alarm will also be automatically removed when the receiver returns to
the synchronized state.
- nLosSensitivity
- Sets the sensitivity level for the Loss Of Signal (LOS) detection.
A LOS alarm will be generated if the incoming data stream has no
transitions during programmable number (N) of consecutive pulse periods.
The number given as the LOS Sensitivity value will be multiplied by 16 to
arrive to the pulse count number N. The time for detecting LOS will be
16 x LOS Sensitivity x Pulse Length (488ns).
The maximum time is 16 x 256 x 488ns = 2ms
Possible Values: 1-256
Example Value:
LOS Sensitivity = 128 (16 x 128 x 488ns = 1ms)
- nLosRecovery
- Sets the sensitivity level for the Loss Of Signal (LOS) recovery.
A LOS alarm will be cleared if in the incoming data a number of Pulses (N)
occur during the time period set with the LOS Recovery parameter. The time
interval starts with the first detected pulse transition and a pulse
count is incremented with every received pulse. If the pulse number is
greater than the number N set with this parameter, the LOS alarm will be cleared.
Possible Values: 1-256
- nLineLength
- Specify the length of the T1 line cable in meters. This information
is used by the T1 transceivers to adjust the transmit pulse masks according
to the line length.
Possible Values: 0-65535
- bHighTxPower
- When OTX_TRUE the pulses on the line interface will be sent with
high power. If OTX_FALSE the pulses will be sent with low power.
- bReceiveEqualizer
- The Receive Equalizer can be used match the 18dB ITU-T I.431
requirement. When the Equalizer is turned off (OTX_FALSE), the Receiver is 6dB, when
turned on, the Receiver is 18dB.
- bfClearChannels
- Mark any channels designated as clear channels (64 kbit/s) with bit
robbed signaling is used. Only meaningful if CAS_BR signaling mode is selected.
The value in this parameter contains a bit pattern, where a '1' indicates a
clear channel. The least significant bit corresponds to Time-Slot 0 (TS0),
bit 1 to TS1, etc.
See Also
OtxT1SetConfiguration
OtxT1GetConfiguration
OtxT1E1AlarmTypeE
enum OtxT1E1AlarmTypeE {
,
};
Alarms types that can be send towards the Remote End
Defined in: OtxT1E1D.h
See Also
OtxT1E1AlarmOn
OtxT1E1AlarmOff
Parameters
- 0
- Alarm Type Auxilliary Pattern (AUXP)
- 1
- Alarm Indication Signal (AIS, Blue Alarm)
- 2
- Remote Alarm Indication (RAI, Yellow Alarm)
- 3
- Initiates internal error simulation of AIS,
loss of signal, loss of synchronization,
auxilliary pattern indication, slip, framing
errors, CRC errors, and code violations.
OtxT1E1AttributesE
enum OtxT1E1AttributesE {
OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_0,
OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_1,
OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_2,
OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_3,
OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS,
OTX_ATTR_T1E1_S_BIT_CHANGE_EVENTS,
OTX_ATTR_T1E1_SECONDS_INTERRUPT,
OTX_ATTR_T1E1_AUTOMATIC_RESET,
OTX_ATTR_T1E1_RX_INPUT_THRESHOLD,
};
T1E1 Attributes
Defined in: OtxT1E1D.h
Members
- OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_0
- (OTX_ATTRIB_UINT32) Read/Write. First (of four) sub pulse shape value of the transmit pulse mask. This 5-bit value defines the level of the analog voltage in steps of about 80mV (for this sub pulse) on transmit pins of the E1T1 span.
- OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_1
- (OTX_ATTRIB_UINT32) Read/Write. Second (of four) sub pulse shape value of the transmit pulse mask. This 5-bit value defines the level of the analog voltage in steps of about 80mV (for this sub pulse) on transmit pins of the E1T1 span.
- OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_2
- (OTX_ATTRIB_UINT32) Read/Write. Third (of four) sub pulse shape value of the transmit pulse mask. This 5-bit value defines the level of the analog voltage in steps of about 80mV (for this sub pulse) on transmit pins of the E1T1 span.
- OTX_ATTR_T1E1_TX_PULSE_MASK_SUB_PULSE_3
- (OTX_ATTRIB_UINT32) Read/Write. Forth (of four) sub pulse shape value of the transmit pulse mask. This 5-bit value defines the level of the analog voltage in steps of about 80mV (for this sub pulse) on transmit pins of the E1T1 span.
- OTX_ATTR_T1E1_CHANNELIZED_ABCD_BIT_ACCESS
- (OTX_ATTRIB_BOOL) Read/Write. If set to OTX_TRUE, the ABCD bit devices
(OTX_LDEVICE_T1_ROB_BIT_ACCESS and OTX_LDEVICE_E1_ABCD_BIT_ACCESS) will report changes
in the ABCD bit code on a channelized basis (using the OTX_T1E1_EC_BITROB_SIGNALING event).
The m_nParam field in the OTX_T1E1_EC_BITROB_SIGNALING event will contain
channel number in bit12-bit8 and the ABCD bit code in bit3-bit0 (A=bit3,B=bit2,C=bit1,D=bit0)
The default is OTX_FALSE and OTX_LDEVICE_E1_ABCD_BIT_ACCESS event then contains ABCD bit
information as described by OtxE1ABCDBitDataS and OtxT1RobBitDataS.
- OTX_ATTR_T1E1_S_BIT_CHANGE_EVENTS
- (OTX_ATTRIB_BOOL) Read/Write. If set to OTX_TRUE, OTX_LDEVICE_E1_S_BIT_ACCESS will generate
an OTX_T1E1_EC_SA_BITS_CHANGED event for each change in the received Sa bits.
- OTX_ATTR_T1E1_SECONDS_INTERRUPT
- (OTX_ATTRIB_BOOL) Read/Write. Default is OTX_FALSE. If set to OTX_TRUE, the device will generate
OTX_T1E1_EC_SEC event once every second. This event can be utilized
as a "heartbeat" watch dog from the device to verify that interrupts from this device are
operational.
- OTX_ATTR_T1E1_AUTOMATIC_RESET
- (OTX_ATTRIB_BOOL) Read/Write. Default is OTX_TRUE. If set to OTX_TRUE, the device will generate
monitor the contents of its register and if an unexpected discrepancy is encountered, the device will reset itself
and reconfigure itself to the last known good state. If the automatic reset is triggered, the device
generated an OTX_T1E1_EC_AUTO_RESET
In case a scenario of cyclic resets occurs, this attribute will be set to OTX_FALSE after 10 reset attempts, to avoid
a system lockup.
- OTX_ATTR_T1E1_RX_INPUT_THRESHOLD
- (OTX_ATTRIB_UINT32) Read/Write. In millivolts.
No signal (OTX_T1E1_EC_LOS) is declared if the voltage between pins RL1 and RL2
(analog input pins to the T1E1 device) drops
below this limit (in millivolts) and the received data
stream has no transition for a period defined in nLosSensitivity.
Note: The threshold voltage is dependant on the value set for bReceiveEqualizer.
For further details please refer to the data sheet for the T1E1 device.
OtxT1E1EventCodesE
enum OtxT1E1EventCodesE {
OTX_T1E1_EC_T8MS_ISF,
OTX_T1E1_EC_CASC_RSC,
OTX_T1E1_EC_CRC4_CRC6,
OTX_T1E1_EC__CASE,
OTX_T1E1_EC_RDO,
OTX_T1E1_EC_XDU,
OTX_T1E1_EC_XLSC,
OTX_T1E1_EC_FAR,
OTX_T1E1_EC_LFA,
OTX_T1E1_EC_MFAR,
OTX_T1E1_EC_T400MS_LMFA,
OTX_T1E1_EC_AIS,
OTX_T1E1_EC_LOS,
OTX_T1E1_EC_RAR,
OTX_T1E1_EC_RA,
OTX_T1E1_EC_LMFA16_XSLP,
OTX_T1E1_EC_AIS16_,
OTX_T1E1_EC_RA16_LLBSC,
OTX_T1E1_EC_API_,
OTX_T1E1_EC_SLN,
OTX_T1E1_EC_SLP,
OTX_T1E1_EC_ACTIVE,
OTX_T1E1_EC_DEACTIVE,
OTX_T1E1_EC_XLS,
OTX_T1E1_EC_XLO,
OTX_T1E1_EC_XPR,
OTX_T1E1_EC_SEC,
OTX_T1E1_EC_ES,
OTX_T1E1_EC_RME,
OTX_T1E1_EC_RPF,
OTX_T1E1_EC_XSP,
OTX_T1E1_EC_XSN,
OTX_T1E1_EC_BITROB_SIGNALING,
OTX_T1E1_EC_FEC,
OTX_T1E1_EC_CVC,
OTX_T1E1_EC_EBC,
OTX_T1E1_EC_CEC1,
OTX_T1E1_EC_CEC2,
OTX_T1E1_EC_CEC3,
OTX_T1E1_EC_APIR,
OTX_T1E1_EC_LOSR,
OTX_T1E1_EC_LMFAR16,
OTX_T1E1_EC_AISR,
OTX_T1E1_EC_SA_BITS_CHANGED,
OTX_T1E1_EC_DL_BITS_RECEIVED,
OTX_T1E1_EC_DL_BITS_SENT,
OTX_T1E1_EC_AUTO_DISABLED,
OTX_T1E1_EC_AUTO_RESET,
OTX_T1E1_EC_END_OF_EVENT_CODES,
};
OTX_DEVICE_LI_T1E1,
OTX_LDEVICE_T1_ROB_BIT_ACCESS,
OTX_LDEVICE_E1_S_BIT_ACCESS AND
OTX_LDEVICE_E1_ABCD_BIT_ACCESS
Event Codes
Note that for line interfaces these messages can have a different
meaning depending on whether the Line Interfaces (LIs) are configured to
E1 or T1 mode.
Defined in: OtxT1E1D.h
Members
- OTX_T1E1_EC_T8MS_ISF
- E1: Receive Timeout 8 MSec
T1: Incorrect Sync Format
- OTX_T1E1_EC_CASC_RSC
- E1: Received CAS information Changed
T1: Received Signalling information Changed
- OTX_T1E1_EC_CRC4_CRC6
- E1: Receive CRC4 error
T1: Receive CRC6 error
- OTX_T1E1_EC__CASE
- E1: -
T1: Transmit CAS register Empty
- OTX_T1E1_EC_RDO
- E1: Receive Data Overflow
T1: Receive Data Overflow
- OTX_T1E1_EC_XDU
- E1: Transmit Data Underrun
T1: Transmit Data Underrun
- OTX_T1E1_EC_XLSC
- E1: Transmit Line Status Change
T1: Transmit Line Status Change
- OTX_T1E1_EC_FAR
- E1: Frame Alignment Recovery
T1: Frame Alignment Recovery
- OTX_T1E1_EC_LFA
- E1: Loss of Frame Alignment
T1: Loss of Frame Alignment
- OTX_T1E1_EC_MFAR
- E1: MultiFrame Alignment Recovery
T1: MultiFrame Alignment Recovery
- OTX_T1E1_EC_T400MS_LMFA
- E1: Receive Timeout 400 MSec
T1: Loss of MultiFrame Alignment
- OTX_T1E1_EC_AIS
- E1: Alarm Indication Signal (Blue Alarm)
T1: Alarm Indication Signal (Blue Alarm)
- OTX_T1E1_EC_LOS
- E1: Loss Of Signal (Red Alarm)
T1: Loss Of Signal (Red Alarm)
- OTX_T1E1_EC_RAR
- E1: Remote Alarm Recovery
T1: Remote Alarm Recovery
- OTX_T1E1_EC_RA
- E1: Remote Alarm (Yellow Alarm)
T1: Remote Alarm (Yellow Alarm)
- OTX_T1E1_EC_LMFA16_XSLP
- E1: Loss of MultiFrame Alignment ts16
T1: Transmit SLiP indication
- OTX_T1E1_EC_AIS16_
- E1: Alarm Indication Signal ts16 status change
T1: -
- OTX_T1E1_EC_RA16_LLBSC
- E1: Remote Alarm ts16 status change
T1: Line Loop Back Status Change
- OTX_T1E1_EC_API_
- E1: Auxuillary Pattern Indication
T1: -
- OTX_T1E1_EC_SLN
- E1: Receive Slip Negative
T1: Receive Slip Negative
- OTX_T1E1_EC_SLP
- E1: Receive Slip Positive
T1: Receive Slip Positive
- OTX_T1E1_EC_ACTIVE
- E1: Physical link ACTIVE indication
T1: Physical link ACTIVE indication
- OTX_T1E1_EC_DEACTIVE
- E1: Physical link DEACTIVE indication
T1: Physical link DEACTIVE indication
- OTX_T1E1_EC_XLS
- E1: Transmit Line Short
T1: Transmit Line Short
- OTX_T1E1_EC_XLO
- E1: Transmit Line Open
T1: Transmit Line Open
- OTX_T1E1_EC_XPR
- Transmit Pool Ready
- OTX_T1E1_EC_SEC
- Second
- OTX_T1E1_EC_ES
- Errored second
- OTX_T1E1_EC_RME
- Receive Message End
- OTX_T1E1_EC_RPF
- Receive Pool Full
- OTX_T1E1_EC_XSP
- E1: Transmit Slip Positive
T1: Transmit Slip Positive
- OTX_T1E1_EC_XSN
- E1: Transmit Slip Negative
T1: Transmit Slip Negative
- OTX_T1E1_EC_BITROB_SIGNALING
- E1: -
T1: BitRob Signaling Data
- OTX_T1E1_EC_FEC
- E1: Frame Error Count
T1: Frame Error Count
- OTX_T1E1_EC_CVC
- E1: Code Violation Count
T1: Code Violation Count
- OTX_T1E1_EC_EBC
- E1: E-bit Error Count
T1: Errored Block Count
- OTX_T1E1_EC_CEC1
- E1: CRC Error Count
T1: CRC Error Count
- OTX_T1E1_EC_CEC2
- E1: CRC Error Count (reported from TE via Sa6-bit)
T1: -
- OTX_T1E1_EC_CEC3
- E1: CRC Error Count (detected at T reference point via Sa6-bit)
T1: -
- OTX_T1E1_EC_APIR
- E1: Auxiliary Pattern Indication (Blue Alarm) Recovery
T1: -
- OTX_T1E1_EC_LOSR
- E1: Loss Of Signal (Red Alarm) Recovery
T1: Loss Of Signal (Red Alarm) Recovery
- OTX_T1E1_EC_LMFAR16
- E1: Loss of MultiFrame Alignment ts16 Recovery
T1: -
- OTX_T1E1_EC_AISR
- E1: Alarm Indication Signal (Blue Alarm) Recovery
T1: Alarm Indication Signal (Blue Alarm) Recovery
- OTX_T1E1_EC_SA_BITS_CHANGED
- E1: SA-Bits (4-8) changed. Bit0 is Sa bit from Frame1, Bit0 is Sa bit from Frame3, ... , Bit7 is Sa bit from Frame15. Bit11-Bit8 contains the Sa number (4-8).
T1: -
- OTX_T1E1_EC_DL_BITS_RECEIVED
- E1: -
T1: DL-Bits Received:
Mode OTX_T1_FF_F12:
Bit0 is received in frame 2 and Bit7 in frame 12.
Remaining bits are zero.
Mode OTX_T1_FF_ESF:
Bit0 is received in frame 1 and Bit7 in frame 15.
Bit8 is received in frame 17 and Bit15 in frame 23.
Remaining bits are zero.
Mode OTX_T1_FF_F72:
Bit0 is received in frame 26 and Bit7 in frame 40
Bit8 is received in frame 42 and Bit15 in frame 56.
Bit16 is received in frame 58 and Bit23 in frame 72.
Remaining bits are zero.
- OTX_T1E1_EC_DL_BITS_SENT
- E1: -
T1: DL-Bits Sent. The function OtxT1SetDlBitData needs to
be called to provide more DL-bits to be transmitted by the T1E1 device.
If OtxT1SetDlBitData is not called before the start of the next
multiframe then the DL-Bit device will continue to transmit the same DL-bits
(as were provided by the most recent call to OtxT1SetDlBitData.
The bits should be formatted in the same way as
in OTX_T1E1_EC_DL_BITS_RECEIVED.
- OTX_T1E1_EC_AUTO_DISABLED
- E1: Fatal error has occurred. The device is automatically disabled.
Try reviving the device with OtxDrvReset and OtxDrvEnable.
T1: Fatal error has occurred. The device is automatically disabled.
Try reviving the device with OtxDrvReset and OtxDrvEnable.
- OTX_T1E1_EC_AUTO_RESET
- E1: Serious error has occurred. The device has performed an automatic self-reset.
- OTX_T1E1_EC_END_OF_EVENT_CODES
- T1: Serious error has occurred. The device has performed an automatic self-reset.
OtxT1E1Layer1StatusE
enum OtxT1E1Layer1StatusE {
OTX_T1E1_LAYER1_DOWN,
OTX_T1E1_LAYER1_OK,
};
Layer 1 Status
Defined in: OtxT1E1D.h
Members
- OTX_T1E1_LAYER1_DOWN
- Loss of Signal (LOS) or Loss Of Frame Alignment (LFA) is present
- OTX_T1E1_LAYER1_OK
- E1/T1 signal present (No Loss of Signal and no Loss Of Frame Alignment)
See Also
OtxT1E1GetLineStatus
OtxT1E1LiModeE
enum OtxT1E1LiModeE {
OTX_T1E1_MODE_NO,
OTX_T1E1_MODE_T1,
OTX_T1E1_MODE_E1,
};
Operating modes for the T1/E1 Line Interface (Li) Devices
Defined in: OtxT1E1D.h
Members
- OTX_T1E1_MODE_NO
- The line interface has not been configured
- OTX_T1E1_MODE_T1
- The line interface is configured to operate in T1 mode.
- OTX_T1E1_MODE_E1
- The line interface is configured to operate in E1 mode.
See Also
OtxT1E1SetLiMode
OtxT1E1LoopE
enum OtxT1E1LoopE {
OTX_T1E1_LOOPS_OFF,
OTX_T1E1_LINE_LOOP,
OTX_T1E1_REMOTE_ON_LOOP_JITTER_ATTEN,
OTX_T1E1_REMOTE_OFF_LOOP_JITTER_ATTEN,
OTX_T1E1_LOCAL_LOOP,
};
Line Interface loop type
Defined in: OtxT1E1D.h
Members
- OTX_T1E1_LOOPS_OFF
- All Line Loops off
- OTX_T1E1_LINE_LOOP
- Line Loop (Payload Loopback of the external highway). Looped data will pass through the entire receiver including the wander and jitter compensation.
- OTX_T1E1_REMOTE_ON_LOOP_JITTER_ATTEN
- Remote Loop with Jitter Attenuation On (Loopback of the external highway bypassing the framer)
- OTX_T1E1_REMOTE_OFF_LOOP_JITTER_ATTEN
- Remote Loop with Jitter Attenuation Off (Loopback of the external highway bypassing the framer)
- OTX_T1E1_LOCAL_LOOP
- Local Loop. The receiver on the external highway is disconnected. The internal highway is looped back to the time-space switch.
See Also
OtxT1E1SetLineLoop
OtxT1E1ResultCodesE
enum OtxT1E1ResultCodesE {
OTX_T1E1_RES_BAD_AIS_DETECTION_OPT,
OTX_T1E1_RES_BAD_ALARM_TYPE,
OTX_T1E1_RES_BAD_CLOCK_MODE,
OTX_T1E1_RES_BAD_FRAME_FORMAT,
OTX_T1E1_RES_BAD_HDB3_ERROR_OPT,
OTX_T1E1_RES_BAD_LOOP_TYPE,
OTX_T1E1_RES_BAD_REGAIN_M_FRAME_OPT,
OTX_T1E1_RES_BAD_REMOTE_ALARM_OPT,
OTX_T1E1_RES_BAD_RESYNC_OPT,
OTX_T1E1_RES_BAD_RX_EQUALIZER_OPT,
OTX_T1E1_RES_BAD_RX_FRAME_FORMAT,
OTX_T1E1_RES_BAD_RX_LINE_CODE,
OTX_T1E1_RES_BAD_RX_REM_ALRM_FORMAT,
OTX_T1E1_RES_BAD_SIGNALING_MODE,
OTX_T1E1_RES_BAD_TX_FRAME_FORMAT,
OTX_T1E1_RES_BAD_TX_LINE_CODE,
OTX_T1E1_RES_BAD_TX_POWER_OPT,
OTX_T1E1_RES_BAD_TX_REM_ALRM_FORMAT,
OTX_T1E1_RES_L1_DOWN,
OTX_T1E1_RES_L1_OK,
OTX_T1E1_RES_NOT_SETUP,
OTX_T1E1_RES_TX_BUSY,
OTX_T1E1_RES_WRONG_CONTEXT,
OTX_T1E1_RES_UNKNOWN_STATUS_CODE,
OTX_T1E1_RES_UNKNOWN_MODE,
OTX_T1E1_RES_INVALID_CHANNEL,
OTX_T1E1_RES_UNSUPPORTED_VER,
};
OTX_DEVICE_LI_T1E1,
OTX_LDEVICE_T1_ROB_BIT_ACCESS,
OTX_LDEVICE_T1_DL_BIT_ACCESS,
OTX_LDEVICE_E1_S_BIT_ACCESS and
OTX_LDEVICE_E1_ABCD_BIT_ACCESS
Result Codes
Defined in: OtxT1E1D.h
Members
- OTX_T1E1_RES_BAD_AIS_DETECTION_OPT
- Invalid parameter value passed for AIS Detection.
- OTX_T1E1_RES_BAD_ALARM_TYPE
- Invalid parameter value passed for Alarm Type.
- OTX_T1E1_RES_BAD_CLOCK_MODE
- Invalid parameter value passed for Clock Mode.
- OTX_T1E1_RES_BAD_FRAME_FORMAT
- Invalid parameter value passed for Frame Format.
- OTX_T1E1_RES_BAD_HDB3_ERROR_OPT
- Invalid parameter value passed for HDB3 Error Type.
- OTX_T1E1_RES_BAD_LOOP_TYPE
- Invalid parameter value passed for Loop Mode.
- OTX_T1E1_RES_BAD_REGAIN_M_FRAME_OPT
- Invalid parameter value passed for Regain Multiframe.
- OTX_T1E1_RES_BAD_REMOTE_ALARM_OPT
- Invalid parameter value passed for Remote Alarm.
- OTX_T1E1_RES_BAD_RESYNC_OPT
- Invalid parameter value passed for Resynchronization.
- OTX_T1E1_RES_BAD_RX_EQUALIZER_OPT
- Invalid parameter value passed for Receiver Equalizer.
- OTX_T1E1_RES_BAD_RX_FRAME_FORMAT
- Invalid parameter value passed for Receiver Frame Format.
- OTX_T1E1_RES_BAD_RX_LINE_CODE
- Invalid parameter value passed for Reciever Line Code.
- OTX_T1E1_RES_BAD_RX_REM_ALRM_FORMAT
- Invalid parameter value passed for Receiver Remote Alarm.
- OTX_T1E1_RES_BAD_SIGNALING_MODE
- Invalid parameter value passed for Signalling Mode.
- OTX_T1E1_RES_BAD_TX_FRAME_FORMAT
- Invalid parameter value passed for Transmit Frame Format.
- OTX_T1E1_RES_BAD_TX_LINE_CODE
- Invalid parameter value passed for Transmit Line Code.
- OTX_T1E1_RES_BAD_TX_POWER_OPT
- Invalid parameter value passed for Transmit Power.
- OTX_T1E1_RES_BAD_TX_REM_ALRM_FORMAT
- Invalid parameter value passed for Transmit Remote Alarm.
- OTX_T1E1_RES_L1_DOWN
- Loss Of Signal. Layer 1 is down.
- OTX_T1E1_RES_L1_OK
- E1/T1 receiver is receiving valid signals. Layer 1 is OK.
- OTX_T1E1_RES_NOT_SETUP
- The device is not setup to support this action.
- OTX_T1E1_RES_TX_BUSY
- Transmitter is busy sending a frame.
- OTX_T1E1_RES_WRONG_CONTEXT
- Wrong context for this action.
- OTX_T1E1_RES_UNKNOWN_STATUS_CODE
- Invalid event code passed to this function.
- OTX_T1E1_RES_UNKNOWN_MODE
- The device is not setup in a valid mode.
- OTX_T1E1_RES_INVALID_CHANNEL
- Invalid channel.
- OTX_T1E1_RES_UNSUPPORTED_VER
- Unsupported Device version.
OtxT1E1TermModeE
enum OtxT1E1TermModeE {
OTX_T1E1_TERM_120_OHM,
OTX_T1E1_TERM_100_OHM,
OTX_T1E1_TERM_75_OHM,
OTX_T1E1_TERM_HIGHZ,
};
Set the line termination for an E1/T1 span.
Defined in: OtxT1E1D.h
Members
- OTX_T1E1_TERM_120_OHM
- Span is terminated for 120 ohm twisted pair (balanced)
- OTX_T1E1_TERM_100_OHM
- Span is terminated for 100 ohm twisted pair (balanced)
- OTX_T1E1_TERM_75_OHM
- Span is terminated for 75 ohm coax (unbalanced)
- OTX_T1E1_TERM_HIGHZ
- Span is not terminated (Balanced, High impedance, for monitoring)
Comments
This function should be called with the appropriate line termination
mode which matches the type of cable that is connected to the Line Interface.
If the Line Interface is used for monitoring and connected in a bridged
configuration, the High Impedance termination
mode should be used. If the Line Interface is used for generation, or the board is
connected to a -20dB monitor port, then one of the 75 (E1), 100 (T1), or 120 (E1)
ohm modes should be used.
Setting the termination mode also affects transmit pulse level. The level is
set to comply with the G.703 and T1.102 standards. I.e.
G.703 E1 120 ohm Balanced: Amplitude=3.0V (+/- 0.3V)
G.703 T1 100 ohm Balanced: Amplitude=3.0V (+/- 0.6V)
G.703 E1 75 ohm Unbalanced: Amplitude=2.37V (+/- 0.237V)
The default is high impedance (no termination), which is set when the driver loads.
OtxT1FrameFormatE
enum OtxT1FrameFormatE {
,
};
T1 Frame Formats
Defined in: OtxT1E1D.h
See Also
OtxT1ConfigOptionsS
OtxT1SetConfiguration
Parameters
- 0
- 12-frame multiframe format (F12, D3/4, SF)
- 1
- 4-frame multiframe format (F4)
- 2
- 24-frame multiframe format (F24, ESF)
- 3
- 72-frame multiframe format (F72, SLC96, remote switch mode)
OtxT1LfaSensitivityE
enum OtxT1LfaSensitivityE {
,
};
Set the condition when the Loss of Frame Alignment (LFA) will be reported.
Defined in: OtxT1E1D.h
Comments
LFA can be reported if 2 out of 4, 5, or 6 framing bits have been detected to be
incorrect.
See Also
OtxT1ConfigOptionsS
OtxT1SetConfiguration
Parameters
- 0x00
- 2 out of 4 framing bits incorrect
- 0x08
- 3 out of 4 framing bits incorrect
- 0x10
- 4 out of 4 framing bits incorrect
OtxT1LineCodeE
enum OtxT1LineCodeE {
OTX_T1_LC_AMI,
OTX_T1_LC_B8ZS,
};
T1 Line Codes
Defined in: OtxT1E1D.h
Members
- OTX_T1_LC_AMI
- Alternative Mark Inversion (AMI) Line Coding
- OTX_T1_LC_B8ZS
- Bipolar 8 Zero Subsititution (B8ZS) Line Coding
See Also
OtxT1ConfigOptionsS
OtxT1SetConfiguration
OtxT1RemoteAlarmFormatE
enum OtxT1RemoteAlarmFormatE {
OTX_T1_RA_YELLOW_A,
OTX_T1_RA_YELLOW_B,
};
Select the Remote Alarm Indication (Yellow Alarm) format to be expected
in Receive direction with the F12 and ESF Frames.
Defined in: OtxT1E1D.h
Members
- OTX_T1_RA_YELLOW_A
- F12: bit2 = 0 in every channel
ESF: pattern '1111 1111 0000 0000' in data link channel
- OTX_T1_RA_YELLOW_B
- F12: FS bit of frame 12
ESF: bit2 = 0 in every channel
Comments
If Format A is selected, with F12 Frame Format the bit #2 in every channel is
set to `0'. With ESF Frame Format a pattern on `1111 1111 0000 0000 ...' is sent in
the data link channel. If Format B is selected, with F12 Frame Format the Frame
Synchronization (FS) bit of frame 12 is set to `0'. With ESF Frame Format the bit
position 2 in every time-slot is set to `0'. With F4 and F72 frames formats the
Yellow alarm is indicated in both formats by forcing the bit
position 2 to `1' in every speech channel.
See Also
OtxT1ConfigOptionsS
OtxT1SetConfiguration
OtxT1RobBitDataS structure
struct {
OTX_UINT32 chA;
OTX_UINT32 chB;
OTX_UINT32 chC;
OTX_UINT32 chD;
} OtxT1RobBitDataS;
T1 Bit robbing data to be transmitted (used in CAS). See
the OtxT1SetRobBitData function.
Defined in: OtxT1E1D.h
Members
- chA
- Channel A
- chB
- Channel B
- chC
- Channel C (Only used in ESF format)
- chD
- Channel D (Only used in ESF format)
Comments
Note that the A and B channels are used in frame formats F12, ESF,
and F72. The C and D channels are only used in the ESF frame
format.
The struct holds 24 bits for each channel; The least significant
bit is transmitted first (in channel 1, frame 1). This 24 bit
value will be repeated unless OtxT1SetRobBitData is called again
with a different values in this struct.
See Also
OtxT1SetRobBitData
OtxT1GetRobBitData
OtxT1SignallingModeE
enum OtxT1SignallingModeE {
OTX_T1_SM_CCS,
OTX_T1_SM_CAS_CC,
OTX_T1_SM_CAS_BR,
};
T1 Signalling Modes
Defined in: OtxT1E1D.h
Members
- OTX_T1_SM_CCS
- Common Channel Signalling
- OTX_T1_SM_CAS_CC
- Channel Associated Signalling (Common channel)
- OTX_T1_SM_CAS_BR
- Channel Associated Signalling (Bit Robbing)
See Also
OtxT1ConfigOptionsS
OtxT1SetConfiguration
OtxToneEffectE
enum OtxToneEffectE {
OTX_TONE_SINEWAVE,
OTX_TONE_SAWTOOTH,
OTX_TONE_SWEEPING_SINE,
OTX_TONE_NOISE,
OTX_TONE_BYTE_VARIABLE,
};
Type of tone effect to be generated
Defined in: OtxToneD.h
Members
- OTX_TONE_SINEWAVE
- 1kHz sinusoidal wave
- OTX_TONE_SAWTOOTH
- Ramp wave
- OTX_TONE_SWEEPING_SINE
- Variable frequency sinusoidal wave
- OTX_TONE_NOISE
- Random noise
- OTX_TONE_BYTE_VARIABLE
- Sequential bytes: 0, 1, 2, ..., 255, 0, 1, ...
OtxToneGainE
enum OtxToneGainE {
OTX_TONE_GAIN_0DB,
OTX_TONE_GAIN_DG_MINUS_3DB,
OTX_TONE_GAIN_DG_MINUS_6DB,
OTX_TONE_GAIN_DG_MINUS_9DB,
OTX_TONE_GAIN_DG_MINUS_12DB,
OTX_TONE_GAIN_DG_MINUS_15DB,
};
Gain of generated tones
Defined in: OtxToneD.h
Members
- OTX_TONE_GAIN_0DB
- Full Gain
- OTX_TONE_GAIN_DG_MINUS_3DB
- -3dB Gain
- OTX_TONE_GAIN_DG_MINUS_6DB
- -6dB Gain
- OTX_TONE_GAIN_DG_MINUS_9DB
- -9dB Gain
- OTX_TONE_GAIN_DG_MINUS_12DB
- -12dB Gain
- OTX_TONE_GAIN_DG_MINUS_15DB
- -15dB Gain
OtxToneSineWaveDataS structure
struct {
OTX_FP64 nFrequency;
OTX_FP64 nAttenuation;
OTX_FP64 nPhase;
} OtxToneSineWaveDataS;
Characteristics of a sinewave tone component. Tones containing multiple
frequency component can be generated by using an array of
this struct (see OtxToneSineWaveGeneratorInit).
Defined in: OtxToneD.h
Members
- nFrequency
- Frequency of sinewave component
- nAttenuation
- Attenuation of sinewave amplitude (in dB). E.g. 0dB is maximum amplitude, -3dB is 50% of maximum amplitude, -9dB is 25% of maximum amplitude.
- nPhase
- Phase (in degrees) in relation to other sinewave tone components.
See Also
OtxToneSineWaveGeneratorInit
OtxTssDeviceAttributesE
enum OtxTssDeviceAttributesE {
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_A,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_B,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_C,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_D,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_E,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_F,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_G,
OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_H,
};
TSS Attributes
\\*---------------------------------------------------------------------------
Defined in: OtxBrdD.h
Members
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_A
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d0-d3. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_B
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d4-d7. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_C
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d8-d11. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_D
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d12-d15. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_E
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d16-d19. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_F
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d20-d23. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_G
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d24-d27. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
- OTX_ATTR_TSS_CTBUS_RATE_STREAM_GROUP_H
- (OTX_ATTRIB_UINT32) Read/Write.
Operating bit rate (in kbps) for CT Bus highway d28-d31. Valid values are 2048 (default), 4098, and 8192.
Note: If this attribute is modified, it must be modified before any pipe connections are made.
OtxTssEventCodesE
enum OtxTssEventCodesE {
OTX_TSS_EC_CLKERR_A,
OTX_TSS_EC_CLKERR_B,
OTX_TSS_EC_CLKERR_FR_COMP,
OTX_TSS_EC_CLKERR_C16,
OTX_TSS_EC_CLKERR_C4_C2,
OTX_TSS_EC_CLKERR_SCLKX2,
OTX_TSS_EC_CLKERR_SCLK,
OTX_TSS_EC_CLKERR_NETREF,
OTX_TSS_EC_SYSERR_NM_CAM_E,
OTX_TSS_EC_SYSERR_NM_CAM_O,
OTX_TSS_EC_SYSERR_NM_CAM_L,
OTX_TSS_EC_SYSERR_CAM_E,
OTX_TSS_EC_SYSERR_CAM_O,
OTX_TSS_EC_SYSERR_CAM_L,
OTX_TSS_EC_SYSERR_HBUS,
OTX_TSS_EC_SYSERR_FALLBACK,
};
Time-Space Switch (TSS) Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxBrdD.h
Members
- OTX_TSS_EC_CLKERR_A
- C8A or Frame A Clock failed
- OTX_TSS_EC_CLKERR_B
- C8B or Frame B Clock failed
- OTX_TSS_EC_CLKERR_FR_COMP
- FR_COMPn Clock failed
- OTX_TSS_EC_CLKERR_C16
- C16+ C16- Clock failed
- OTX_TSS_EC_CLKERR_C4_C2
- C4 or C2 Clock failed
- OTX_TSS_EC_CLKERR_SCLKX2
- SCLKX2 Clock failed
- OTX_TSS_EC_CLKERR_SCLK
- SCLK Clock failed
- OTX_TSS_EC_CLKERR_NETREF
- NETREF Clock failed
- OTX_TSS_EC_SYSERR_NM_CAM_E
- Even CAM Overflow Error (No Match)
- OTX_TSS_EC_SYSERR_NM_CAM_O
- Odd CAM Overflow Error (No Match)
- OTX_TSS_EC_SYSERR_NM_CAM_L
- Local CAM Overflow Error (No Match)
- OTX_TSS_EC_SYSERR_CAM_E
- Even CAM Overflow Error
- OTX_TSS_EC_SYSERR_CAM_O
- Odd CAM Overflow Error
- OTX_TSS_EC_SYSERR_CAM_L
- Local CAM Overflow Error
- OTX_TSS_EC_SYSERR_HBUS
- H-BUS (CT Bus) Data Memory Access Error
- OTX_TSS_EC_SYSERR_FALLBACK
- Fallback Enable Indicator
OtxUserApplicationEventCodesE
enum OtxUserApplicationEventCodesE {
OTX_USER_APPLICATION_EC_READ_DATA,
OTX_USER_APPLICATION_EC_READ_DATA_OVERRUN,
};
DSP User Application Logical Device Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxDspD.h
Members
- OTX_USER_APPLICATION_EC_READ_DATA
- DSP User Application Notify Data is available
- OTX_USER_APPLICATION_EC_READ_DATA_OVERRUN
- DSP User Application Notify Data Fifo Overrun. User application is too slow extracting data from the driver
OtxUserApplicationResultCodesE
enum OtxUserApplicationResultCodesE {
OTX_USER_APPLICATION_RES_DATA_TRUNCATED,
};
User Application Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxDspD.h
Members
- OTX_USER_APPLICATION_RES_DATA_TRUNCATED
- DSP User application has transferred a data buffer that is too large. Data is truncated.
OtxValSamplerEventCodesE
enum OtxValSamplerEventCodesE {
,
};
Val Sampler Event Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxValSamplerResultCodesE
enum OtxValSamplerResultCodesE {
,
};
Val Sampler Error Result Codes
\\*---------------------------------------------------------------------------
Defined in: OtxToneD.h
OtxVersionInfo structure
struct {
} OtxVersionInfo;
OTX Driver Version Struct
Defined in: OtxType.h
POTS_HANDLE
An opaque object reference for definitions kept internal to the module.
Defined in: OtxPotsD.h