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

Functions

static bool_t naiapp_Run_PB_BasicOps (void)
 naiapp_Run_PB_BasicOps illustrates...
 
static void printMasterState (NAIBRD_PB_DPM_MASTER_STATE masterState)
 
static void printOperationMode (NAIBRD_PB_DPM_OPERATION_MODE operationMode)
 
static void naibrd_PB_PrintPBStatus (int32_t pbStatus)
 
bool_t EXEC_naibrd_PB_GetMS0ConnectionStatus ()
 
bool_t EXEC_naibrd_PB_ResetMS0ConnectionCounters ()
 
bool_t EXEC_naibrd_PB_GetAlarmCounters ()
 
bool_t EXEC_naibrd_PB_ResetAlarmCounters ()
 
bool_t EXEC_naibrd_PB_GetLastAlarmData ()
 
bool_t EXEC_naibrd_PB_GetSlaveDiagnostics ()
 
bool_t EXEC_naibrd_PB_SetandEnableMaxCycleCounter ()
 
bool_t EXEC_naibrd_PB_GetCPULoad ()
 
bool_t EXEC_naibrd_PB_StartReconfiguration ()
 
bool_t EXEC_naibrd_PB_SetSystemTime ()
 
bool_t EXEC_naibrd_PB_GetSystemTime ()
 
bool_t EXEC_naibrd_PB_EnableRedundancy ()
 
bool_t EXEC_naibrd_PB_GetLiveList ()
 
bool_t EXEC_naibrd_PB_BusParamReconfiguration ()
 
bool_t EXEC_naibrd_PB_GetOperationMode ()
 
bool_t EXEC_naibrd_PB_SetPollCycleMode ()
 
bool_t EXEC_naibrd_PB_ReadIOData ()
 
bool_t EXEC_naibrd_PB_GetStatistics ()
 
bool_t EXEC_naibrd_PB_SetNewIOConfig ()
 
bool_t EXEC_naibrd_PB_GetPSAKVersion ()
 
bool_t EXEC_naibrd_PB_WriteIOData ()
 
bool_t EXEC_naibrd_PB_SetDynamicBusParams ()
 
bool_t EXEC_naibrd_PB_SetBusParams ()
 
bool_t EXEC_naibrd_PB_TestSegment ()
 
bool_t EXEC_naibrd_PB_TestTermination ()
 
bool_t EXEC_naibrd_PB_SetOffline ()
 
bool_t EXEC_naibrd_PB_SetStop ()
 
bool_t EXEC_naibrd_PB_SetClear ()
 
bool_t EXEC_naibrd_PB_SetOperate ()
 
bool_t EXEC_naibrd_PB_AcyclicRead ()
 
bool_t EXEC_naibrd_PB_AcyclicWrite ()
 
bool_t EXEC_naibrd_PB_InitiateCommunication ()
 
bool_t EXEC_naibrd_PB_AbortCommunication ()
 
bool_t EXEC_naibrd_PB_GetLockStatusForSegments ()
 
int32_t naiapp_PB_BasicOps (void)
 The main routine assists in gaining access to the board.
 

Variables

static const int8_t * DEF_CONFIG_FILE = (int8_t *)"default_PBBasicOps.txt"
 The purpose of the PB_BasicOps is to illustrate the methods to call in the library to perform basic profibus operations.
 
PBConfig inputPBConfig
 

Function Documentation

◆ EXEC_naibrd_PB_AbortCommunication()

bool_t EXEC_naibrd_PB_AbortCommunication ( )

◆ EXEC_naibrd_PB_AcyclicRead()

bool_t EXEC_naibrd_PB_AcyclicRead ( )

◆ EXEC_naibrd_PB_AcyclicWrite()

bool_t EXEC_naibrd_PB_AcyclicWrite ( )

◆ EXEC_naibrd_PB_BusParamReconfiguration()

bool_t EXEC_naibrd_PB_BusParamReconfiguration ( )

◆ EXEC_naibrd_PB_EnableRedundancy()

bool_t EXEC_naibrd_PB_EnableRedundancy ( )

◆ EXEC_naibrd_PB_GetAlarmCounters()

bool_t EXEC_naibrd_PB_GetAlarmCounters ( )

◆ EXEC_naibrd_PB_GetCPULoad()

bool_t EXEC_naibrd_PB_GetCPULoad ( )

◆ EXEC_naibrd_PB_GetLastAlarmData()

bool_t EXEC_naibrd_PB_GetLastAlarmData ( )

