lib_sdh.c File Reference


Detailed Description

File containing definitions for SDH Demux library.

Definition in file lib_sdh.c.

#include "edtinc.h"
#include "edt_ocx.h"
#include "lib_sdh.h"
#include "initpcd.h"

Go to the source code of this file.

Functions

u_char edt_indirect_reg_read (EdtDev *edt_p, u_int addr)
void edt_indirect_reg_write (EdtDev *edt_p, u_int addr, u_char val)
int edt_sdh_board_set_clock_to_system_time (edt_sdh_t *sdh_p)
 Set the SDH board internal clock to system time.
edt_sdh_tedt_sdh_board_setup (int unitNo, int configure_board)
 Initialize the SDH demux board.
int edt_sdh_channel_disable (edt_sdh_t *sdh_p, int channel)
 Clear the STM1 demux channel enable bit.
int edt_sdh_channel_enable (edt_sdh_t *sdh_p, int channel)
 Set the STM1 demux channel enable bit.
u_char * edt_sdh_e1_buf (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_e1_number (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_e1_tag (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_frame_lock (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_length (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_odd_frame (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_time_fsecs (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_time_secs (edt_sdh_t *sdh_p, void *e1buf_p)
u_int edt_sdh_e1_buf_vc12_buf (edt_sdh_t *sdh_p, void *e1buf_p)
int edt_sdh_loss_of_light (edt_sdh_t *sdh_p)
 Return nonzero when there is a loss of light condition on the interface.
int edt_sdh_loss_of_light_input_0 (edt_sdh_t *sdh_p)
int edt_sdh_loss_of_light_input_1 (edt_sdh_t *sdh_p)
u_char edt_sdh_reg_read_E1_frame_status (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the selected STM1 E1 Frame Status Register values into an array of 64 unsigned chars.
int edt_sdh_reg_read_E2_frame_status (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the selected STM1 E2 Frame Status Register values into an array of 16 unsigned chars.
int edt_sdh_reg_read_E3_frame_status (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the selected STM1 E3 Frame Status Register values into an array of 4 unsigned chars.
int edt_sdh_reg_read_E4_frame_status (edt_sdh_t *sdh_p, u_char *result)
 Read 16 STM1 E4 Status Register values into an array of unsigned chars.
int edt_sdh_reg_read_stm1_status (edt_sdh_t *sdh_p, u_char *result)
 Read 16 STM1 Status Register values into an array of unsigned chars.
int edt_sdh_reg_read_tu3vc3_path_overhead (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the values of the TU3 VC3 Path Overhead (POH) Registers for an STM1.
int edt_sdh_reg_read_vc12_path_overhead (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the values of the VC12 Path Overhead (POH) Registers for an STM1.
int edt_sdh_reg_read_vc3_b3_error_count (edt_sdh_t *sdh_p, int channel, u_short *result)
 Read the values of the VC3 (via TU3) B3 Error Count Registers for an STM1 into an array of 3 unsigned shorts.
int edt_sdh_reg_read_vc3_signal_label (edt_sdh_t *sdh_p, int channel, u_char *result)
 Reads the values of the VC3 Signal Lable Registers for an STM1 into an array of 3 unsigned chars.
u_char edt_sdh_reg_read_vc4vc3_b3_error_count (edt_sdh_t *sdh_p, int channel, u_short *result)
 Read the values of the VC4/3 B3 Error Count Registers for an STM1 into an array of unsigned shorts.
u_char edt_sdh_reg_read_vc4vc3_MF_indicator (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the value(s) of the VC4/3 Multiframe (MF) Indicator Registers for an STM1.
u_char edt_sdh_reg_read_vc4vc3_path_overhead (edt_sdh_t *sdh_p, int channel, u_char *result)
 Read the values of the VC4/3 Path Overhead (POH) Registers for an STM1.
int edt_sdh_reg_set_E1_frame_disable (edt_sdh_t *sdh_p, int channel, int disable)
 Set the E1 disable registers for a specified STM1.
int edt_sdh_reg_set_E4_frame_disable (edt_sdh_t *sdh_p, int channel, int disable)
 Set the E4 disable register for a specified STM1.
int edt_sdh_release_board (edt_sdh_t *sdh_p)
 Release the SDH demux board.
int edt_sdh_set_ring_buffer_size_number (edt_sdh_t *sdh_p, int bufsize, int numbufs)
 Set ring buffer size and number for an open sdh_p.
int edt_sdh_start_stm1_to_e1_channel (edt_sdh_t *sdh_p, int stm1, int channel, int callbackControl, int(*e1_callback)(void *e1buf, void *auxArg), void *callbackArg, int loops)
 Create an e1 packet processing data stream corresponding to a single STM1 input.
int edt_sdh_start_stm1_to_e1_channel_timeout (edt_sdh_t *sdh_p, int stm1, int channel, int callbackControl, int(*e1_callback)(void *e1buf, void *auxArg), void *callbackArg, int loops, int(*timeout_callback)(edt_sdh_t *sdh_p, int channel), int timeout, int timeout_ok)
 Create an e1 packet processing data stream corresponding to a single STM1 input with timeouts enabled, qualified, and a timeout callback issued upon timeout.
int edt_sdh_stm_is_framed (edt_sdh_t *sdh_p)
 Return nonzero when the STM input signal is framed.
int edt_sdh_stm_is_framed_input_0 (edt_sdh_t *sdh_p)
int edt_sdh_stm_is_framed_input_1 (edt_sdh_t *sdh_p)
int edt_sdh_stop_stm1_to_e1_channel (edt_sdh_t *sdh_p, int stm1)
 Cause a previously created e1 packet processing data stream to halt operation and return.


Function Documentation

int edt_sdh_board_set_clock_to_system_time ( edt_sdh_t sdh_p  ) 

Set the SDH board internal clock to system time.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
Returns:
0 on success and -1 if either sdh_p or sdh_p->edt_p are NULL.
This function sets the SDH board timer to system time. This clock will be used to timestamp the demuxed e1 packets.

Definition at line 301 of file lib_sdh.c.

edt_sdh_t* edt_sdh_board_setup ( int  unitNo,
int  configure_board 
)

Initialize the SDH demux board.

Parameters:
unitNo containing the EDTpcd board unit number.
configure_board containing one of:
ATTACH_TO_CURRENT CONFIGURE_STM1_RATE CONFIGURE_STM4_RATE CONFIGURE_STM16_RATE CONFIGURE_STM64_RATE

as defined in lib_sdh.h.

Returns:
an edt_sdh_t* handle or NULL on error.
This function, if configure_board is not ATTACH_TO_CURRENT, loads the GS or LX baseboard user interface FPGA, loads the mezzanine FPGA and configures the board for the selected rate.

Then edt_sdh_board_setup allocates and returns a handle for use with other lib_sdh API functions.

Definition at line 63 of file lib_sdh.c.

int edt_sdh_channel_disable ( edt_sdh_t sdh_p,
int  channel 
)

Clear the STM1 demux channel enable bit.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
Returns:
0 on success and -1 if either sdh_p or sdh_p->edt_p are NULL.
This function disables demux processing on the specified STM1 DMA channel.

Definition at line 255 of file lib_sdh.c.

int edt_sdh_channel_enable ( edt_sdh_t sdh_p,
int  channel 
)

Set the STM1 demux channel enable bit.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
Returns:
0 on success and -1 if either sdh_p or sdh_p->edt_p are NULL.
This function enables demux processing on the specified STM1 DMA channel.

Definition at line 278 of file lib_sdh.c.

int edt_sdh_loss_of_light ( edt_sdh_t sdh_p  ) 

Return nonzero when there is a loss of light condition on the interface.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
Returns:
0 when loss of light is false, nonzero when true.
This function queries the OCX interface for loss of light status.

Definition at line 580 of file lib_sdh.c.

u_char edt_sdh_reg_read_E1_frame_status ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the selected STM1 E1 Frame Status Register values into an array of 64 unsigned chars.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 64 unsigned chars.
Returns:
The value of the lowest numbered E3 frame status register (used to determine E4/3 path or TUG2 path).
This function places the value of the STM1 E1 Frame Status Registers into an array of 64 unsigned chars. The data is indexed by the following formulas: Using an E4/3 path (bit 1 of the return value set): ((E3num * 16) + (E2num * 4) + E1num); Using a TUG2 path (bit 1 of the return value clear): ((TUG3VC3num * 21) + (TUG2num * 3) + VC12num). In the TUG2 case the array has only 63 elements and so the 64th element (index 63) is zero.

Definition at line 862 of file lib_sdh.c.

int edt_sdh_reg_read_E2_frame_status ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the selected STM1 E2 Frame Status Register values into an array of 16 unsigned chars.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 16 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function places the value of the 16 STM1 E2 Frame Status Registers into an array of 16 unsigned chars. The data is indexed by the formula ((E3num << 2) | E2num) where E3num and E2num both range over 0 to 3.

Definition at line 829 of file lib_sdh.c.

int edt_sdh_reg_read_E3_frame_status ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the selected STM1 E3 Frame Status Register values into an array of 4 unsigned chars.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 4 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function places the value of the 4 STM1 E3 Frame Status Registers into an array of 4 unsigned chars.

Definition at line 801 of file lib_sdh.c.

int edt_sdh_reg_read_E4_frame_status ( edt_sdh_t sdh_p,
u_char *  result 
)

Read 16 STM1 E4 Status Register values into an array of unsigned chars.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
result containing a pointer to an array of 16 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function places the value of the 16 STM1 E4 status registers into an array of unsigned chars.

Definition at line 748 of file lib_sdh.c.

int edt_sdh_reg_read_stm1_status ( edt_sdh_t sdh_p,
u_char *  result 
)

Read 16 STM1 Status Register values into an array of unsigned chars.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
result containing a pointer to an array of 16 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function places the value of the 16 STM1 status registers into an array of unsigned chars.

Definition at line 654 of file lib_sdh.c.

int edt_sdh_reg_read_tu3vc3_path_overhead ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the values of the TU3 VC3 Path Overhead (POH) Registers for an STM1.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 27 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function reads and returns the value of the TU3 VC3 Path Overhead (POH) Registers in an array of 27 unsigned chars given the STM1 number.

Definition at line 1052 of file lib_sdh.c.

int edt_sdh_reg_read_vc12_path_overhead ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the values of the VC12 Path Overhead (POH) Registers for an STM1.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 252 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function reads and returns the value of the VC12 Path Overhead (POH) Registers in an array of 252 unsigned chars given the STM1 number.

Definition at line 1084 of file lib_sdh.c.

int edt_sdh_reg_read_vc3_b3_error_count ( edt_sdh_t sdh_p,
int  channel,
u_short *  result 
)

Read the values of the VC3 (via TU3) B3 Error Count Registers for an STM1 into an array of 3 unsigned shorts.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 3 unsigned shorts.
Returns:
0 on success and nonzero on parameter check error.
This function reads and returns the values of the VC3 (via TU3) B3 Error Count Registers in an array of 3 unsigned shorts given the STM1 number.

Definition at line 956 of file lib_sdh.c.

int edt_sdh_reg_read_vc3_signal_label ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Reads the values of the VC3 Signal Lable Registers for an STM1 into an array of 3 unsigned chars.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 3 unsigned chars.
Returns:
0 on success and nonzero on parameter check error.
This function reads and returns the values of the VC3 Signal Label Registers in an array of three unsigned chars given the STM1 number.

Definition at line 987 of file lib_sdh.c.

u_char edt_sdh_reg_read_vc4vc3_b3_error_count ( edt_sdh_t sdh_p,
int  channel,
u_short *  result 
)

Read the values of the VC4/3 B3 Error Count Registers for an STM1 into an array of unsigned shorts.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 3 unsigned shorts.
Returns:
The value of the second AU4/3 Pointer Low Register (used to determine a path of 1 VC4 or 3 VC3's).
This function reads and returns the value of the VC4/3 B3 Error Count Registers in an array of three unsigned shorts given the STM1 number. If the path is a single VC4, index 0 will contain the B3 Error Count Register. Otherwise the path is three VC3s and indices 0, 1, and 2 will be set for each VC3. The return value is the contents of the AU4/3 Pointer Register, thus (retval == 0xff) indicates a single VC4, otherwise three VC3's are indicated.

Definition at line 680 of file lib_sdh.c.

u_char edt_sdh_reg_read_vc4vc3_MF_indicator ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the value(s) of the VC4/3 Multiframe (MF) Indicator Registers for an STM1.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 3 unsigned chars.
Returns:
The value of the second AU4/3 Pointer Low Register (used to determine a path of 1 VC4 or 3 VC3's).
This function reads the value of the VC4/3 Multiframe (MF) Indicator Registers into an array of three unsigned chars given the STM1 number. If the path is a single VC4, index 0 will contain the MF Indicator Register. Otherwise the path is three VC3s and indices 0, 1, and 2 will be set for each VC3. The return value is the contents of the second AU4/3 Pointer Low Register, thus (retval == 0xff) indicates a single VC4, otherwise three VC3's are indicated.

Definition at line 714 of file lib_sdh.c.

u_char edt_sdh_reg_read_vc4vc3_path_overhead ( edt_sdh_t sdh_p,
int  channel,
u_char *  result 
)

Read the values of the VC4/3 Path Overhead (POH) Registers for an STM1.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
result containing a pointer to an array of 27 unsigned chars.
Returns:
The value of the second AU4/3 Pointer Low Register (used to determine a path of 1 VC4 or 3 VC3's).
This function reads and returns the value of the VC4/3 Path Overhead (POH) Registers in an array of 27 unsigned chars given the STM1 number. If the path is a single VC4, index 0-8 will contain the 9 POH bytes. Otherwise the path is three VC3s and indices 0-8, 9-17, and 18-26 will be set with the 9 POH bytes for each VC3. The return value is the contents of the second AU4/3 Pointer Low Register, thus (retval == 0xff) indicates a single VC4, otherwise three VC3's are indicated.

Definition at line 1016 of file lib_sdh.c.

int edt_sdh_reg_set_E1_frame_disable ( edt_sdh_t sdh_p,
int  channel,
int  disable 
)

Set the E1 disable registers for a specified STM1.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
disable containing a zero or nonzero value to clear or set the E1 Frame Disable Register.
Returns:
0 on success and nonzero on parameter check error.
This function sets the selected STM1 E1 Frame Disable Register to 1 if disable is nonzero, otherwise it is cleared.

Definition at line 928 of file lib_sdh.c.

int edt_sdh_reg_set_E4_frame_disable ( edt_sdh_t sdh_p,
int  channel,
int  disable 
)

Set the E4 disable register for a specified STM1.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
channel containing the demux channel (0-15) of interest.
disable containing a zero or nonzero value to clear or set the E4 Frame Disable Register.
Returns:
0 on success and nonzero on parameter check error.
This function sets the selected STM1 E4 Frame Disable Register to 1 if disable is nonzero, otherwise it is cleared.

Definition at line 776 of file lib_sdh.c.

int edt_sdh_release_board ( edt_sdh_t sdh_p  ) 

Release the SDH demux board.

Parameters:
sdh_p containing an edt_sdh_t* handle returned by edt_sdh_board_setup().
Returns:
0 on success and -1 if sdh_p is NULL.
This function releases all resources allocated by edt_sdh_board_setup().

Definition at line 203 of file lib_sdh.c.

int edt_sdh_set_ring_buffer_size_number ( edt_sdh_t sdh_p,
int  bufsize,
int  numbufs 
)

Set ring buffer size and number for an open sdh_p.

Parameters:
sdh_p containing an edt_sdh_t* handle returned by edt_sdh_board_setup().
Returns:
0 on success and -1 if sdh_p is NULL.
This function sets both the ring buffer size and number of ring buffers before calling edt_sdh_start_stm1_to_e1_channel(). For E1 packets, the buffer size should be a multiple of 40 bytes.

Definition at line 231 of file lib_sdh.c.

int edt_sdh_start_stm1_to_e1_channel ( edt_sdh_t sdh_p,
int  stm1,
int  channel,
int  callbackControl,
int(*)(void *e1buf, void *auxArg)  e1_callback,
void *  callbackArg,
int  loops 
)

Create an e1 packet processing data stream corresponding to a single STM1 input.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
stm1 single STM1 input number to assocate with the following DMA channel.
channel containing a DMA channel number corresponding to a single STM1 input demuxed e1 data packets.
callbackControl containing either CALLBACK_PER_E1_FRAME or CALLBACK_PER_RING_BUFFER.
e1_callback containing a pointer to a function which will be called for each demuxed e1 data packet.
callbackArg containing a pointer to data to be passed to the e1_callback funciton.
loops containing an integer specifying the number of buffers to process with 0 meaning unlimited.
Returns:
0 only after edt_sdh_stop_stm1_to_e1_channel() is called by another thread sharing the same sdh_p handle, or -1 on error.
This function creates a ring-buffer based data stream and sends each demuxed e1 packet to the supplied e1_callback function. Processing continues indefinitely until edt_sdh_stop_stm1_to_e1_channel() is called for this sdh_p and this stm1 by an asynchronous thread.

Callbacks will occur on a per-e1 frame or on a per-completed ring buffer basis, depending on the value of the callbackControl parameter. It is then up to the callback function to complete processing of the data in a timely fashion so that DMA does not circle around the ring buffer and overwrite the buffer data while it is being processed.

Ring buffers are numbered and sized as follows: 4 buffers each of size 40 * 32 * 1024 (about 1.3 Mbytes). Each ring buffer will contain 32768 E1 packets each of 40 bytes (8 bytes of timestamp and status and 32 bytes of E1 data). Since each of the 16 DMA channels will be running at about 25 Mbytes/sec, this is the recommended size and number of ring buffers. Larger or more buffers could cause the system to experience unnecessary memory subsystem activity or thrashing.

Definition at line 384 of file lib_sdh.c.

int edt_sdh_start_stm1_to_e1_channel_timeout ( edt_sdh_t sdh_p,
int  stm1,
int  channel,
int  callbackControl,
int(*)(void *e1buf, void *auxArg)  e1_callback,
void *  callbackArg,
int  loops,
int(*)(edt_sdh_t *sdh_p, int channel)  timeout_callback,
int  timeout,
int  timeout_ok 
)

Create an e1 packet processing data stream corresponding to a single STM1 input with timeouts enabled, qualified, and a timeout callback issued upon timeout.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
stm1 single STM1 input number to assocate with the following DMA channel.
channel containing a DMA channel number corresponding to a single STM1 input demuxed e1 data packets.
callbackControl containing either CALLBACK_PER_E1_FRAME or CALLBACK_PER_RING_BUFFER.
e1_callback containing a pointer to a function which will be called for each demuxed e1 data packet.
callbackArg containing a pointer to data to be passed to the e1_callback funciton.
loops containing an integer specifying the number of buffers to process with 0 meaning unlimited.
timeout_callback containing a function pointer to be called upon a ring buffer timeout.
timeout containing an integer specifying the number of miliseconds to wait before DMA is timed out with 0 meaning no timeout.
timeout_ok containing an integer containing 0 to cause a timeout to abort DMA and stop the ring buffer, or 1 to simply notify of the timeout.
Returns:
0 only after edt_sdh_stop_stm1_to_e1_channel() is called by another thread sharing the same sdh_p handle, or -1 on error.
This function creates a ring-buffer based data stream and sends each demuxed e1 packet to the supplied e1_callback function. Processing continues indefinitely until edt_sdh_stop_stm1_to_e1_channel() is called for this sdh_p and this stm1 by an asynchronous thread.

Callbacks will occur on a per-e1 frame or on a per-completed ring buffer basis, depending on the value of the callbackControl parameter. It is then up to the callback function to complete processing of the data in a timely fashion so that DMA does not circle around the ring buffer and overwrite the buffer data while it is being processed.

Ring buffers are numbered and sized as follows: 4 buffers each of size 40 * 32 * 1024 (about 1.3 Mbytes). Each ring buffer will contain 32768 E1 packets each of 40 bytes (8 bytes of timestamp and status and 32 bytes of E1 data). Since each of the 16 DMA channels will be running at about 25 Mbytes/sec, this is the recommended size and number of ring buffers. Larger or more buffers could cause the system to experience unnecessary memory subsystem activity or thrashing.

Definition at line 422 of file lib_sdh.c.

int edt_sdh_stm_is_framed ( edt_sdh_t sdh_p  ) 

Return nonzero when the STM input signal is framed.

Parameters:
sdh_p containing a handle returned from edt_open() or edt_open_channel().
Returns:
nonzero when the STM input signal is framed, zero otherwise.
This function queries the OCX interface for STM signal framed.

Definition at line 616 of file lib_sdh.c.

int edt_sdh_stop_stm1_to_e1_channel ( edt_sdh_t sdh_p,
int  stm1 
)

Cause a previously created e1 packet processing data stream to halt operation and return.

Parameters:
sdh_p containing a handle returned from edt_sdh_board_setup().
stm1 containing a DMA channel number corresponding to a single STM1 input demuxed e1 data packets.
Returns:
0 on success and nonzero on parameter check error.
This function causes edt_sdh_start_stm1_to_e1_channel() to cease operation, disable its ring buffer and return.

Definition at line 545 of file lib_sdh.c.


Generated on 19 Jun 2015 by  doxygen 1.4.7