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

1_4_WriteFlexibleIso.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/Base/ibase_c.h>

Include dependency graph for 1_4_WriteFlexibleIso.cc:

Include dependency graph

Go to the source code of this file.

Defines

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

Functions

uint16_t localGetYear ()
 dummy function to serve a year information - in reality a local RTC element could be used
uint16_t localGetMonth ()
 dummy function to serve a month information - in reality a local RTC element could be used
uint16_t localGetDay ()
 dummy function to serve a day information - in reality a local RTC element could be used
uint16_t localGetHour ()
 dummy function to serve a hour information - in reality a local RTC element could be used
uint16_t localGetMinute ()
 dummy function to serve a minute information - in reality a local RTC element could be used
uint16_t localGetSecond ()
 dummy function to serve a second information - in reality a local RTC element could be used
int main ()


Define Documentation

#define PRJ_USE_AUTOGEN_CONFIG   config_1_4_WriteFlexibleIso.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 190 of file 1_4_WriteFlexibleIso.cc.


Function Documentation

uint16_t localGetDay  ) 
 

dummy function to serve a day information - in reality a local RTC element could be used

Examples:
1_4_WriteFlexibleIso.cc, and 1_5_WriteFlexibleDin.cc.

Definition at line 224 of file 1_4_WriteFlexibleIso.cc.

References uint16_t.

Referenced by main().

uint16_t localGetHour  ) 
 

dummy function to serve a hour information - in reality a local RTC element could be used

Examples:
1_4_WriteFlexibleIso.cc, and 1_5_WriteFlexibleDin.cc.

Definition at line 226 of file 1_4_WriteFlexibleIso.cc.

References HAL::getTime(), and uint16_t.

Referenced by main().

Here is the call graph for this function:

uint16_t localGetMinute  ) 
 

dummy function to serve a minute information - in reality a local RTC element could be used

Examples:
1_4_WriteFlexibleIso.cc, and 1_5_WriteFlexibleDin.cc.

Definition at line 228 of file 1_4_WriteFlexibleIso.cc.

References HAL::getTime(), and uint16_t.

Referenced by main().

Here is the call graph for this function:

uint16_t localGetMonth  ) 
 

dummy function to serve a month information - in reality a local RTC element could be used

Examples:
1_4_WriteFlexibleIso.cc, and 1_5_WriteFlexibleDin.cc.

Definition at line 222 of file 1_4_WriteFlexibleIso.cc.

References uint16_t.

Referenced by main().

uint16_t localGetSecond  ) 
 

dummy function to serve a second information - in reality a local RTC element could be used

Examples:
1_4_WriteFlexibleIso.cc, and 1_5_WriteFlexibleDin.cc.

Definition at line 230 of file 1_4_WriteFlexibleIso.cc.

References HAL::getTime(), and uint16_t.

Referenced by main().

Here is the call graph for this function:

uint16_t localGetYear  ) 
 

dummy function to serve a year information - in reality a local RTC element could be used

Examples:
1_4_WriteFlexibleIso.cc, and 1_5_WriteFlexibleDin.cc.

Definition at line 220 of file 1_4_WriteFlexibleIso.cc.

References uint16_t.

Referenced by main().

int main  ) 
 

IMPORTANT:

  • The following loop could be replaced of any repeating call of getISchedulerInstance().timeEvent(); which is needed to perform all internal activities of the IsoAgLib.
  • Define the time intervall for 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 233 of file 1_4_WriteFlexibleIso.cc.

References IsoAgLib::BaseDataCalendar, IsoAgLib::getIBaseInstance(), IsoAgLib::getIcanInstance(), IsoAgLib::getISchedulerInstance(), IsoAgLib::getISystemMgmtInstance(), HAL::getTime(), int32_t, localGetDay(), localGetHour(), localGetMinute(), localGetMonth(), localGetSecond(), localGetYear(), uint16_t, uint32_t, and uint8_t.

Here is the call graph for this function:


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