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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_OpenDevice (int32_t cardIndex, naibrd_comm_t comm, const char *p_device)
 Opens access to the board based on the device name and communication mode.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_Close (int32_t cardIndex)
 Closes a connection to a card.
 

Detailed Description

Function Documentation

◆ naibrd_Close()

NAIBRDFUNC nai_status_t NAIAPI naibrd_Close ( int32_t cardIndex)

Closes a connection to a card.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.

◆ naibrd_OpenDevice()

NAIBRDFUNC nai_status_t NAIAPI naibrd_OpenDevice ( int32_t cardIndex,
naibrd_comm_t comm,
const char * p_device )

Opens access to the board based on the device name and communication mode.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
comm: (Input) Communications mode to use. Refer to naibrd_comm_t for communication modes.
p_device: (Input) Device name (NAI_DEV_NAME_75G5, NAI_DEV_NAME_68G5, NAI_DEV_NAME_75C5, etc). Refer to Device Name Declarations in nai_libs\nailib\include\nailib.h.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.