Software Library API naibrd 1.62
See all documentation at naii.docs.com
1553 Device Access Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_1553_Open (int32_t cardIndex, int32_t module, int32_t channel, int16_t swDevice)
 Opens one 1553 unit (a "device" in DDC API). This function must be called to associate the swDevice with the card, module, and channel mapping before any core functions are called.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_1553_Close (int16_t swDevice)
 Closes one 1553 unit (a "device" in DDC API).
 

Detailed Description


Function Documentation

◆ naibrd_1553_Close()

NAIBRDFUNC nai_status_t NAIAPI naibrd_1553_Close ( int16_t swDevice)

Closes one 1553 unit (a "device" in DDC API).

Parameters
swDevice: (Input) Unit index (0-31).
Returns
  • NAI_SUCCESS

◆ naibrd_1553_Open()

NAIBRDFUNC nai_status_t NAIAPI naibrd_1553_Open ( int32_t cardIndex,
int32_t module,
int32_t channel,
int16_t swDevice )

Opens one 1553 unit (a "device" in DDC API). This function must be called to associate the swDevice with the card, module, and channel mapping before any core functions are called.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
swDevice: (Input) Unit index (0-31).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_IN_USE when the device is already opened.