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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CAN_SetLevelControl (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 This function is for diagnostic use only. When enabled, it will force the channel to output a constant dominant level for 300-700 microseconds, then force the level recessive until disabled.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CAN_SetTermination (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable)
 This function turns on termination for the desired channel.
 

Detailed Description

Function Documentation

◆ naibrd_AR_CAN_SetLevelControl()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CAN_SetLevelControl ( int32_t cardIndex,
int32_t module,
int32_t channel,
bool_t enable )

This function is for diagnostic use only. When enabled, it will force the channel to output a constant dominant level for 300-700 microseconds, then force the level recessive until disabled.

Parameters
cardIndex: (Input) Logical Card Index assigned to connect 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]).
enable: (Input) Level Control Enable (NAI_TRUE: Enable, NAI_FALSE: Disable).
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_AR_CAN_SetTermination()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CAN_SetTermination ( int32_t cardIndex,
int32_t module,
int32_t channel,
bool_t enable )

This function turns on termination for the desired channel.

Parameters
cardIndex: (Input) Logical Card Index assigned to connect 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]).
enable: (Input) Termination Enable (NAI_TRUE: Enable, NAI_FALSE: Disable).
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.