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

isoaglib_config.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

DEFAULT_POWERDOWN_STRATEGY Default strategy which is used by

IsoAgLib to decide on powerdown.

As an automatic poweroff due to detection of CanEn loss could cause unwanted system stopp on short voltage low bursts of the power supply, it is appropriate to stop the automatic powerdown in favour of an explicit call of power off. But this explicit handling could cause problems, if the application reaches a state, where the watchdog is triggered, so that no reset occurs, but the application doesn't either handle a loss of CanEn. This could causes a never ending run of the ECU, if the application can reach such a state. Possible Settings: IsoAgLib::PowerdownByExplcitCall or IsoAgLib::PowerdownOnCanEnLoss

#define DEFAULT_POWERDOWN_STRATEGY   IsoAgLib::PowerdownByExplcitCall
 select Power Down trigger source: - IsoAgLib::PowerdownByExplcitCall for staying alive during CAN_EN loss, and allowing controlled powerdown after detection of CAN_EN loss - IsoAgLib::PowerdownOnCanEnLoss for automatic stop of ECU on detection of CAN_EN loss
#define BUFFER_SHORT_CAN_EN_LOSS_MSEC   1000
 select time intervall in MSEC during which the loss of CAN_EN is ignored.

Definition of IsoAgLib managed CAN ports and dependend access macros

The several modules of the IsoAgLib have only one instance, as long as only one CAN port is managed with IsoAgLib (DIN and/or ISO) protocol.

Even in case of two or more CAN ports, the so called "singleton" pattern can be used to define a secure way to handle these objects as standalone instances, which access the other object types by global accessible static functions. This eliminates the need of pointers between the objects.

#define PRT_INSTANCE_CNT   1
 count of CAN ports which are managed with IsoAgLib (DIN and/or ISO)

Definition of Host Target System Type

Set one of the following SYSTEM_XX_YN defines to YES or define one of the SYSTEM_XX in your project definition.

#define SYSTEM_PC_YN   NO
 set this define to YES if IsoAgLib is used for a PC
#define SYSTEM_ESX_YN   NO
 set this define to YES if IsoAgLib is used for the ECU "ESX" of STW
#define SYSTEM_IMI_YN   NO
 set this define to YES if IsoAgLib is used for the computing unit "IMI" of STW
#define SYSTEM_IMI_2CAN_YN   NO
 set this define to YES if IsoAgLib is used for the computing unit "IMI" with 2 CAN BUS of STW
#define SYSTEM_PM167_YN   NO
 set this define to YES if IsoAgLib is used for the processor module "PM167" of STW
#define SYSTEM_MITRON167_YN   NO
 set this define to YES if IsoAgLib is used for the processor module "PM167" of STW

Define subdirectory name dependent on platform type

for adoption to new SYSTEM_XX add new #elif part to set according subdirectory name in IsoAgLib/hal/ Additionally define the offset value of the lowest possible CAN MsgObj ( STW BIOS starts counting with 1, other start with 0 )

#define HAL_SUBDIR   esx
 set subdirectory name to "esx" for ESX platform
#define CAN_MSGOBJ_OFFSET   1
 STW BIOS start with CAN Msg Obj offset 1.
#define gluetoks(a, b)   a ## b
#define gluetoks3(a, b, c)   a ## b ## c
#define gluetoks4(a, b, c, d)   a ## b ## c ## d
#define gluetoks5(a, b, c, d, e)   a ## b ## c ## d ## e
#define gluemacs(a, b)   gluetoks(a, b)
#define gluemacs3(a, b, c)   gluetoks3(a, b, c)
#define gluemacs4(a, b, c, d)   gluetoks4(a, b, c, d)
#define gluemacs5(a, b, c, d, e)   gluetoks5(a, b, c, d, e)
#define HAL_PATH   gluemacs( <IsoAgLib/hal/, HAL_SUBDIR )

Define usage of float data type for project.

Relevant for process data, RS232 and some other places

#define USE_FLOAT_DATA_TYPE_YN   NO
 define whether Process_c process data should provide floating point

Define used optional modules

Define which of the configurable services should be compiled and used.

Set the single ZZ_YN defines to YES / NO or define the equivalent ZZ constant.

#define USE_ISO_11783_YN   NO
 choose the use of ISO 11783
#define USE_ISO_TERMINAL_YN   NO
 choose the use of ISO TERMINAL
#define USE_DIN_9684_YN   NO
 choose the use of DIN 9684
#define USE_DIN_TERMINAL_YN   NO
 choose the use of DIN TERMINAL
#define EXCLUDE_RARE_DIN_SYSTEM_CMD
#define USE_PROCESS_YN   YES
#define USE_PROCESS
#define USE_EEPROM_IO_YN   YES
 activate module for hardware EEPROM access via IsoAgLib this is important as local process data can then store actual values in confiugrable rates into EEPROM
#define USE_EEPROM_IO

Config basic properties of process data handling

Choose basic properties for process data handling

#define SETPOINT_RELEASE_COMMAND   NO_VAL_32S
 define special command value for release of setpoint
#define SETPOINT_ERROR_COMMAND   ERROR_VAL_32S
 define special command value for signaling setpoint error
#define RESET_MEASUREMENT_WITH_ZERO_EXACT_SETPOINT_YN   NO
 some systems send exact setpoint cmd with value 0 to reset a measurement value
#define LAV_COMMENT_MEASURE_PROG_CMD_YN   NO
 LAV_COMMENT_MEASURE_PROG_CMD allows usage of specific start/stop/reset cmd values.
#define SIMPLE_SETPOINT_WITH_PERCENT_YN   YES
 choose if simple setpoint should support percent setpoints
