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

Functions

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_RtCfg (int16_t device, naibrd_1553_rt_commandStackSize_t commandStackSize, naibrd_1553_rt_options_t rtOptions)
 Configure a RT.
 

Detailed Description

Function Documentation

◆ naibrd_1553_RtCfg()

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_RtCfg ( int16_t device,
naibrd_1553_rt_commandStackSize_t commandStackSize,
naibrd_1553_rt_options_t rtOptions )

Configure a RT.

Parameters
device: (Input) Logical Device Number (0-31).
commandStackSize: (Input) Desired RT command stack size (NAIBRD_1553_RT_CMDSTK_SIZE_256, NAIBRD_1553_RT_CMDSTK_SIZE_512, NAIBRD_1553_RT_CMDSTK_SIZE_1024, NAIBRD_1553_RT_CMDSTK_SIZE_2048).
rtOptions: (Input) RT options. The following bit masks, which correspond to a bit in the Configuration Register #2, may be logically OR'ed together to set one or more options.
* NAIBRD_1553_RT_OPT_CLEAR_SERVICE_REQUEST
* Clear service request after Tx vector word.
* NAIBRD_1553_RT_OPT_LOAD_TIME_TAG
* Load time tag on synchronize command.
* NAIBRD_1553_RT_OPT_CLEAR_TIME_TAG
* Clear time tag on synchronize command.
* NAIBRD_1553_RT_OPT_OVERWRITE_DATA
* Overwrite invalid data.
* NAIBRD_1553_RT_OPT_OVERRIDE_MODE_BIT
* Override mode T/R* error.
* NAIBRD_1553_RT_OPT_ALTERNATE_STATUS
* RT alternate status word enable.
* NAIBRD_1553_RT_OPT_ILL_RX_DISABLE
* Illegal receive transfer disable.
* NAIBRD_1553_RT_OPT_BUSY_RX_DISABLE
* Busy receive transfer disable.
* NAIBRD_1553_RT_OPT_SET_RT_FLAG
* Flag if loopback test failed.
* NAIBRD_1553_RT_OPT_1553A_MODE_CODES
* 1553a mode codes enabled.
* NAIBRD_1553_RT_OPT_MODE_COMMAND_OVERRIDE_BUSY
* Busy bit and data word sent.
* NAIBRD_1553_RT_OPT_BROADCAST_DISABLE
* Broadcast disabled.
* 
Returns
  • NAI_SUCCESS
  • NAIBRD_1553_RC_INVALID_DEVICE_NUMBER when incorrect device number was input
  • NAIBRD_1553_RC_INVALID_MODE when device is not set in RT mode
  • NAIBRD_1553_RC_INVALID_STATE when device is in an invalid state
  • NAIBRD_1553_RC_INVALID_PARAMETER when commandStackSize is an invalid value