Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
can_basic_ops.c File Reference

Functions

static bool_t naiapp_Run_CAN_Rx (int32_t cardIndex, int32_t module, int32_t rxChannel, bool_t isJ1939)
 naiapp_Run_CAN_Rx illustrates the methods to perform a CAN Receive operation.
 
static bool_t naiapp_Run_CAN_Tx (int32_t cardIndex, int32_t module, uint32_t modId, int32_t txChannel, bool_t isJ1939, int32_t txCount)
 naiapp_Run_CAN_Tx illustrates the methods to perform a CAN Transmit operation.
 
static bool_t naiapp_Run_CAN_BasicOps (int32_t cardIndex, int32_t module, uint32_t modId)
 naiapp_Run_CAN_BasicOps illustrates the methods to configure the Rx and Tx channels and makes calls to naiapp_Run_CAN_Tx and naiapp_Run_CAN_Rx to perform the CAN Transmit and Receive respectively.
 
int32_t naiapp_CAN_BasicOps (void)
 The main routine assists in gaining access to the board.
 

Variables

static const int8_t * DEF_CONFIG_FILE = (int8_t *)"default_CANBasicOps.txt"
 The purpose of the CAN_BasicOps is to illustrate the methods to call in the library to perform a CAN Transmit on a single channel and a CAN Receive on a single channel.
 

Function Documentation

◆ naiapp_CAN_BasicOps()

int32_t naiapp_CAN_BasicOps ( void )

The main routine assists in gaining access to the board.

The following routines from the nai_sys_cfg.c file are called to assist with accessing and configuring the board.

  • ConfigDevice
  • DisplayDeviceCfg
  • GetBoardSNModCfg
  • CheckModule

◆ naiapp_Run_CAN_BasicOps()

static bool_t naiapp_Run_CAN_BasicOps ( int32_t cardIndex,
int32_t module,
uint32_t modId )
static

naiapp_Run_CAN_BasicOps illustrates the methods to configure the Rx and Tx channels and makes calls to naiapp_Run_CAN_Tx and naiapp_Run_CAN_Rx to perform the CAN Transmit and Receive respectively.

◆ naiapp_Run_CAN_Rx()

static bool_t naiapp_Run_CAN_Rx ( int32_t cardIndex,
int32_t module,
int32_t rxChannel,
bool_t isJ1939 )
static

naiapp_Run_CAN_Rx illustrates the methods to perform a CAN Receive operation.

◆ naiapp_Run_CAN_Tx()

static bool_t naiapp_Run_CAN_Tx ( int32_t cardIndex,
int32_t module,
uint32_t modId,
int32_t txChannel,
bool_t isJ1939,
int32_t txCount )
static

naiapp_Run_CAN_Tx illustrates the methods to perform a CAN Transmit operation.

Variable Documentation

◆ DEF_CONFIG_FILE

const int8_t* DEF_CONFIG_FILE = (int8_t *)"default_CANBasicOps.txt"
static

The purpose of the CAN_BasicOps is to illustrate the methods to call in the library to perform a CAN Transmit on a single channel and a CAN Receive on a single channel.