#define SIMPLE_SETPOINT_WITH_PERCENT
#define SIMPLE_RESPOND_ON_SET_YN   YES
 choose if local process data should simply respond received setpoint value after storing it (like Fieldstar (tm) )
#define SIMPLE_RESPOND_ON_SET
#define HANDLE_SETPOINT_MEASURE_EQUIVALENT_YN   NO
 choose if simple setpoint shouldn't distinguish between measurement and setpoint value

Basic config of Hdd access

#define HDD_READ_PUFFER_SIZE   100
 define size of buffer for Hdd read access
#define HDD_READ_BLOCK_SIZE   20
 define minimum size of data to read as one bock from Hdd
#define HDD_MAX_TOKEN_LEN   10
 define longest token which is used to translate printed numbers to number variables
#define DEFAULT_HDD_DATA_MODE   RS232IO_c::_8_N_1
 define value coding for RS232 connected DOS Drive

Configure the use of an EEPROM Editor

Enable EEPROM data can be read and write during runtime via RS232 or CAN

#define USE_CAN_EEPROM_EDITOR_YN   NO
 use CAN connected EEPROM editor
#define USE_RS232_EEPROM_EDITOR_YN   NO
 use RS232 connected EEPROM editor
#define CAN_EEDITOR_REC_IDENT   0x700
 set CAN Ident_c for filtering out EEEditor msgs
#define CAN_EEDITOR_REC_OBJ   13
 set CAN Msg obejct for receiving EEEditor msg
#define CAN_EEDITOR_SEND_OBJ   14
 set CAN Msg obejct for sending EEEditor msg
#define CAN_EEDITOR_BUS   0
 set CAN BUS number for CAN EEPROM Editor
#define CAN_EEDITOR_PUFFER   10
 set CAN puffer size for receive and send
#define CAN_EEDITOR_EXT_IDENT   0
 to use standard ident (11bit) ->0, 29bit -> 1

Different time intervalls

Define time between subsequent timeEvent calls and choose time for clearing of stale monitor list entries

#define DEFAULT_MAX_SCHEDULER_TIME_EVENT_TIME   500
 default maximum time to perform the function iScheduler_c::timeEvent if this function isn't called with a defined termination timestamp.
#define SERVICE_ITEM_MAX_AGE   3000
 time to delete inactive service items in monitor list [msec] - if SERVICE_ITEM_MAX_AGE is not defined, no items are deleted
#define ISO_ITEM_MAX_AGE   3000
 time to delete inactive ISO items in monitor list [msec] - if ISO_ITEM_MAX_AGE is not defined, no items are deleted
#define STORE_EEPROM_INTERVAL   5000
 interval in sec to store actual process data value for process datas which are permanent in EEPROM

Basic BUS and MsgObj settings for CAN access

#define DEFAULT_BITRATE   125
 define DEFAULT BITRATE
#define CAN_BUS_CNT   1
 configs according to CAN hardware define amount of available CAN buses
#define DEFAULT_BUS_NUMBER   0xFF
 define CAN BUS number used for IsoAgLib (setting of 0xFF forces explicit call of init, to open the CAN BUS )
#define DEFAULT_SEND_OBJ   CAN_MSGOBJ_OFFSET
 define default MsgObj_c number to use for CAN send
#define CAN_INSTANCE_CNT   1
 set the amount of CANIO_c instanes managed by System_c normaly one, but if more CAN BUS'es should be managed System_c can manage them seperate f.e.
#define DEFAULT_MIN_OBJ_NR   CAN_MSGOBJ_OFFSET
 define default min number for CAN Msg-Obj used for IsoAgLib
#define DEFAULT_MAX_OBJ_NR   ( CAN_MSGOBJ_OFFSET + 13 )
 define default max number for CAN Msg-Obj used for IsoAgLib

Basic identifier settings for CAN access

#define MASK_TYPE   uint32_t
 set the type of mask (uint32_t, uint16_t) for extended 29bit header CAN 2.0B (this can handle both extended AND standard but it reserves enough space for 29bit ident)
#define DEFAULT_IDENT_TYPE   __IsoAgLib::Ident_c::StandardIdent
 define default ident type
#define DEFAULT_CONFIG_IDENT_TYPE   __IsoAgLib::Ident_c::BothIdent
 config CANIO_c to handle both 11bit and 29bit ident types if ISO 11783 is active
#define DEFAULT_CAN_GLOB_MASK   0x0700
 default values for global masks only use first 3 bits (PRI) for CAN 2.0A 11bit
#define DEFAULT_CAN_MASK_LASTMSG   0x00000000
 default values for global masks only use first 3 bits (PRI) for CAN 2.0B 29bit

Set buffer sizes for CAN handling

#define SEND_PUFFER_SIZE   20
 set puffer size for CAN send
#define RECEIVE_PUFFER_SIZE   20
 set default puffer size for CAN receive
#define RECEIVE_DIN_TARGET_PUFFER_SIZE   20
 DIN target msgs are sent with high rate -> need greater buffer.
#define RECEIVE_DIN_PARTNER_PUFFER_SIZE   20
 DIN partner msgs are sent with high rate -> need greater buffer.
#define FILTER_BOX_PER_MSG_OBJ   10
 configure the amount of max filterBox instances to one msgObj instance static array for better quicker access to data.

Config detection of CAN BUS off

For autosense of ISO 11783 and DIN 9684 an runtime error can occur, if a system starts with 250kbaud and later a simple DIN 9684 device is connected with 125kbaud -> IsoAgLib must detect BUS OFF and interprete it as result of differing CAN baudrates ==> IsoAgLib can switch baudrate to fallback speed.

