The following functions are provided by the Prosody I.460 Mux API:
API call | W | Description |
---|---|---|
sm_i460mux_create() | Create an I.460 Mux | |
sm_i460mux_datafeed_connect() | Connect a datafeed to an input of an I.460 MUX. | |
sm_i460mux_datafeed_disconnect() | Disconnect a datafeed to an I.460 MUX. | |
sm_i460mux_destroy() | Destroy an I.460 Mux | |
sm_i460mux_get_datafeed() | Get datafeed from I.460 MUX. | |
sm_i460mux_get_event() | Get an event for the I.460 mux | |
sm_i460mux_status() | Fetch status info on I.460 mux |
This document is also available as separate pages for each function.
int sm_i460mux_create(struct sm_i460mux_create_parms *createp)
typedef struct sm_i460mux_create_parms { tSMI460muxId i460mux; /* out */ tSMModuleId module; /* in */ } SM_I460MUX_CREATE_PARMS;
Creates an I.460 Mux.
0 if call completed successfully, otherwise a standard error such as:
int sm_i460mux_datafeed_connect(struct sm_i460mux_datafeed_connect_parms *datafeedp)
typedef struct sm_i460mux_datafeed_connect_parms { tSMDatafeedId data_source; /* in */ tSMI460muxId i460mux; /* in */ tSMI460InputId input_id; /* out */ } SM_I460MUX_DATAFEED_CONNECT_PARMS;
Connect a datafeed to one of the inputs of the I.460 mux. Up to eight datafeeds may be connected to a single I.460 mux. The datafeed is assumed to be carrying a datastream that has already been uprated by being masked into the correct bit(s) of each octet. This can be achieved by using the datatx firmware module, configured with an appropriate i460_mask. It is up to the user to ensure that the masks used by different datafeeds connected to the same I.460 mux do not overlap.
0 if call completed successfully, otherwise a standard error such as:
int sm_i460mux_datafeed_disconnect(struct sm_i460mux_datafeed_disconnect_parms *datafeedp)
typedef struct sm_i460mux_datafeed_disconnect_parms { tSMI460muxId i460mux; /* in */ tSMI460InputId input_id; /* in */ } SM_I460MUX_DATAFEED_DISCONNECT_PARMS;
Disconnect a datafeed on one of the inputs of the I.460 mux.
0 if call completed successfully, otherwise a standard error such as:
int sm_i460mux_destroy(tSMI460muxId mux)
Destroys an I.460 Mux.
0 if call completed successfully, otherwise a standard error such as:
int sm_i460mux_get_datafeed(struct sm_i460mux_datafeed_parms *datafeedp)
typedef struct sm_i460mux_datafeed_parms { tSMI460muxId i460mux; /* in */ tSMDatafeedId datafeed; /* out */ } SM_I460MUX_DATAFEED_PARMS;
Request a datafeed identifier from an I.460 mux. This identifier can subsequently used in a call to sm_tdmtx_datafeed_connect() or sm_channel_datafeed_connect().
0 if call completed successfully, otherwise a standard error such as:
int sm_i460mux_get_event(struct sm_i460mux_event_parms *eventp)
typedef struct sm_i460mux_event_parms { tSMI460muxId i460mux; /* in */ tSMEventId event; /* out */ } SM_I460MUX_EVENT_PARMS;
The event will be signalled when a status change occurs on the mux.
0 if call completed successfully, otherwise a standard error such as:
int sm_i460mux_status(struct sm_i460mux_status_parms *statusp)
typedef struct sm_i460mux_status_parms { tSMI460muxId i460mux; /* in */ enum kSMI460muxStatus { kSMI460muxStatusRunning, kSMI460muxStatusStopped, } status; /* out */ } SM_I460MUX_STATUS_PARMS;
returns the status of the I.460 mux.
0 if call completed successfully, otherwise a standard error such as:
These functions constitute the Prosody I.460 Mux API.