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

Functions

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtCfg (int16_t device, naibrd_1553_mt_stackMode_t stackMode, naibrd_1553_mt_commandStackSize_t commandStackSize, naibrd_1553_mt_dataStackSize_t dataStackSize, naibrd_1553_mt_options_t mtOptions)
 Initialize the 1553 device as a bus monitor (MT) with the given configuration options.
 

Detailed Description

Function Documentation

◆ naibrd_1553_MtCfg()

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtCfg ( int16_t device,
naibrd_1553_mt_stackMode_t stackMode,
naibrd_1553_mt_commandStackSize_t commandStackSize,
naibrd_1553_mt_dataStackSize_t dataStackSize,
naibrd_1553_mt_options_t mtOptions )

Initialize the 1553 device as a bus monitor (MT) with the given configuration options.

Parameters
device: (Input) Logical Device Number (0-31).
stackMode: (Input) Stack Mode (NAIBRD_1553_MT_STACK_OPT_SINGLE or NAIBRD_1553_MT_STACK_OPT_DOUBLE).
commandStackSize: (Input) Size of command stack.
* NAIBRD_1553_MT_CMDSTK_SIZE_256        (DDC: ACE_MT_CMDSTK_256)
* 256 words (64 messages)
*
* NAIBRD_1553_MT_CMDSTK_SIZE_1024       (DDC: ACE_MT_CMDSTK_1K)
* 1024 words (256 messages)
*
* NAIBRD_1553_MT_CMDSTK_SIZE_4096       (DDC: ACE_MT_CMDSTK_4K)
* 4096 words (1024 messages)
*
* NAIBRD_1553_MT_CMDSTK_SIZE_16384      (DDC: ACE_MT_CMDSTK_16K)
* 16384 words (4096 messages)
* 
dataStackSize: (Input) Size of data stack.
* NAIBRD_1553_MT_DATA_STACK_SIZE_512       (DDC: ACE_MT_DATASTK_512)
* 512 words
*
* NAIBRD_1553_MT_DATA_STACK_SIZE_1024      (DDC: ACE_MT_DATASTK_1K)
* 1024 words
*
* NAIBRD_1553_MT_DATA_STACK_SIZE_2048      (DDC: ACE_MT_DATASTK_2K)
* 2048 words
*
* NAIBRD_1553_MT_DATA_STACK_SIZE_4096      (DDC: ACE_MT_DATASTK_4K)
* 4096 words
*
* NAIBRD_1553_MT_DATA_STACK_SIZE_8192      (DDC: ACE_MT_DATASTK_8K)
* 8192 words
*
* NAIBRD_1553_MT_DATA_STACK_SIZE_16384     (DDC: ACE_MT_DATASTK_16K)
* 16384 words
*
* NAIBRD_1553_MT_DATA_STACK_SIZE_32768     (DDC: ACE_MT_DATASTK_32K)
* 32768 words
* 
mtOptions: (Input) MT options (NAIBRD_1553_MT_OPT_1553A_MODE_CODES_ENABLED or 0).
Returns
  • NAI_SUCCESS when function is completed successfully
  • NAIBRD_1553_RC_INVALID_DEVICE_NUMBER when incorrect device number was input
  • NAIBRD_1553_RC_INVALID_MODE when device mode is not set to MT
  • NAIBRD_1553_RC_INVALID_STATE when device is in an invalid state
  • NAIBRD_1553_RC_MT_INVALID_STACK_OPTION when an invalid stackMode is specified
  • NAIBRD_1553_RC_MT_INVALID_COMMAND_STACK_SIZE when an invalid commandStackSize is specified
  • NAIBRD_1553_RC_MT_INVALID_DATA_STACK_SIZE when an invalid dataStackSize is specified