Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
Board Connection - Ethernet Setup Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SetIPAddress (int32_t cardIndex, const char *p_ipAddress, const char *p_port)
 Sets the Ethernet IP address for the card.
 

Detailed Description

Function Documentation

◆ naibrd_SetIPAddress()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SetIPAddress ( int32_t cardIndex,
const char * p_ipAddress,
const char * p_port )

Sets the Ethernet IP address for the card.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
p_ipAddress: (Input) IP Address or host name to connect to.
p_port: (Input) Port or service name to connect to.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.