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

Enumerations

enum  canFunc_MainMenuCommands {
  CAN_FUNC_CMD_SELECT_CHANNEL_MMENU , CAN_FUNC_CMD_SELECT_PROTOCOL_MMENU , CAN_FUNC_CMD_SELECT_BAUD_MMENU , CAN_FUNC_CMD_RESET_CHANNEL_MMENU ,
  CAN_FUNC_CMD_ENABLE_TERMINATION_MMENU , CAN_FUNC_CMD_DISABLE_TERMINATION_MMENU , SEPARATOR1 , CAN_FUNC_CMD_SINGLE_8BYTE_XMIT_MMENU ,
  CAN_FUNC_CMD_SINGLE_64BYTE_XMIT_MMENU , CAN_FUNC_CMD_RECEIVE_MMENU , CAN_FUNC_CMD_RECEIVE_MSG_PUMP_MMENU , SEPARATOR2 ,
  CAN_FUNC_CMD_SCHEDULE_MSG_XMIT_MMENU , CAN_FUNC_CMD_START_SCHEDULE_MMENU , CAN_FUNC_CMD_STOP_SCHEDULE_MMENU , SEPARATOR3 ,
  CAN_FUNC_CMD_SET_FILTER_MMENU , CAN_FUNC_CMD_GET_FILTER_MMENU , CAN_FUNC_CMD_SET_FILTER_MASK_MMENU , CAN_FUNC_CMD_GET_FILTER_MASK_MMENU ,
  CAN_FUNC_CMD_REMOVE_FILTER_MMENU , CAN_FUNC_CMD_ENABLE_FILTERS_MMENU , CAN_FUNC_CMD_DISABLE_FILTERS_MMENU , SEPARATOR4 ,
  CAN_FUNC_CMD_RESET_TX_FIFO_MMENU , CAN_FUNC_CMD_RESET_RX_FIFO_MMENU , CAN_FUNC_CMD_ENABLE_TX_MMENU , CAN_FUNC_CMD_DISABLE_TX_MMENU ,
  CAN_FUNC_CMD_RESET_DROP_COUNT_MMENU , CAN_FUNC_CMD_DISPLAY_COUNTS_MMENU , SEPARATOR5 , CAN_FUNC_CMD_COUNT
}
 

Functions

static bool_t checkChannelNumber (int32_t card, int32_t mod, int32_t chan)
 
static void Run_CAN_DisplayCANChoices ()
 
static void Show_CanDemoFunc_Commands ()
 
static void CAN_SetChan ()
 
static void CAN_SetProtocol ()
 
static void CAN_SetBaud ()
 
static void CAN_ResetChannel ()
 
static void CAN_SetTermination (bool_t enableTermination)
 
static void CAN_Single8ByteXmit ()
 
static void CAN_Single64ByteXmit ()
 
static void CAN_ReceiveMsg ()
 
static void CAN_ReceiveMsgPump ()
 
static void CAN_ScheduleMsg ()
 
static void CAN_StartSchedule ()
 
static void CAN_StopSchedule ()
 
static void CAN_SetFilter ()
 
static void CAN_GetFilter ()
 
static void CAN_SetFilterMask ()
 
static void CAN_GetFilterMask ()
 
static void CAN_RemoveFilter ()
 
static void CAN_EnableFilters ()
 
static void CAN_DisableFilters ()
 
static void CAN_ResetTxFIFO ()
 
static void CAN_ResetRxFIFO ()
 
static void CAN_EnableTx ()
 
static void CAN_DisableTx ()
 
static void CAN_ResetDropCount ()
 
static void CAN_DisplayCounts ()
 
int32_t naiapp_AR_CAN_BasicOps (void)
 AR_CAN_Basic_Ops illustrates basic interactions with the AR_CAN function module.
 

Variables

static const int8_t * DEF_CONFIG_FILE = (int8_t *)"default_AR_CANBasicOps.txt"
 
static struct _userInput userInput
 
static struct canDemofunc_cmdtbl CAN_DemoFuncMenuCmds []
 
static bool_t globalQuit = NAI_FALSE
 
static int32_t g_moduleCount = 0
 

Enumeration Type Documentation

◆ canFunc_MainMenuCommands