#define USE_FALLBACK_ON_CAN_DEADLOCK   0
 select if CAN should change baudrate to fallback, if BUS deadlock is detected
#define MAX_CAN_ERR_TIME_BEFORE_CAN_SLOWERING   3000
 max time intervall of CAN err before switching back from 250 to 125 kbit/s in [msec.]
#define CAN_FALLBACK_BITRATE   125
 define bitrate to use after fallbcack /ref MAX_CAN_ERR_TIME_BEFORE_CAN_SLOWERING
#define MAX_SEND_WAIT_TIME   200
 define max wait time between call of sendCan to successfull send of the msg, longer wait time is regarded of evidence for BUS OFF
#define MAX_CAN_IDLE   3000
 define max normal CAN idle time (e.g.

Define PGN codes of ISO 11783 messages

As the ISO 11783 is not yet published during implementation the PGN codes can change -> centralised definition

#define GROUND_BASED_SPEED_DIST_PGN   0x00FE49LU
#define WHEEL_BASED_SPEED_DIST_PGN   0x00FE48LU
#define BACK_HITCH_STATE_PGN   0x00FE45LU
#define BACK_PTO_STATE_PGN   0x00FE43LU
#define PROCESS_DATA_PGN   0x00CB00LU
#define REQUEST_PGN_MSG_PGN   0x00EA00LU
#define ADRESS_CLAIM_PGN   0x00EE00LU
#define TIME_DATE_PGN   0x00FEE6LU
#define MAINTAIN_POWER_REQUEST_PGN   0x00FE47LU
#define WORKING_SET_MASTER_PGN   0x00FE0DLU
#define WORKING_SET_MEMBER_PGN   0x00FE0CLU
#define VT_TO_GLOBAL_PGN   0x00E6FFLU
#define VT_TO_ECU_PGN   0x00E600LU
#define ECU_TO_VT_PGN   0x00E700LU
#define TP_DATA_TRANSFER_PGN   0x00EB00LU
#define TP_CONN_MANAGE_PGN   0x00EC00LU
#define ETP_DATA_TRANSFER_PGN   0x00C700LU
#define ETP_CONN_MANAGE_PGN   0x00C800LU
#define FRONT_HITCH_STATE_PGN   0x00FEE9LU
#define FRONT_PTO_STATE_PGN   0x00FEEBLU
#define GPS_STATE_PGN   0x00FFF3LU
 PGN for GPS state information - according to open accessible sources -> might be wrong -> please test and indicate correction need or successfull usage back to autthor.
#define GPS_LATITUDE_LONGITUDE_PGN   0x00FEF3LU
 PGN for GPS latitude and longitude - according to open accessible sources -> might be wrong -> please test and indicate correction need or successfull usage back to autthor.
#define GPS_SPEED_HEADING_ALTITUDE_PGN   0x00FEE8LU
 PGN for GPS speed, heading and altitude - according to open accessible sources -> might be wrong -> please test and indicate correction need or successfull usage back to autthor.

Config access to RS232

Set the baudrate, buffer sizes and value coding.

#define DEFAULT_BAUDRATE   19200
 define default values for RS232
#define DEFAULT_DATA_MODE   RS232IO_c::_8_N_1
 define value coding
#define DEFAULT_XON_XOFF   false
#define DEFAULT_SND_PUF_SIZE   400
 define size of RS232 send puffer
#define DEFAULT_REC_PUF_SIZE   10
 define size of RS232 receive puffer
#define HAL_RS232_BAUDRATE_LIST   {75, 600, 1200, 2400, 4800, 9600, 19200}
 define list of allowed speed settings
#define HAL_RS232_BITRATE_CNT   7

Basic config for sensor and actor

Set default PWM value for digital output and calculation factors for analog input.

#define DEFAULT_PWM_FREQUENCY   100000
 set default PWM frequency for digital output
#define MAX_ANALOG_MV   8500
 set maximal voltage input for analog input set to voltage in [mV]
#define MAX_ANALOG_MV_DIGIT   907
 set max digital BIOS function return value corresponding to MAX_ANALOG_MV
#define MAX_ANALOG_MA   20
 set maximal current input for analog input set [mA]
#define MAX_ANALOG_MA_DIGIT   833
 set max digital BIOS function return value corresponding to MAX_ANALOG_MA

Basic BIOS limit constants

#define ANALOG_INPUT_MIN   0
#define ANALOG_INPUT_MAX   7
#define DIGITAL_INPUT_MIN   0
#define DIGITAL_INPUT_MAX   15
#define COUNTER_INPUT_MIN   0
#define COUNTER_INPUT_MAX   15
#define DIGITAL_OUTPUT_MIN   0
#define DIGITAL_OUTPUT_MAX   11
#define HAL_CAN_MIN_BUS_NR   0
#define HAL_CAN_MAX_BUS_NR   1
#define HAL_CAN_MIN_SEND_OBJ   CAN_MSGOBJ_OFFSET
#define HAL_CAN_MAX_SEND_OBJ   ( CAN_MSGOBJ_OFFSET + 13 )
#define HAL_CAN_MIN_REC_OBJ   ( CAN_MSGOBJ_OFFSET + 1 )
#define HAL_CAN_MAX_REC_OBJ   ( CAN_MSGOBJ_OFFSET + 13 )
#define HAL_CAN_BITRATE_LIST   {10, 20, 40, 50, 100, 125, 250, 500, 1000}
#define HAL_CAN_BITRATE_CNT   9

Defines

#define YES   1
 allow configuration by parameter value "YES"
#define NO   0
 allow configuration by parameter value "NO"
#define WORD_LO_HI   0
#define WORD_HI_LO   1


Define Documentation

#define ADRESS_CLAIM_PGN   0x00EE00LU
 

Definition at line 741 of file isoaglib_config.h.

Referenced by __IsoAgLib::ISOMonitor_c::processMsg(), __IsoAgLib::ISOItem_c::processMsg(), and __IsoAgLib::ISOMonitor_c::sendRequestForClaimedAddress().

#define ANALOG_INPUT_MAX   7
 

Definition at line 826 of file isoaglib_config.h.

#define ANALOG_INPUT_MIN   0
 

Definition at line 823 of file isoaglib_config.h.

#define BACK_HITCH_STATE_PGN   0x00FE45LU
 

Definition at line 737 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::BasePkg_c::isoString2Flags(), and __IsoAgLib::Base_c::isoTimeEvent().

#define BACK_PTO_STATE_PGN   0x00FE43LU
 

Definition at line 738 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::BasePkg_c::isoString2Flags(), and __IsoAgLib::Base_c::isoTimeEvent().

#define BUFFER_SHORT_CAN_EN_LOSS_MSEC   1000
 

select time intervall in MSEC during which the loss of CAN_EN is ignored.

IMPORTANT: This slection has only influence on system if IsoAgLib::PowerdownByExplcitCall is selected, as this settings causes iSystem_c::canEn() to return _TRUE_ in shorter power loss phases than the time intervall specified here. The automatic power down of the ECU ( OS or BIOS ) can't be manipulated this way. IF iSystem_c::canEn() shall immediately answer false on CAN_EN loss, set this defined as UNDEFINED!!! - the handling of this buffer time is then compiled away

Definition at line 138 of file isoaglib_config.h.

#define CAN_BUS_CNT   1
 

configs according to CAN hardware define amount of available CAN buses

Definition at line 597 of file isoaglib_config.h.

#define CAN_EEDITOR_BUS   0
 

set CAN BUS number for CAN EEPROM Editor

Definition at line 540 of file isoaglib_config.h.

Referenced by __IsoAgLib::CANIO_c::baseCanInit().

#define CAN_EEDITOR_EXT_IDENT   0
 

to use standard ident (11bit) ->0, 29bit -> 1

Definition at line 544 of file isoaglib_config.h.

#define CAN_EEDITOR_PUFFER   10
 

set CAN puffer size for receive and send

Definition at line 542 of file isoaglib_config.h.

Referenced by __IsoAgLib::CANIO_c::baseCanInit().

#define CAN_EEDITOR_REC_IDENT   0x700
 

set CAN Ident_c for filtering out EEEditor msgs

Definition at line 534 of file isoaglib_config.h.

Referenced by __IsoAgLib::CANIO_c::baseCanInit().

#define CAN_EEDITOR_REC_OBJ   13
 

set CAN Msg obejct for receiving EEEditor msg

Definition at line 536 of file isoaglib_config.h.

#define CAN_EEDITOR_SEND_OBJ   14
 

set CAN Msg obejct for sending EEEditor msg

Definition at line 538 of file isoaglib_config.h.

#define CAN_FALLBACK_BITRATE   125
 

define bitrate to use after fallbcack /ref MAX_CAN_ERR_TIME_BEFORE_CAN_SLOWERING

Definition at line 714 of file isoaglib_config.h.

Referenced by __IsoAgLib::CANIO_c::timeEvent().

#define CAN_INSTANCE_CNT   1
 

set the amount of CANIO_c instanes managed by System_c normaly one, but if more CAN BUS'es should be managed System_c can manage them seperate f.e.

one for IsoAgLib and the other for system/machine internal CAN communication

Definition at line 610 of file isoaglib_config.h.

#define CAN_MSGOBJ_OFFSET   1
 

STW BIOS start with CAN Msg Obj offset 1.

Definition at line 259 of file isoaglib_config.h.

#define COUNTER_INPUT_MAX   15
 

Definition at line 835 of file isoaglib_config.h.

#define COUNTER_INPUT_MIN   0
 

Definition at line 832 of file isoaglib_config.h.

#define DEFAULT_BAUDRATE   19200
 

define default values for RS232

Definition at line 786 of file isoaglib_config.h.

#define DEFAULT_BITRATE   125
 

define DEFAULT BITRATE

Definition at line 592 of file isoaglib_config.h.

#define DEFAULT_BUS_NUMBER   0xFF
 

define CAN BUS number used for IsoAgLib (setting of 0xFF forces explicit call of init, to open the CAN BUS )

Definition at line 601 of file isoaglib_config.h.

#define DEFAULT_CAN_GLOB_MASK   0x0700
 

default values for global masks only use first 3 bits (PRI) for CAN 2.0A 11bit

Definition at line 651 of file isoaglib_config.h.

#define DEFAULT_CAN_MASK_LASTMSG   0x00000000
 

default values for global masks only use first 3 bits (PRI) for CAN 2.0B 29bit

Definition at line 656 of file isoaglib_config.h.

#define DEFAULT_CONFIG_IDENT_TYPE   __IsoAgLib::Ident_c::BothIdent
 

config CANIO_c to handle both 11bit and 29bit ident types if ISO 11783 is active

Definition at line 640 of file isoaglib_config.h.

#define DEFAULT_DATA_MODE   RS232IO_c::_8_N_1
 

define value coding

Definition at line 788 of file isoaglib_config.h.

#define DEFAULT_HDD_DATA_MODE   RS232IO_c::_8_N_1
 

define value coding for RS232 connected DOS Drive

Definition at line 497 of file isoaglib_config.h.

#define DEFAULT_IDENT_TYPE   __IsoAgLib::Ident_c::StandardIdent
 

define default ident type

Definition at line 636 of file isoaglib_config.h.

Referenced by __IsoAgLib::FilterBox_c::clearData(), __IsoAgLib::MsgObj_c::configCan(), and __IsoAgLib::CANIO_c::init().

#define DEFAULT_MAX_OBJ_NR   ( CAN_MSGOBJ_OFFSET + 13 )
 

define default max number for CAN Msg-Obj used for IsoAgLib

Definition at line 616 of file isoaglib_config.h.

#define DEFAULT_MAX_SCHEDULER_TIME_EVENT_TIME   500
 

default maximum time to perform the function iScheduler_c::timeEvent if this function isn't called with a defined termination timestamp.

This is needed to avoid a deadlock which could happen if processing and reaction on received CAN messages causes a never endling loop of new received messages - or in other words: if the CAN message queues don't ever get empty during the processing. If this time limit is reached, then something is probably quite broken on CAN BUS.

Definition at line 563 of file isoaglib_config.h.

#define DEFAULT_MIN_OBJ_NR   CAN_MSGOBJ_OFFSET
 

define default min number for CAN Msg-Obj used for IsoAgLib

Definition at line 614 of file isoaglib_config.h.

#define DEFAULT_POWERDOWN_STRATEGY   IsoAgLib::PowerdownByExplcitCall
 

select Power Down trigger source: - IsoAgLib::PowerdownByExplcitCall for staying alive during CAN_EN loss, and allowing controlled powerdown after detection of CAN_EN loss - IsoAgLib::PowerdownOnCanEnLoss for automatic stop of ECU on detection of CAN_EN loss

Definition at line 127 of file isoaglib_config.h.

#define DEFAULT_PWM_FREQUENCY   100000
 

set default PWM frequency for digital output

Definition at line 807 of file isoaglib_config.h.

Referenced by __IsoAgLib::DigitalO_c::init().

#define DEFAULT_REC_PUF_SIZE   10
 

define size of RS232 receive puffer

Definition at line 793 of file isoaglib_config.h.

#define DEFAULT_SEND_OBJ   CAN_MSGOBJ_OFFSET
 

define default MsgObj_c number to use for CAN send

Definition at line 603 of file isoaglib_config.h.

#define DEFAULT_SND_PUF_SIZE   400
 

define size of RS232 send puffer

Definition at line 791 of file isoaglib_config.h.

Referenced by __IsoAgLib::RS232IO_c::send().

#define DEFAULT_XON_XOFF   false
 

Definition at line 789 of file isoaglib_config.h.

#define DIGITAL_INPUT_MAX   15
 

Definition at line 830 of file isoaglib_config.h.

#define DIGITAL_INPUT_MIN   0
 

Definition at line 827 of file isoaglib_config.h.

#define DIGITAL_OUTPUT_MAX   11
 

Definition at line 841 of file isoaglib_config.h.

#define DIGITAL_OUTPUT_MIN   0
 

Definition at line 838 of file isoaglib_config.h.

#define ECU_TO_VT_PGN   0x00E700LU
 

Definition at line 751 of file isoaglib_config.h.

#define ETP_CONN_MANAGE_PGN   0x00C800LU
 

Definition at line 755 of file isoaglib_config.h.

Referenced by __IsoAgLib::MultiSend_c::sendIntern().

#define ETP_DATA_TRANSFER_PGN   0x00C700LU
 

Definition at line 754 of file isoaglib_config.h.

Referenced by __IsoAgLib::MultiSend_c::sendIntern().

#define EXCLUDE_RARE_DIN_SYSTEM_CMD
 

Definition at line 374 of file isoaglib_config.h.

#define FILTER_BOX_PER_MSG_OBJ   10
 

configure the amount of max filterBox instances to one msgObj instance static array for better quicker access to data.

for ISO 11783 more FilterBox'es must be mapped into onte MsgObj for the different PGN's which are mainly managed by Base_c, and which are very similar)

