SccpSetAddrCfg

Sends an SCCP global title translation parameter block to the specified TX board.

Prototype

SCCP_STATUS SccpSetAddrCfg ( U8 board, SccpAddrMapCfg *pCfg)

Argument

Description

board

TX board number.

pCfg

Pointer to the address of the global title translation parameters buffer. The format is specified in SccpInitAddrCfg.


Return values

Return value

Description

SCCP_SUCCESS

 

SCCP_BADDIGIT

SccpAddrName contains invalid BCD digits.

SCCP_BOARD

board is out of range.

SCCP_BUFLEN

Length specified for SccpAddrName is invalid.

SCCP_DRIVER

Error occurred accessing the driver.

SCCP_EXCEEDMAXCFG

Too many global title definitions.

SCCP_NOGENCFG

SccpSetGenCfg has not been called.

SCCP_NULLPTR

Null pointer was specified for pCfg.

SCCP_PARAM

Invalid parameter was detected. Check the txalarm log.

SCCP_POINTCODE

Translated point code is out of range.

SCCP_RANGE

One or more of the following fields is out of range: addr.niInd, addr.rtgInd, addr.gt.format.

SCCP_RESOURCES

TX board resource is exhausted. Check the txalarm log.

SCCP_SWTYPE

Invalid switch type was specified.

SCCP_TIMEOUT

Request timed out.

SCCP_UNINIT

Application failed to call SccpMgmtInit prior to this call.


Details

This function can be called any time after the general configuration is downloaded to the TX board, but before any application attempts to send data for transaction processing.

Once a global title translation is set by SccpSetAddrCfg, it can only be modified by first deleting it with SccpDelAddrCfg, and then calling SccpSetAddrCfg with the new parameters.

pCfg must have been previously initialized with SccpInitAddrCfg.