◆ EXEC_naibrd_PB_GetLiveList()

bool_t EXEC_naibrd_PB_GetLiveList ( )

◆ EXEC_naibrd_PB_GetLockStatusForSegments()

bool_t EXEC_naibrd_PB_GetLockStatusForSegments ( )

◆ EXEC_naibrd_PB_GetMS0ConnectionStatus()

bool_t EXEC_naibrd_PB_GetMS0ConnectionStatus ( )

◆ EXEC_naibrd_PB_GetOperationMode()

bool_t EXEC_naibrd_PB_GetOperationMode ( )

◆ EXEC_naibrd_PB_GetPSAKVersion()

bool_t EXEC_naibrd_PB_GetPSAKVersion ( )

◆ EXEC_naibrd_PB_GetSlaveDiagnostics()

bool_t EXEC_naibrd_PB_GetSlaveDiagnostics ( )

◆ EXEC_naibrd_PB_GetStatistics()

bool_t EXEC_naibrd_PB_GetStatistics ( )

◆ EXEC_naibrd_PB_GetSystemTime()

bool_t EXEC_naibrd_PB_GetSystemTime ( )

◆ EXEC_naibrd_PB_InitiateCommunication()

bool_t EXEC_naibrd_PB_InitiateCommunication ( )

◆ EXEC_naibrd_PB_ReadIOData()

bool_t EXEC_naibrd_PB_ReadIOData ( )

◆ EXEC_naibrd_PB_ResetAlarmCounters()

bool_t EXEC_naibrd_PB_ResetAlarmCounters ( )

◆ EXEC_naibrd_PB_ResetMS0ConnectionCounters()

bool_t EXEC_naibrd_PB_ResetMS0ConnectionCounters ( )

◆ EXEC_naibrd_PB_SetandEnableMaxCycleCounter()

bool_t EXEC_naibrd_PB_SetandEnableMaxCycleCounter ( )

◆ EXEC_naibrd_PB_SetBusParams()

bool_t EXEC_naibrd_PB_SetBusParams ( )

◆ EXEC_naibrd_PB_SetClear()

bool_t EXEC_naibrd_PB_SetClear ( )

◆ EXEC_naibrd_PB_SetDynamicBusParams()

bool_t EXEC_naibrd_PB_SetDynamicBusParams ( )

◆ EXEC_naibrd_PB_SetNewIOConfig()

bool_t EXEC_naibrd_PB_SetNewIOConfig ( )

◆ EXEC_naibrd_PB_SetOffline()

bool_t EXEC_naibrd_PB_SetOffline ( )

◆ EXEC_naibrd_PB_SetOperate()

bool_t EXEC_naibrd_PB_SetOperate ( )

◆ EXEC_naibrd_PB_SetPollCycleMode()

bool_t EXEC_naibrd_PB_SetPollCycleMode ( )

◆ EXEC_naibrd_PB_SetStop()

bool_t EXEC_naibrd_PB_SetStop ( )

◆ EXEC_naibrd_PB_SetSystemTime()

bool_t EXEC_naibrd_PB_SetSystemTime ( )

◆ EXEC_naibrd_PB_StartReconfiguration()

bool_t EXEC_naibrd_PB_StartReconfiguration ( )

◆ EXEC_naibrd_PB_TestSegment()

bool_t EXEC_naibrd_PB_TestSegment ( )

◆ EXEC_naibrd_PB_TestTermination()

bool_t EXEC_naibrd_PB_TestTermination ( )

◆ EXEC_naibrd_PB_WriteIOData()

bool_t EXEC_naibrd_PB_WriteIOData ( )

◆ naiapp_PB_BasicOps()

int32_t naiapp_PB_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_PB_BasicOps()

static bool_t naiapp_Run_PB_BasicOps ( void )
static

naiapp_Run_PB_BasicOps illustrates...

◆ naibrd_PB_PrintPBStatus()

static void naibrd_PB_PrintPBStatus ( int32_t pbStatus)
static

◆ printMasterState()

static void printMasterState ( NAIBRD_PB_DPM_MASTER_STATE masterState)
static

◆ printOperationMode()

static void printOperationMode ( NAIBRD_PB_DPM_OPERATION_MODE operationMode)
static

Variable Documentation

◆ DEF_CONFIG_FILE

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

The purpose of the PB_BasicOps is to illustrate the methods to call in the library to perform basic profibus operations.

◆ inputPBConfig

PBConfig inputPBConfig