Definition at line 682 of file isoaglib_config.h.

Referenced by __IsoAgLib::MsgObj_c::getFilterBoxCapacity().

#define FRONT_HITCH_STATE_PGN   0x00FEE9LU
 

Definition at line 757 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::BasePkg_c::isoString2Flags(), and __IsoAgLib::Base_c::isoTimeEvent().

#define FRONT_PTO_STATE_PGN   0x00FEEBLU
 

Definition at line 758 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::BasePkg_c::isoString2Flags(), and __IsoAgLib::Base_c::isoTimeEvent().

#define gluemacs a,
 )     gluetoks(a, b)
 

Definition at line 291 of file isoaglib_config.h.

#define gluemacs3 a,
b,
 )     gluetoks3(a, b, c)
 

Definition at line 292 of file isoaglib_config.h.

#define gluemacs4 a,
b,
c,
 )     gluetoks4(a, b, c, d)
 

Definition at line 293 of file isoaglib_config.h.

#define gluemacs5 a,
b,
c,
d,
 )     gluetoks5(a, b, c, d, e)
 

Definition at line 294 of file isoaglib_config.h.

#define gluetoks a,
 )     a ## b
 

Definition at line 285 of file isoaglib_config.h.

#define gluetoks3 a,
b,
 )     a ## b ## c
 

