Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

2_5_LocalWriteSetpointSimpleMeasureIso.cc File Reference

#include <IsoAgLib/util/igetypos_c.h>
#include <IsoAgLib/driver/system/isystem_c.h>
#include <IsoAgLib/driver/can/icanio_c.h>
#include <IsoAgLib/comm/Scheduler/ischeduler_c.h>
#include <IsoAgLib/comm/SystemMgmt/iidentitem_c.h>
#include <IsoAgLib/comm/SystemMgmt/isystemmgmt_c.h>
#include <IsoAgLib/comm/Process/proc_c.h>
#include <IsoAgLib/comm/Process/Local/SimpleMeasure/iprocdatalocalsimplemeasure_c.h>
#include <IsoAgLib/comm/Process/processdatachangehandler_c.h>

Include dependency graph for 2_5_LocalWriteSetpointSimpleMeasureIso.cc:

Include dependency graph

Go to the source code of this file.

Classes

class  MyProcDataHandler_c

Defines

#define PRJ_USE_AUTOGEN_CONFIG   config_2_5_LocalWriteSetpointSimpleMeasureIso.h
 the define PRJ_USE_AUTOGEN_CONFIG is used by lgpl_src/Application_Config/isoaglib_config.h to include project specific configuration settings.
#define USE_PROC_HANDLER

Functions

bool localIsAcceptableWorkState (IsoAgLib::iGetyPos_c rc_deviceType, uint32_t rui32_setpointValue)
 dummy function to decide on acceptance of received setpoint
bool localIsAcceptableApplicationRate (IsoAgLib::iGetyPos_c rc_deviceType, uint32_t rui32_setpointValue)
uint8_t getCurrentWorkState (void)
 dummy function to retrieve if the implement is at the moment in working state
uint8_t getCurrentApplicationRate (void)
 dummy function to retrieve currently realized application rate ( is probably in reality slightly different from setpoint )
int main ()

Variables

uint8_t ui8_localDummyWorkState
 dummy local variable which is used by the dummy functions for work state handling
uint32_t ui32_localDummyApplicationRate
 dummy local variable which is used by the dummy functions for application rate handling
const uint8_t cui8_indexWorkState = 0
const uint8_t cui8_indexApplicationRate = 1
IsoAgLib::iProcDataLocalSimpleMeasure_c arr_procData [2]
MyProcDataHandler_c c_mySetpointHandler


Define Documentation

#define PRJ_USE_AUTOGEN_CONFIG   config_2_5_LocalWriteSetpointSimpleMeasureIso.h
 

the define PRJ_USE_AUTOGEN_CONFIG is used by lgpl_src/Application_Config/isoaglib_config.h to include project specific configuration settings.

Set this define in the project file or Makefile of the whole project, so that each source file is compiled with this setting

Definition at line 211 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

#define USE_PROC_HANDLER
 

Definition at line 234 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.


Function Documentation

uint8_t getCurrentApplicationRate void   ) 
 

dummy function to retrieve currently realized application rate ( is probably in reality slightly different from setpoint )

Definition at line 283 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

References uint8_t.

uint8_t getCurrentWorkState void   ) 
 

dummy function to retrieve if the implement is at the moment in working state

Definition at line 281 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

References uint8_t.

bool localIsAcceptableApplicationRate IsoAgLib::iGetyPos_c  rc_deviceType,
uint32_t  rui32_setpointValue
 

Definition at line 267 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

References IsoAgLib::iGetyPos_c::getGety(), ui32_localDummyApplicationRate, and uint32_t.

Here is the call graph for this function:

bool localIsAcceptableWorkState IsoAgLib::iGetyPos_c  rc_deviceType,
uint32_t  rui32_setpointValue
 

dummy function to decide on acceptance of received setpoint

Definition at line 254 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

References IsoAgLib::iGetyPos_c::getGety(), ui8_localDummyWorkState, and uint32_t.

Here is the call graph for this function:

int main  ) 
 

IMPORTANT:

  • The following loop could be replaced of any repeating call of IsoAgLib::getISchedulerInstance().timeEvent(); which is needed to perform all internal activities of the IsoAgLib.
  • Define the time intervall for IsoAgLib::getISchedulerInstance().timeEvent() in a way, that allows IsoAgLib to trigger all reactions on BUS in the ISO 11783 defined time resolution - especially the address claim process has some tight time restrictions, that suggest a trigger rate of at least 100msec ( you could call the function only during address claim, mask updload and other special circumstances in a high repetition rate )
  • The main loop is running until iSystem_c::canEn() is returning false. This function can be configured by the #define BUFFER_SHORT_CAN_EN_LOSS_MSEC in isoaglib_config.h to ignore short CAN_EN loss.
  • This explicit control of power state without automatic powerdown on CanEn loss can be controled with the central config define #define DEFAULT_POWERDOWN_STRATEGY IsoAgLib::PowerdownByExplcitCall or #define DEFAULT_POWERDOWN_STRATEGY IsoAgLib::PowerdownOnCanEnLoss in the header lgpl_src/Application_Config/isoaglib_config.h
  • This can be also controlled during runtime with the function call: getIsystemInstance().setPowerdownStrategy( IsoAgLib::PowerdownByExplcitCall ) or getIsystemInstance().setPowerdownStrategy( IsoAgLib::PowerdownOnCanEnLoss )

Definition at line 359 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

References IsoAgLib::iSetpointLocal_c::acceptNewMaster(), IsoAgLib::iSetpointLocal_c::answerAllUnhandled(), arr_procData, c_mySetpointHandler, IsoAgLib::iSetpointRegister_c::exact(), IsoAgLib::iSetpointLocal_c::existMaster(), getCurrentApplicationRate(), getCurrentWorkState(), IsoAgLib::getIcanInstance(), IsoAgLib::getISchedulerInstance(), IsoAgLib::iProcDataRemoteSimpleSetpoint_c::init(), localIsAcceptableApplicationRate(), localIsAcceptableWorkState(), IsoAgLib::iSetpointRegister_c::setMaster(), IsoAgLib::iProcDataLocalSimpleMeasure_c::setMasterVal(), IsoAgLib::iProcDataLocalSimpleMeasure_c::setpoint(), uint16_t, uint32_t, uint8_t, IsoAgLib::iSetpointLocal_c::unhandledCnt(), IsoAgLib::iSetpointLocal_c::unhandledInd(), and IsoAgLib::iSetpointLocal_c::unhandledMaster().

Here is the call graph for this function:


Variable Documentation

IsoAgLib::iProcDataLocalSimpleMeasure_c arr_procData[2]
 

Definition at line 289 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

MyProcDataHandler_c c_mySetpointHandler
 

Definition at line 355 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

const uint8_t cui8_indexApplicationRate = 1
 

Definition at line 288 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

const uint8_t cui8_indexWorkState = 0
 

Definition at line 287 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

uint32_t ui32_localDummyApplicationRate
 

dummy local variable which is used by the dummy functions for application rate handling

Definition at line 251 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.

uint8_t ui8_localDummyWorkState
 

dummy local variable which is used by the dummy functions for work state handling

Definition at line 249 of file 2_5_LocalWriteSetpointSimpleMeasureIso.cc.


Generated on Wed Oct 13 14:59:46 2004 for IsoAgLib by  doxygen 1.3.8-20040913