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

Functions

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtMsgMonitoringEnable (int16_t device, uint16_t rtAddress, naibrd_1553_messageDirection_t messageDirection, naibrd_1553_rt_subaddress_mask_t rtSubaddressMask)
 Configure the 1553 MT to selectively monitor commands specified by the RT address, message direction and subaddress mask.
 
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtMsgMonitoringDisable (int16_t device, uint16_t rtAddress, naibrd_1553_messageDirection_t messageDirection, naibrd_1553_rt_subaddress_mask_t rtSubaddressMask)
 Configure the 1553 MT to avoid monitoring commands specified by the RT address, message direction and subaddress mask.
 
NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtMsgMonitoringGetStatus (int16_t device, uint16_t rtAddress, naibrd_1553_messageDirection_t messageDirection, naibrd_1553_rt_subaddress_mask_t *p_outrtSubaddressMask)
 Get the current subaddress mask for a given RT address and message direction.
 

Detailed Description

Function Documentation

◆ naibrd_1553_MtMsgMonitoringDisable()

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtMsgMonitoringDisable ( int16_t device,
uint16_t rtAddress,
naibrd_1553_messageDirection_t messageDirection,
naibrd_1553_rt_subaddress_mask_t rtSubaddressMask )

Configure the 1553 MT to avoid monitoring commands specified by the RT address, message direction and subaddress mask.

Parameters
device: (Input) Logical Device Number (0-31).
rtAddress: (Input) RT Address (0-31).
messageDirection: (Input) RT-related message direction (NAIBRD_1553_DIRECTION_RX, NAIBRD_1553_DIRECTION_TX or NAIBRD_1553_DIRECTION_ALL).
rtSubaddressMask: (Input) OR'ed combination of subaddresses 0-31, where bit i corresponds to subaddress i.
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 or RTMT
  • NAIBRD_1553_RC_INVALID_STATE when device is in an invalid state
  • NAIBRD_1553_RC_INVALID_RT_ADDRESS when invalid rtAddress is specified
  • NAIBRD_1553_RC_INVALID_DIRECTION_BIT when invalid messageDirection parameter is specified

◆ naibrd_1553_MtMsgMonitoringEnable()

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtMsgMonitoringEnable ( int16_t device,
uint16_t rtAddress,
naibrd_1553_messageDirection_t messageDirection,
naibrd_1553_rt_subaddress_mask_t rtSubaddressMask )

Configure the 1553 MT to selectively monitor commands specified by the RT address, message direction and subaddress mask.

Parameters
device: (Input) Logical Device Number (0-31).
rtAddress: (Input) RT Address (0-31).
messageDirection: (Input) RT-related message direction (NAIBRD_1553_DIRECTION_RX, NAIBRD_1553_DIRECTION_TX or NAIBRD_1553_DIRECTION_ALL).
rtSubaddressMask: (Input) OR'ed combination of subaddresses 0-31, where bit i corresponds to subaddress i.
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 or RTMT
  • NAIBRD_1553_RC_INVALID_STATE when device is in an invalid state
  • NAIBRD_1553_RC_INVALID_RT_ADDRESS when invalid rtAddress is specified
  • NAIBRD_1553_RC_INVALID_DIRECTION_BIT when invalid messageDirection parameter is specified

◆ naibrd_1553_MtMsgMonitoringGetStatus()

NAIBRDFUNC naibrd_1553_t NAIAPI naibrd_1553_MtMsgMonitoringGetStatus ( int16_t device,
uint16_t rtAddress,
naibrd_1553_messageDirection_t messageDirection,
naibrd_1553_rt_subaddress_mask_t * p_outrtSubaddressMask )

Get the current subaddress mask for a given RT address and message direction.

Parameters
device: (Input) Logical Device Number (0-31).
rtAddress: (Input) RT Address (0-31).
messageDirection: (Input) RT-related message direction (NAIBRD_1553_DIRECTION_RX, NAIBRD_1553_DIRECTION_TX or NAIBRD_1553_DIRECTION_ALL).
p_outrtSubaddressMask: (Output) OR'ed combination of subaddresses 0-31, where bit i corresponds to subaddress i.
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 or RTMT
  • NAIBRD_1553_RC_INVALID_STATE when device is in an invalid state
  • NAIBRD_1553_RC_INVALID_RT_ADDRESS when device is set to an invalid RT address
  • NAIBRD_1553_RC_INVALID_DIRECTION_BIT when invalid messageDirection parameter is specified
  • NAIBRD_1553_RC_INVALID_PARAMETER when p_outrtSubaddressMask pointer is null