Definition at line 286 of file isoaglib_config.h.

#define gluetoks4 a,
b,
c,
 )     a ## b ## c ## d
 

Definition at line 287 of file isoaglib_config.h.

#define gluetoks5 a,
b,
c,
d,
 )     a ## b ## c ## d ## e
 

Definition at line 288 of file isoaglib_config.h.

#define GPS_LATITUDE_LONGITUDE_PGN   0x00FEF3LU
 

PGN for GPS latitude and longitude - according to open accessible sources -> might be wrong -> please test and indicate correction need or successfull usage back to autthor.

Definition at line 769 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), and __IsoAgLib::Base_c::isoProcessMsg().

#define GPS_SPEED_HEADING_ALTITUDE_PGN   0x00FEE8LU
 

PGN for GPS speed, heading and altitude - according to open accessible sources -> might be wrong -> please test and indicate correction need or successfull usage back to autthor.

Definition at line 774 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), and __IsoAgLib::Base_c::isoProcessMsg().

#define GPS_STATE_PGN   0x00FFF3LU
 

PGN for GPS state information - according to open accessible sources -> might be wrong -> please test and indicate correction need or successfull usage back to autthor.

Definition at line 764 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), and __IsoAgLib::Base_c::isoProcessMsg().

#define GROUND_BASED_SPEED_DIST_PGN   0x00FE49LU
 

