Mtp3GetNSapCfg

Obtains the current NSAP configuration values from the MTP 3 task.

Prototype

MTP3_STATUS Mtp3GetNSapCfg ( U8 board, MTP3NSapCfg *pNSapCfg, S16 nSapNo)

Argument

Description

board

TX board number on which the desired MTP 3 task resides. Valid range is 1 through maxboard (currently 8).

pNSapCfg

Pointer to an MTP3NSapCfg structure where the network SAP configuration values are filled.

nSapNo

Network SAP number from which to retrieve the configuration information. Valid range is 0 through the maximum number of NSAPs minus 1 as specified in Mtp3SetGenCfg.


Return values

Return value

Description

MTP3_SUCCESS

 

MTP3_BOARD

Invalid board number.

MTP3_HANDLE

Mtp3MgmtInit not called for the specified board.

MTP3_TIMEOUT

No response from the board.


Details

This function can be called any time after Mtp3MgmtInit. An application must provide a pointer to a buffer large enough to hold the MTP3NSapCfg structure. Refer to Mtp3InitNSapCfg for more information about the MTP3NSapCfg structure.

See also

Mtp3GenStatus, Mtp3MgmtInit