Mtp2SetLinkCfg

Configures the MTP 2 task with the data link configuration values contained in the provided MTP2LinkCfg structure.

Prototype

MTP2_STATUS Mtp2SetLinkCfg (U8 board, MTP2LinkCfg *pLinkCfg)

Argument

Description

board

TX board number on which the desired MTP 2 task resides.

pLinkCfg

Pointer to the MTP2LinkCfg structure containing the data link configuration values. Refer to Mtp2InitLinkCfg for more information.


Return values

Return value

Description

MTP2_SUCCESS

 

MTP2_BOARD

Invalid board number.

MTP2_HANDLE

Mtp2MgmtInit not called for specified board.

MTP2_TIMEOUT

No response from the board.


Details

This function sets the data link configuration parameters of the MTP 2 task on the specified board. Before calling this function, an application must set the field values in the MTP2LinkCfg structure in one of the following ways:

This function is typically called once for each configured link.

See also

Mtp2InitLinkCfg, Mtp2MgmtInit