Definition at line 735 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::BasePkg_c::isoString2Flags(), and __IsoAgLib::Base_c::isoTimeEvent().

#define HAL_CAN_BITRATE_CNT   9
 

Definition at line 858 of file isoaglib_config.h.

#define HAL_CAN_BITRATE_LIST   {10, 20, 40, 50, 100, 125, 250, 500, 1000}
 

Definition at line 857 of file isoaglib_config.h.

#define HAL_CAN_MAX_BUS_NR   1
 

Definition at line 849 of file isoaglib_config.h.

#define HAL_CAN_MAX_REC_OBJ   ( CAN_MSGOBJ_OFFSET + 13 )
 

Definition at line 856 of file isoaglib_config.h.

#define HAL_CAN_MAX_SEND_OBJ   ( CAN_MSGOBJ_OFFSET + 13 )
 

Definition at line 852 of file isoaglib_config.h.

#define HAL_CAN_MIN_BUS_NR   0
 

Definition at line 843 of file isoaglib_config.h.

#define HAL_CAN_MIN_REC_OBJ   ( CAN_MSGOBJ_OFFSET + 1 )
 

Definition at line 855 of file isoaglib_config.h.

#define HAL_CAN_MIN_SEND_OBJ   CAN_MSGOBJ_OFFSET
 

Definition at line 851 of file isoaglib_config.h.

#define HAL_PATH   gluemacs( <IsoAgLib/hal/, HAL_SUBDIR )
 

Definition at line 297 of file isoaglib_config.h.

#define HAL_RS232_BAUDRATE_LIST   {75, 600, 1200, 2400, 4800, 9600, 19200}
 

define list of allowed speed settings

Definition at line 795 of file isoaglib_config.h.

#define HAL_RS232_BITRATE_CNT   7
 

Definition at line 796 of file isoaglib_config.h.

#define HAL_SUBDIR   esx
 

set subdirectory name to "esx" for ESX platform

Definition at line 257 of file isoaglib_config.h.

#define HANDLE_SETPOINT_MEASURE_EQUIVALENT_YN   NO
 

choose if simple setpoint shouldn't distinguish between measurement and setpoint value

Definition at line 471 of file isoaglib_config.h.

#define HDD_MAX_TOKEN_LEN   10
 

define longest token which is used to translate printed numbers to number variables

Definition at line 495 of file isoaglib_config.h.

#define HDD_READ_BLOCK_SIZE   20
 

define minimum size of data to read as one bock from Hdd

Definition at line 491 of file isoaglib_config.h.

#define HDD_READ_PUFFER_SIZE   100
 

define size of buffer for Hdd read access

Definition at line 488 of file isoaglib_config.h.

#define ISO_ITEM_MAX_AGE   3000
 

time to delete inactive ISO items in monitor list [msec] - if ISO_ITEM_MAX_AGE is not defined, no items are deleted

Definition at line 576 of file isoaglib_config.h.

#define LAV_COMMENT_MEASURE_PROG_CMD_YN   NO
 

LAV_COMMENT_MEASURE_PROG_CMD allows usage of specific start/stop/reset cmd values.

Definition at line 436 of file isoaglib_config.h.

#define MAINTAIN_POWER_REQUEST_PGN   0x00FE47LU
 

Definition at line 743 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::forceMaintainPower(), and __IsoAgLib::Base_c::isoProcessMsg().

#define MASK_TYPE   uint32_t
 

set the type of mask (uint32_t, uint16_t) for extended 29bit header CAN 2.0B (this can handle both extended AND standard but it reserves enough space for 29bit ident)

  1. * -# for standard 11bit header CAN 2.0A

Definition at line 632 of file isoaglib_config.h.

Referenced by __IsoAgLib::Ident_c::bit_diff(), __IsoAgLib::ISOMonitor_c::close(), __IsoAgLib::Process_c::createRemoteFilter(), __IsoAgLib::Process_c::deleteRemoteFilter(), __IsoAgLib::DINSystemPkg_c::flags2String(), __IsoAgLib::CANPkg_c::ident(), __IsoAgLib::Ident_c::ident(), IsoAgLib::iIdent_c::ident(), __IsoAgLib::ISOMonitor_c::init(), __IsoAgLib::Ident_c::masked(), and IsoAgLib::iIdent_c::masked().

#define MAX_ANALOG_MA   20
 

set maximal current input for analog input set [mA]

Definition at line 813 of file isoaglib_config.h.

#define MAX_ANALOG_MA_DIGIT   833
 

set max digital BIOS function return value corresponding to MAX_ANALOG_MA

Definition at line 815 of file isoaglib_config.h.

#define MAX_ANALOG_MV   8500
 

set maximal voltage input for analog input set to voltage in [mV]

Definition at line 809 of file isoaglib_config.h.

