Software Library API naibrd 1.62
See all documentation at naii.docs.com
1553 Remote Terminal/Bus Monitor (RT-MT) Functions

Functions

NAIBRDFUNC nai_1553_t NAIAPI naibrd_1553_RtMtInitialize (int16_t swDevice, uint16_t wRtCommandStackSize, uint16_t wMtStackMode, uint16_t wMtCommandStackSize, uint16_t wMtDataStackSize, uint32_t dwOptions)
 Initialize the 1553 device as a Remote Terminal and Bus Monitor (RT-MT) with the given configuration options.
 
NAIBRDFUNC nai_1553_t NAIAPI naibrd_1553_RtMtStart (int16_t swDevice)
 Start RT-MT device.
 
NAIBRDFUNC nai_1553_t NAIAPI naibrd_1553_RtMtStop (int16_t swDevice)
 Stop RT-MT device.
 

Detailed Description


Function Documentation

◆ naibrd_1553_RtMtInitialize()

NAIBRDFUNC nai_1553_t NAIAPI naibrd_1553_RtMtInitialize ( int16_t swDevice,
uint16_t wRtCommandStackSize,
uint16_t wMtStackMode,
uint16_t wMtCommandStackSize,
uint16_t wMtDataStackSize,
uint32_t dwOptions )

Initialize the 1553 device as a Remote Terminal and Bus Monitor (RT-MT) with the given configuration options.

Parameters
swDevice: (Input) Logical Device Number (0-31).
wRtCommandStackSize: (Input) Desired RT command stack size.
NAI_1553_RT_CMDSTK_SIZE_256           (DDC: ACE_RT_CMDSTK_256)
256 words

NAI_1553_RT_CMDSTK_SIZE_512           (DDC: ACE_RT_CMDSTK_512)
512 words

NAI_1553_RT_CMDSTK_SIZE_1024          (DDC: ACE_RT_CMDSTK_1024)
1024 words

NAI_1553_RT_CMDSTK_SIZE_2048          (DDC: ACE_RT_CMDSTK_2048)
2048 words
wMtStackMode: (Input) Stack Mode (NAI_1553_MT_STACK_OPT_SINGLE or NAI_1553_MT_STACK_OPT_DOUBLE).
wMtCommandStackSize: (Input) Size of command stack.
NAI_1553_MT_CMD_STACK_SIZE_256        (DDC: ACE_MT_CMDSTK_256)
256 words (64 messages)

NAI_1553_MT_CMD_STACK_SIZE_1024       (DDC: ACE_MT_CMDSTK_1K)
1024 words (256 messages)

NAI_1553_MT_CMD_STACK_SIZE_4096       (DDC: ACE_MT_CMDSTK_4K)
4096 words (1024 messages)

NAI_1553_MT_CMD_STACK_SIZE_16384      (DDC: ACE_MT_CMDSTK_16K)
16384 words (4096 messages)
wMtDataStackSize: (Input) Size of data stack.
NAI_1553_MT_DATA_STACK_SIZE_512       (DDC: ACE_MT_DATASTK_512)
512 words

NAI_1553_MT_DATA_STACK_SIZE_1024      (DDC: ACE_MT_DATASTK_1K)
1024 words

NAI_1553_MT_DATA_STACK_SIZE_2048      (DDC: ACE_MT_DATASTK_2K)
2048 words

NAI_1553_MT_DATA_STACK_SIZE_4096      (DDC: ACE_MT_DATASTK_4K)
4096 words

NAI_1553_MT_DATA_STACK_SIZE_8192      (DDC: ACE_MT_DATASTK_8K)
8192 words

NAI_1553_MT_DATA_STACK_SIZE_16384     (DDC: ACE_MT_DATASTK_16K)
16384 words

NAI_1553_MT_DATA_STACK_SIZE_32768     (DDC: ACE_MT_DATASTK_32K)
32768 words
dwOptions: (Input) RT-MT options. The following bit masks may be logically OR'ed together to set one or more options.
NAI_1553_RT_OPT_CLEAR_SERVICE_REQUEST
Clear service request after Tx vector word.
NAI_1553_RT_OPT_LOAD_TIME_TAG
Load time tag on synchronize command.
NAI_1553_RT_OPT_CLEAR_TIME_TAG
Clear time tag on synchronize command.
NAI_1553_RT_OPT_OVERWRITE_DATA
Overwrite invalid data.
NAI_1553_RT_OPT_OVERRIDE_MODE_BIT
Override mode T/R* error.
NAI_1553_RT_OPT_ALTERNATE_STATUS
RT alternate status word enable.
NAI_1553_RT_OPT_ILL_RX_DISABLE
Illegal receive transfer disable.
NAI_1553_RT_OPT_BUSY_RX_DISABLE
Busy receive transfer disable.
NAI_1553_RT_OPT_SET_RT_FLAG
Flag if loopback test failed.
NAI_1553_RT_OPT_1553A_MODE_CODES
RT 1553a mode codes enabled.
NAI_1553_RT_OPT_MODE_COMMAND_OVERRIDE_BUSY
Busy bit and data word sent.
NAI_1553_RT_OPT_BROADCAST_DISABLE
Broadcast disabled.
NAI_1553_MT_OPT_1553A_MODE_CODES_ENABLED
MT 1553a mode codes enabled.
Returns
  • NAI_SUCCESS when function is completed successfully
  • NAI_1553_RC_INVALID_DEVICE_NUMBER when incorrect device number was input
  • NAI_1553_RC_INVALID_MODE when device mode is not set to RT/MT
  • NAI_1553_RC_INVALID_STATE when device is in an invalid state
  • NAI_1553_RC_MT_INVALID_STACK_OPTION when an invalid wMtStackMode is specified
  • NAI_1553_RC_MT_INVALID_COMMAND_STACK_SIZE when an invalid wRtCommandStackSize or wMtCommandStackSize is specified
  • NAI_1553_RC_MT_INVALID_DATA_STACK_SIZE when an invalid wMtDataStackSize is specified

◆ naibrd_1553_RtMtStart()

NAIBRDFUNC nai_1553_t NAIAPI naibrd_1553_RtMtStart ( int16_t swDevice)

Start RT-MT device.

Equivalent DDC definition: aceRTMTStart

Parameters
swDevice: (Input) Logical Device Number (0-31).
Returns
  • NAI_SUCCESS when function is completed successfully
  • NAI_1553_RC_INVALID_DEVICE_NUMBER when incorrect device number was input
  • NAI_1553_RC_INVALID_MODE when device mode is not set to RT/MT
  • NAI_1553_RC_INVALID_STATE when device is in an invalid state

◆ naibrd_1553_RtMtStop()

NAIBRDFUNC nai_1553_t NAIAPI naibrd_1553_RtMtStop ( int16_t swDevice)

Stop RT-MT device.

Equivalent DDC definition: aceRTMTStop

Parameters
swDevice: (Input) Logical Device Number (0-31).
Returns
  • NAI_SUCCESS when function is completed successfully
  • NAI_1553_RC_INVALID_DEVICE_NUMBER when incorrect device number was input
  • NAI_1553_RC_INVALID_MODE when device mode is not set to RT/MT
  • NAI_1553_RC_INVALID_STATE when device is in an invalid state