Mtp3SetNSapCfg

Configures the MTP 3 task with the network SAP configuration values contained in the provided MTP3NSapCfg structure.

Prototype

MTP3_STATUS Mtp3SetNSapCfg ( 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 the MTP3NSapCfg structure containing the network SAP configuration values.

nSapNo

Network SAP number to assign to this NSAP. 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

An application must set the field values in the MTP3NSapCfg structure before calling this function. Set the values by calling Mtp3InitNSapCfg, by setting each field from within the application, or with a combination of the two (calling Mtp3InitNSapCfg and overriding specific fields before passing the MTP3NSapCfg structure to this function).

This function is typically called once for each configured NSAP.

See also

Mtp3InitNSapCfg, Mtp3MgmtInit, Mtp3SetGenCfg