#define MAX_ANALOG_MV_DIGIT   907
 

set max digital BIOS function return value corresponding to MAX_ANALOG_MV

Definition at line 811 of file isoaglib_config.h.

#define MAX_CAN_ERR_TIME_BEFORE_CAN_SLOWERING   3000
 

max time intervall of CAN err before switching back from 250 to 125 kbit/s in [msec.]

Definition at line 712 of file isoaglib_config.h.

#define MAX_CAN_IDLE   3000
 

define max normal CAN idle time (e.g.

no msg received) -> used to detect general CAN problem

Definition at line 723 of file isoaglib_config.h.

#define MAX_SEND_WAIT_TIME   200
 

define max wait time between call of sendCan to successfull send of the msg, longer wait time is regarded of evidence for BUS OFF

Definition at line 719 of file isoaglib_config.h.

#define NO   0
 

allow configuration by parameter value "NO"

Definition at line 83 of file isoaglib_config.h.

#define PROCESS_DATA_PGN   0x00CB00LU
 

Definition at line 739 of file isoaglib_config.h.

Referenced by __IsoAgLib::Process_c::createRemoteFilter(), __IsoAgLib::Process_c::deleteRemoteFilter(), __IsoAgLib::ISOMonitor_c::processMsg(), and __IsoAgLib::ProcDataBase_c::resolvGtpSetBasicSendFlags().

#define PRT_INSTANCE_CNT   1
 

count of CAN ports which are managed with IsoAgLib (DIN and/or ISO)

Definition at line 156 of file isoaglib_config.h.

#define RECEIVE_DIN_PARTNER_PUFFER_SIZE   20
 

DIN partner msgs are sent with high rate -> need greater buffer.

Definition at line 672 of file isoaglib_config.h.

#define RECEIVE_DIN_TARGET_PUFFER_SIZE   20
 

DIN target msgs are sent with high rate -> need greater buffer.

Definition at line 670 of file isoaglib_config.h.

#define RECEIVE_PUFFER_SIZE   20
 

set default puffer size for CAN receive

Definition at line 668 of file isoaglib_config.h.

#define REQUEST_PGN_MSG_PGN   0x00EA00LU
 

Definition at line 740 of file isoaglib_config.h.

Referenced by __IsoAgLib::ISOMonitor_c::processMsg(), and __IsoAgLib::ISOItem_c::processMsg().

#define RESET_MEASUREMENT_WITH_ZERO_EXACT_SETPOINT_YN   NO
 

some systems send exact setpoint cmd with value 0 to reset a measurement value

Definition at line 424 of file isoaglib_config.h.

#define SEND_PUFFER_SIZE   20
 

set puffer size for CAN send

Definition at line 666 of file isoaglib_config.h.

Referenced by __IsoAgLib::CANIO_c::baseCanInit(), and __HAL::can_stateMsgobjFreecnt().

#define SERVICE_ITEM_MAX_AGE   3000
 

time to delete inactive service items in monitor list [msec] - if SERVICE_ITEM_MAX_AGE is not defined, no items are deleted

Definition at line 572 of file isoaglib_config.h.

Referenced by __IsoAgLib::DINServiceMonitor_c::timeEvent().

#define SETPOINT_ERROR_COMMAND   ERROR_VAL_32S
 

define special command value for signaling setpoint error

Definition at line 416 of file isoaglib_config.h.

Referenced by __IsoAgLib::SetpointLocal_c::checkMeasurement().

#define SETPOINT_RELEASE_COMMAND   NO_VAL_32S
 

define special command value for release of setpoint

Definition at line 414 of file isoaglib_config.h.

Referenced by __IsoAgLib::SetpointRemote_c::releaseMaster().

#define SIMPLE_RESPOND_ON_SET
 

Definition at line 463 of file isoaglib_config.h.

#define SIMPLE_RESPOND_ON_SET_YN   YES
 

choose if local process data should simply respond received setpoint value after storing it (like Fieldstar (tm) )

Definition at line 460 of file isoaglib_config.h.

#define SIMPLE_SETPOINT_WITH_PERCENT
 

Definition at line 451 of file isoaglib_config.h.

#define SIMPLE_SETPOINT_WITH_PERCENT_YN   YES
 

choose if simple setpoint should support percent setpoints

Definition at line 448 of file isoaglib_config.h.

#define STORE_EEPROM_INTERVAL   5000
 

interval in sec to store actual process data value for process datas which are permanent in EEPROM

Definition at line 582 of file isoaglib_config.h.

#define SYSTEM_ESX_YN   NO
 

set this define to YES if IsoAgLib is used for the ECU "ESX" of STW

Definition at line 184 of file isoaglib_config.h.

#define SYSTEM_IMI_2CAN_YN   NO
 

set this define to YES if IsoAgLib is used for the computing unit "IMI" with 2 CAN BUS of STW

Definition at line 205 of file isoaglib_config.h.

#define SYSTEM_IMI_YN   NO
 

set this define to YES if IsoAgLib is used for the computing unit "IMI" of STW

Definition at line 194 of file isoaglib_config.h.

#define SYSTEM_MITRON167_YN   NO
 

set this define to YES if IsoAgLib is used for the processor module "PM167" of STW

Definition at line 230 of file isoaglib_config.h.

#define SYSTEM_PC_YN   NO
 

set this define to YES if IsoAgLib is used for a PC

Definition at line 174 of file isoaglib_config.h.

#define SYSTEM_PM167_YN   NO
 

set this define to YES if IsoAgLib is used for the processor module "PM167" of STW

Definition at line 219 of file isoaglib_config.h.

#define TIME_DATE_PGN   0x00FEE6LU
 

