Configures the MTP 2 task with the data link configuration values contained in the provided MTP2LinkCfg structure.
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 value |
Description |
MTP2_SUCCESS |
|
MTP2_BOARD |
Invalid board number. |
MTP2_HANDLE |
Mtp2MgmtInit not called for specified board. |
MTP2_TIMEOUT |
No response from the board. |
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:
Call Mtp2InitLinkCfg.
Set each field from within the application.
Use a combination of the two, such as calling Mtp2InitLinkCfg and then overriding specific fields before passing the MTP2LinkCfg structure to this function.
This function is typically called once for each configured link.