Enumerator
CAN_FUNC_CMD_SELECT_CHANNEL_MMENU 
CAN_FUNC_CMD_SELECT_PROTOCOL_MMENU 
CAN_FUNC_CMD_SELECT_BAUD_MMENU 
CAN_FUNC_CMD_RESET_CHANNEL_MMENU 
CAN_FUNC_CMD_ENABLE_TERMINATION_MMENU 
CAN_FUNC_CMD_DISABLE_TERMINATION_MMENU 
SEPARATOR1 
CAN_FUNC_CMD_SINGLE_8BYTE_XMIT_MMENU 
CAN_FUNC_CMD_SINGLE_64BYTE_XMIT_MMENU 
CAN_FUNC_CMD_RECEIVE_MMENU 
CAN_FUNC_CMD_RECEIVE_MSG_PUMP_MMENU 
SEPARATOR2 
CAN_FUNC_CMD_SCHEDULE_MSG_XMIT_MMENU 
CAN_FUNC_CMD_START_SCHEDULE_MMENU 
CAN_FUNC_CMD_STOP_SCHEDULE_MMENU 
SEPARATOR3 
CAN_FUNC_CMD_SET_FILTER_MMENU 
CAN_FUNC_CMD_GET_FILTER_MMENU 
CAN_FUNC_CMD_SET_FILTER_MASK_MMENU 
CAN_FUNC_CMD_GET_FILTER_MASK_MMENU 
CAN_FUNC_CMD_REMOVE_FILTER_MMENU 
CAN_FUNC_CMD_ENABLE_FILTERS_MMENU 
CAN_FUNC_CMD_DISABLE_FILTERS_MMENU 
SEPARATOR4 
CAN_FUNC_CMD_RESET_TX_FIFO_MMENU 
CAN_FUNC_CMD_RESET_RX_FIFO_MMENU 
CAN_FUNC_CMD_ENABLE_TX_MMENU 
CAN_FUNC_CMD_DISABLE_TX_MMENU 
CAN_FUNC_CMD_RESET_DROP_COUNT_MMENU 
CAN_FUNC_CMD_DISPLAY_COUNTS_MMENU 
SEPARATOR5 
CAN_FUNC_CMD_COUNT 

Function Documentation

◆ CAN_DisableFilters()

static void CAN_DisableFilters ( )
static

◆ CAN_DisableTx()

static void CAN_DisableTx ( )
static

◆ CAN_DisplayCounts()

static void CAN_DisplayCounts ( )
static

◆ CAN_EnableFilters()

static void CAN_EnableFilters ( )
static

◆ CAN_EnableTx()

static void CAN_EnableTx ( )
static

◆ CAN_GetFilter()

static void CAN_GetFilter ( )
static

◆ CAN_GetFilterMask()

static void CAN_GetFilterMask ( )
static

◆ CAN_ReceiveMsg()

static void CAN_ReceiveMsg ( )
static

◆ CAN_ReceiveMsgPump()

static void CAN_ReceiveMsgPump ( )
static

◆ CAN_RemoveFilter()

static void CAN_RemoveFilter ( )
static

◆ CAN_ResetChannel()

static void CAN_ResetChannel ( )
static

◆ CAN_ResetDropCount()

static void CAN_ResetDropCount ( )
static

◆ CAN_ResetRxFIFO()

static void CAN_ResetRxFIFO ( )
static

◆ CAN_ResetTxFIFO()

static void CAN_ResetTxFIFO ( )
static

◆ CAN_ScheduleMsg()

static void CAN_ScheduleMsg ( )
static

◆ CAN_SetBaud()

static void CAN_SetBaud ( )
static

◆ CAN_SetChan()

static void CAN_SetChan ( )
static

◆ CAN_SetFilter()

static void CAN_SetFilter ( )
static

◆ CAN_SetFilterMask()

static void CAN_SetFilterMask ( )
static

◆ CAN_SetProtocol()

static void CAN_SetProtocol ( )
static

◆ CAN_SetTermination()

static void CAN_SetTermination ( bool_t enableTermination)
static

◆ CAN_Single64ByteXmit()

static void CAN_Single64ByteXmit ( )
static

◆ CAN_Single8ByteXmit()

static void CAN_Single8ByteXmit ( )
static

◆ CAN_StartSchedule()

static void CAN_StartSchedule ( )
static

◆ CAN_StopSchedule()

static void CAN_StopSchedule ( )
static

◆ checkChannelNumber()

static bool_t checkChannelNumber ( int32_t card,
int32_t mod,
int32_t chan )
static

◆ naiapp_AR_CAN_BasicOps()

int32_t naiapp_AR_CAN_BasicOps ( void )

AR_CAN_Basic_Ops illustrates basic interactions with the AR_CAN function module.

◆ Run_CAN_DisplayCANChoices()

void Run_CAN_DisplayCANChoices ( void )
static

◆ Show_CanDemoFunc_Commands()

static void Show_CanDemoFunc_Commands ( void )
static

Variable Documentation

◆ CAN_DemoFuncMenuCmds

struct canDemofunc_cmdtbl CAN_DemoFuncMenuCmds[]
static

◆ DEF_CONFIG_FILE

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

◆ g_moduleCount

int32_t g_moduleCount = 0
static

◆ globalQuit

bool_t globalQuit = NAI_FALSE
static

◆ userInput

struct _userInput userInput
static