Definition at line 742 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::Base_c::isoSendCalendar(), and __IsoAgLib::ISOItem_c::processMsg().

#define TP_CONN_MANAGE_PGN   0x00EC00LU
 

Definition at line 753 of file isoaglib_config.h.

Referenced by __IsoAgLib::MultiSend_c::sendIntern().

#define TP_DATA_TRANSFER_PGN   0x00EB00LU
 

Definition at line 752 of file isoaglib_config.h.

Referenced by __IsoAgLib::MultiSend_c::sendIntern().

#define USE_CAN_EEPROM_EDITOR_YN   NO
 

use CAN connected EEPROM editor

Definition at line 515 of file isoaglib_config.h.

#define USE_DIN_9684_YN   NO
 

choose the use of DIN 9684

Definition at line 357 of file isoaglib_config.h.

#define USE_DIN_TERMINAL_YN   NO
 

choose the use of DIN TERMINAL

Definition at line 368 of file isoaglib_config.h.

#define USE_EEPROM_IO
 

Definition at line 401 of file isoaglib_config.h.

Referenced by __IsoAgLib::ManageMeasureProgLocal_c::init(), IsoAgLib::iProcDataLocal_c::init(), __IsoAgLib::ProcDataLocal_c::init(), IsoAgLib::iProcDataLocalSimpleSetpoint_c::init(), __IsoAgLib::ProcDataLocalSimpleSetpoint_c::init(), IsoAgLib::iProcDataLocalSimpleSetpointSimpleMeasure_c::init(), __IsoAgLib::ProcDataLocalSimpleSetpointSimpleMeasure_c::init(), IsoAgLib::iProcDataLocalSimpleMeasure_c::init(), __IsoAgLib::ProcDataLocalSimpleMeasure_c::init(), IsoAgLib::iProcDataLocal_c::iProcDataLocal_c(), IsoAgLib::iProcDataLocalSimpleMeasure_c::iProcDataLocalSimpleMeasure_c(), IsoAgLib::iProcDataLocalSimpleSetpoint_c::iProcDataLocalSimpleSetpoint_c(), IsoAgLib::iProcDataLocalSimpleSetpointSimpleMeasure_c::iProcDataLocalSimpleSetpointSimpleMeasure_c(), __IsoAgLib::ProcDataLocal_c::ProcDataLocal_c(), __IsoAgLib::ProcDataLocalBase_c::ProcDataLocalBase_c(), __IsoAgLib::ProcDataLocalSimpleMeasure_c::ProcDataLocalSimpleMeasure_c(), __IsoAgLib::ProcDataLocalSimpleSetpoint_c::ProcDataLocalSimpleSetpoint_c(), and __IsoAgLib::ProcDataLocalSimpleSetpointSimpleMeasure_c::ProcDataLocalSimpleSetpointSimpleMeasure_c().

#define USE_EEPROM_IO_YN   YES
 

activate module for hardware EEPROM access via IsoAgLib this is important as local process data can then store actual values in confiugrable rates into EEPROM

Definition at line 398 of file isoaglib_config.h.

#define USE_FALLBACK_ON_CAN_DEADLOCK   0
 

select if CAN should change baudrate to fallback, if BUS deadlock is detected

Definition at line 708 of file isoaglib_config.h.

#define USE_FLOAT_DATA_TYPE_YN   NO
 

define whether Process_c process data should provide floating point

Definition at line 312 of file isoaglib_config.h.

#define USE_ISO_11783_YN   NO
 

choose the use of ISO 11783

Definition at line 335 of file isoaglib_config.h.

#define USE_ISO_TERMINAL_YN   NO
 

choose the use of ISO TERMINAL

Definition at line 346 of file isoaglib_config.h.

#define USE_PROCESS
 

Definition at line 388 of file isoaglib_config.h.

#define USE_PROCESS_YN   YES
 

Definition at line 385 of file isoaglib_config.h.

#define USE_RS232_EEPROM_EDITOR_YN   NO
 

use RS232 connected EEPROM editor

Definition at line 526 of file isoaglib_config.h.

#define VT_TO_ECU_PGN   0x00E600LU
 

Definition at line 750 of file isoaglib_config.h.

Referenced by __IsoAgLib::ISOTerminal_c::processMsg().

#define VT_TO_GLOBAL_PGN   0x00E6FFLU
 

Definition at line 749 of file isoaglib_config.h.

#define WHEEL_BASED_SPEED_DIST_PGN   0x00FE48LU
 

Definition at line 736 of file isoaglib_config.h.

Referenced by __IsoAgLib::Base_c::checkCreateReceiveFilter(), __IsoAgLib::BasePkg_c::isoFlags2String(), __IsoAgLib::Base_c::isoProcessMsg(), __IsoAgLib::BasePkg_c::isoString2Flags(), and __IsoAgLib::Base_c::isoTimeEvent().

#define WORD_HI_LO   1
 

Definition at line 480 of file isoaglib_config.h.

#define WORD_LO_HI   0
 

Definition at line 479 of file isoaglib_config.h.

#define WORKING_SET_MASTER_PGN   0x00FE0DLU
 

Definition at line 744 of file isoaglib_config.h.

Referenced by __IsoAgLib::ISOMonitor_c::processMsg().

#define WORKING_SET_MEMBER_PGN   0x00FE0CLU
 

Definition at line 748 of file isoaglib_config.h.

Referenced by __IsoAgLib::ISOMonitor_c::processMsg().

#define YES   1
 

allow configuration by parameter value "YES"

Definition at line 81 of file isoaglib_config.h.


Generated on Wed Oct 13 15:00:11 2004 for IsoAgLib by  doxygen 1.3.8-20040913