![background image](http://html1.mh-extra.com/html/aim/api-fdx-2-v2/api-fdx-2-v2_getting-started-manual_2871728033.webp)
API-FDX Linux Getting Started Manual
25
GmbH
Section 8 – Programming the API-FDX Module
8.1.4. Initializing the AyI-FDX Ports
void MyFdxResetPort()
{
TY_FDX_PORT_INIT_IN x_PortInitIn;
TY_FDX_PORT_INIT_OUT x_PortInitOut;
if (g_ulPort1Handle > 0)
{
x_PortInitIn.ul_PortMap = 1;
FdxCmdTxPortInit(g_ulPort1Handle, &x_PortInitIn, &x_PortInitOut);
}
if (g_ulPort2Handle > 0)
{
x_PortInitIn.ul_PortMap = 2;
FdxCmdRxPortInit(g_ulPort2Handle, &x_PortInitIn, &x_PortInitOut);
}
}