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

HAL Namespace Reference

namespace with layer of inline (cost NO overhead -> compiler replaces inline function with call to orig BIOS function) functions between all IsoAgLib calls for BIOS and the corresponding BIOS functions --> simply replace the call to the corresponding BIOS function in this header for adaption to new platform More...


CAN BIOS functions for global status checking per BUS

bool can_stateGlobalWarn (uint8_t rui8_busNr=0)
 test if the CAN BUS is in WARN state
bool can_stateGlobalOff (uint8_t rui8_busNr=0)
 test if the CAN BUS is in OFF state
bool can_stateGlobalBlocked (uint8_t rui8_busNr=0)
 test if the CAN BUS is in Blocked state, which can be a sign for CAN controllers which are configured with different baudrates; this is the case if neither succesfull sent nor received msg is detcted AND CAN controller is in WARN or OFF state (the time since last succ.
int32_t can_stateGlobalBusload (uint8_t rui8_busNr=0)
 deliver the baudrate of the CAN BUS in [kbaud]
bool can_stateGlobalBit1err (uint8_t rui8_busNr=0)
 check if a send try on this BUS caused an Bit1Error (occurs if >1 controller try to send msg with same ident) ==> ISO 11783 forces stop of retries in this case for adress claim

CAN BIOS functions for status checking of one specific MsgObj

int32_t can_stateMsgobjTxok (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 deliver the timestamp of last successfull CAN send action
bool can_stateMsgobjSendproblem (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 check if a send MsgObj can't send msgs from buffer to the BUS (detecetd by comparing the inactive time with MAX_SEND_WAIT_TIME (defined in isoaglib_config)
bool can_stateMsgobjOverflow (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 test if buffer of a MsgObj is full (e.g.
uint16_t can_stateMsgobjBuffercnt (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 deliver amount of messages in buffer (interesting for RX objects)
int16_t can_stateMsgobjFreecnt (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 deliver amount of messages which can be placed in buffer (interesting for TX objects)

CAN BIOS functions for configuration of global CAN BUS

bool can_configGlobalInit (uint8_t rui8_busNr, uint16_t rb_baudrate, uint16_t rb_maskStd, uint32_t rui32_maskExt, uint32_t rui32_maskLastmsg)
 init CAN BUS with given baudrate and masks (11bit, 29bit and last msg mask)
bool can_configGlobalMask (uint8_t rui8_busNr, uint16_t rb_maskStd, uint32_t rui32_maskExt, uint32_t rui32_maskLastmsg)
 set the global masks (11bit, 29bit and last msg mask)
bool can_configGlobalClose (uint8_t rui8_busNr)
 close CAN BUS (important to close BUS before re-init with other baudrate)

CAN BIOS functions for configuration of one specific MsgObj

int16_t can_configMsgobjInit (uint8_t rui8_busNr, uint8_t rui8_msgobjNr, __IsoAgLib::Ident_c &rrefc_ident, uint8_t rb_rxtx)
 config a MsgObj (buffer size is defined locally in implementation of this interface; all received msgs should get a time stamp; class Ident_c has ident and type 11/29bit)
int16_t can_configMsgobjChgid (uint8_t rui8_busNr, uint8_t rui8_msgobjNr, __IsoAgLib::Ident_c &rrefc_ident)
 change the Ident_c of an already initialised MsgObj (class __IsoAgLib::Ident_c has ident and type 11/29bit)
int16_t can_configMsgobjSendpause (uint8_t rui8_busNr, uint8_t rui8_msgobjNr, uint16_t rui16_minSend)
 change the the send rate for one MsgObj by setting the minimum pause time between two messages [msec.]
int16_t can_configMsgobjClose (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 close a MsgObj

CAN BIOS functions for use of on specific MsgObj

int16_t can_useMsgobjSend (uint8_t rui8_busNr, uint8_t rui8_msgobjNr, __IsoAgLib::CANPkg_c *rpc_data)
 send a message via a MsgObj; CANPkg_c (or derived object) must provide (virtual) functions: Ident_c& getIdent() -> deliver ident of msg to send uint8_t getData(MASK_TYPE& reft_ident, uint8_t& refui8_identType, uint8_t& refb_dlc, uint8_t* pb_data) -> put DLC in referenced ref_dlc and insert data in uint8_t string pb_data
int32_t can_useMsgobjReceivedIdent (uint8_t rui8_busNr, uint8_t rui8_msgobjNr, int32_t &reflIdent)
 get the ident of a received message to decide about the further processing before the whole data string is retreived
int16_t can_useMsgobjGet (uint8_t rui8_busNr, uint8_t rui8_msgobjNr, __IsoAgLib::CANPkg_c *rpc_data)
 get a received message from a MsgObj; CANPkg_c (or derived object) must provide (virtual) functions: setIdent(Ident_c& rrefc_ident) -> set ident rrefc_ident of received msg in CANPkg uint8_t setData(uint8_t rb_dlc, uint8_t* rpb_data) -> set DLC in CANPkg_c from rb_dlc and insert data from uint8_t string rpb_data
void can_useMsgobjIgnore (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 if a received message is not configured to be processed by this ECU, just ignore it (this is needed, as the message is buffered between call of can_useMsgobjReceivedIdent and can_useMsgobjGet
int16_t can_useMsgobjClear (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 clear th buffer of a MsgObj (e.g.

EEPROM BIOS functions

int16_t getEepromSize (void)
 deliver the EEPROM size in uint8_t -> mult PM167 BIOS value with 1024
int16_t getEepromSegmentSize (void)
 deliver the EEPROM segment size in kbyte
int16_t eepromRead (uint16_t wAddress, uint16_t wNumber, uint8_t *pbByte)
 read amount of uint8_t in uint8_t string variable
int16_t eepromWrite (uint16_t wAddress, uint16_t wNumber, uint8_t *pbData)
 write amount of uint8_t from string into EEPROM from given start adress
int16_t eepromWp (bool bitMode)
 set or unset set write protection of EEPROM, should be called before every write access
int16_t eepromReady (void)
 check if EEPROM is ready for actions

Global System BIOS functions

int16_t printf (...)
int16_t scanf (...)
int16_t open_system ()
 open the system with system specific function call
int16_t closeSystem ()
 close the system with system specific function call
bool isSystemOpened (void)
 check if open_System() has already been called
int16_t configWatchdog ()
 configure the watchdog of the system with the settings of configImi
int16_t wdReset (void)
 reset the watchdog to use new configured watchdog settings
void wdTriggern (void)
 trigger the watchdog
int32_t getTime (void)
 get the system time in [ms]
int16_t getSnr (uint8_t *snrDat)
void startTaskTimer (void)
 start the Task Timer -> time between calls of Task Manager
int16_t getAdcUbat (void)
 get the main power voltage
int16_t getAdc_u85 (void)
 get the voltage of the external reference 8.5Volt for work of external sensors
int16_t getOn_offSwitch (void)
 check if D+/CAN_EN is active (if NO_CAN_EN_CHECK is defined this function return always return ON)
void stayingAlive (void)
 activate the power selfholding to perform system stop (f.e.
void powerDown (void)
 shut off the whole system (set power down)
void setRelais (bool bitState)
 switch relais on or off

Actor_c Output BIOS functions

int16_t setPwmFreq (uint8_t bOutputGroup, uint32_t dwFrequency)
 define the frequency of the pwm signal
uint16_t getMaxPwmDigout (uint8_t rui8_channel)
 retrieve maximal PWM frequency -> setting to this value results in maximal output
int16_t setDigout (uint8_t rui8_channel, uint16_t wPWMValue)
 set pwm value 0 ...
int16_t getDigoutCurrent (uint8_t rui8_channel)
 deliver the actual current of the digital output
int16_t getDigoutDiagnose (uint8_t rui8_channel, uint16_t rui16_minCurrent, uint16_t rui16_maxCurrent)
 deliver the state of a digital output

RS232 I/O BIOS functions

int16_t init_rs232 (uint16_t wBaudrate, uint8_t bMode, uint8_t bStoppbits, bool bitSoftwarehandshake)
 init the RS232 interface
int16_t setRs232Baudrate (uint16_t wBaudrate)
 set the RS232 Baudrate
int16_t getRs232RxBufCount (void)
 get the amount of data [uint8_t] in receive puffer
int16_t getRs232TxBufCount (void)
 get the amount of data [uint8_t] in send puffer
int16_t configRs232RxObj (uint16_t wBuffersize, void(*pFunction)(byte _huge *bByte))
 configure a receive puffer and set optional irq function pointer for receive
int16_t configRs232TxObj (uint16_t wBuffersize, void(*funktionAfterTransmit)(byte _huge *bByte), void(*funktionBeforTransmit)(byte _huge *bByte))
 configure a send puffer and set optional irq function pointer for send
int16_t getRs232Error (uint8_t *Errorcode)
 get errr code of BIOS
int16_t getRs232Char (uint8_t *pbRead)
 read single int8_t from receive puffer
int16_t getRs232String (uint8_t *pbRead, uint8_t bLastChar)
 read bLastChar terminated string from receive puffer
int16_t put_rs232Char (uint8_t bByte)
 send single uint8_t on RS232
int16_t put_rs232NChar (const uint8_t *bpWrite, uint16_t wNumber)
 send string of n uint8_t on RS232
int16_t put_rs232String (const uint8_t *pbString)
 send '' terminated string on RS232
void clearRs232RxBuffer (void)
 clear receive puffer
void clearRs232TxBuffer (void)
 clear send puffer

Sensor_c Input BIOS functions

int16_t init_analoginVolt (uint8_t bNumber)
 initialize one of the [0..7] analog input channels to VOLTAGE input
int16_t init_analoginCurrent (uint8_t bNumber)
 initialize one of the [0..7] analog input channels to CURRENT input
int16_t init_digin (uint8_t rb_channel, uint8_t bMode, uint8_t bAktivhighlow, void(*pfFunctionName)())
 initialize one of the [0..15] digital input channels
int16_t init_counter (uint8_t rb_channel, uint16_t rui16_timebase, bool rb_activHigh, bool rb_risingEdge)
 init counter for trigger events on digital inoput; rising edges are counted;
uint32_t getCounter (uint8_t rb_channel)
 get counter value of an digital counter input
int16_t resetCounter (uint8_t rb_channel)
 reset the given counter
uint16_t getCounterPeriod (uint8_t rb_channel)
 get period of counter channel
uint16_t getCounterFrequency (uint8_t rb_channel)
 get frequency of counter channel
uint32_t getCounterLastSignalAge (uint8_t rb_channel)
 get time since last signal
void setFastAnalogin (bool bMode)
 set fast ADC mode ON or OFF (important: only the 8 analog inputs are measured during this time, --> the other system voltages aren't measured with active fast ADC)
int16_t getAdcVoltage (uint8_t rb_channel)
 get the measured voltage value of a channel in [mV]
int16_t getAdcMeanVoltage (uint8_t rb_channel)
 get the MEDIUM of measured voltage value of a channel in [mV]
int16_t getAdcCurrent (uint8_t rb_channel)
 get the measured current value of a channel in [uA]
int16_t getAdcMeanCurrent (uint8_t rb_channel)
 get the MEDIUM of measured current value of a channel in [uA]
int16_t getDiginDiagnoseAdc (uint8_t rb_channel)
 get the diagnose ADC value from specified DIGITAL INPUT channel
bool getAdcVirtMass (void)
 get the connection state of case mass
int16_t getAdcTemp (void)
 get the temperature
int16_t getAdcThreshold (void)
 get the threshold value
int16_t getAdcPic (void)
 get the voltage at the PIC
int16_t getAdcCurrentSum (void)
 get the complete sum of all currents
int16_t getDiginOnoff (uint8_t rb_channelNumber)
 deliver state of digital input based on Activ-High/Low setting (evalutation of sensor signals independent from switching type)
int16_t getDiginOnoffStatic (uint8_t rb_channelNumber)
 deliver debounced state of digital input based on Activ-High/Low setting (evalutation of sensor signals independent from switching type)
uint16_t getDiginFreq (uint8_t rb_channelNumber, bool b_useVirtual=false)
 deliver frequency of digital interrupt channel (this function uses default value for timebase for calculating frequency == 1,67sec.

RS232 I/O BIOS functions

int16_t configRs232RxObj (uint16_t wBuffersize, void(*pFunction)(uint8_t _huge *bByte))
 configure a receive puffer and set optional irq function pointer for receive
int16_t configRs232TxObj (uint16_t wBuffersize, void(*funktionAfterTransmit)(uint8_t _huge *bByte), void(*funktionBeforTransmit)(uint8_t _huge *bByte))
 configure a send puffer and set optional irq function pointer for send

Functions

void init_errorhandler (uint8_t bSwitch)


Detailed Description

namespace with layer of inline (cost NO overhead -> compiler replaces inline function with call to orig BIOS function) functions between all IsoAgLib calls for BIOS and the corresponding BIOS functions --> simply replace the call to the corresponding BIOS function in this header for adaption to new platform

Function Documentation

bool HAL::can_configGlobalClose uint8_t  rui8_busNr  )  [inline]
 

close CAN BUS (important to close BUS before re-init with other baudrate)

Parameters:
rui8_busNr number of the BUS to close (default 0)
Returns:
C_NO_ERR == no error; C_RANGE == wrong BUS nr; C_CONFIG == BUS previously not initialised

Definition at line 243 of file can.h.

References __HAL::can_configGlobalClose(), and uint8_t.

Referenced by __IsoAgLib::CANIO_c::baseCanInit(), __IsoAgLib::CANIO_c::close(), __IsoAgLib::CANIO_c::init(), and main().

Here is the call graph for this function:

bool HAL::can_configGlobalInit uint8_t  rui8_busNr,
uint16_t  rb_baudrate,
uint16_t  rb_maskStd,
uint32_t  rui32_maskExt,
uint32_t  rui32_maskLastmsg
[inline]
 

init CAN BUS with given baudrate and masks (11bit, 29bit and last msg mask)

Parameters:
rui8_busNr number of the BUS to init (default 0)
rb_baudrate baudrate in [kbaud]
rui16_maskStd 11bit global mask
rui32_maskExt 29bit global mask
rui32_maskLastmsg mask of last CAN msg
Returns:
C_NO_ERR == no error; C_RANGE == wrong BUS nr or wrong baudrate; C_WARN == BUS previously initialised - no problem if only masks had to be changed

Definition at line 217 of file can.h.

References __HAL::can_configGlobalInit(), uint16_t, uint32_t, and uint8_t.

Referenced by __IsoAgLib::CANIO_c::baseCanInit(), and main().

Here is the call graph for this function:

bool HAL::can_configGlobalMask uint8_t  rui8_busNr,
uint16_t  rb_maskStd,
uint32_t  rui32_maskExt,
uint32_t  rui32_maskLastmsg
[inline]
 

set the global masks (11bit, 29bit and last msg mask)

Parameters:
rui8_busNr number of the BUS to config (default 0)
rui16_maskStd 11bit global mask
rui32_maskExt 29bit global mask
rui32_maskLastmsg mask of last CAN msg
Returns:
C_NO_ERR == no error; C_RANGE == wrong BUS nr

Definition at line 232 of file can.h.

References __HAL::can_configGlobalMask(), uint16_t, uint32_t, and uint8_t.

Here is the call graph for this function:

int16_t HAL::can_configMsgobjChgid uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr,
__IsoAgLib::Ident_c rrefc_ident
[inline]
 

change the Ident_c of an already initialised MsgObj (class __IsoAgLib::Ident_c has ident and type 11/29bit)

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
rrefc_ident filter ident of this MsgObj
Returns:
C_NO_ERR == no error; C_CONFIG == BUS not initialised or ident can't be changed C_RANGE == wrong BUS or MsgObj number

Definition at line 279 of file can.h.

References __HAL::can_configMsgobjChgid(), int16_t, and uint8_t.

Referenced by main(), and __IsoAgLib::MsgObj_c::merge().

Here is the call graph for this function:

int16_t HAL::can_configMsgobjClose uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

close a MsgObj

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
Returns:
C_NO_ERR == no error; C_CONFIG == BUS not initialised, MsgObj previously not used or buffer memory not freed C_RANGE == wrong BUS or MsgObj number

Definition at line 303 of file can.h.

References __HAL::can_configMsgobjClose(), int16_t, and uint8_t.

Referenced by __IsoAgLib::MsgObj_c::closeCan(), and main().

Here is the call graph for this function:

int16_t HAL::can_configMsgobjInit uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr,
__IsoAgLib::Ident_c rrefc_ident,
uint8_t  rb_rxtx
[inline]
 

config a MsgObj (buffer size is defined locally in implementation of this interface; all received msgs should get a time stamp; class Ident_c has ident and type 11/29bit)

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
rrefc_ident filter ident of this MsgObj
rb_rxtx 0==RX receive; 1==TX transmit
Returns:
C_NO_ERR == no error; C_BUSY == this MsgObj is already used C_CONFIG == BUS not initialised or error during buffer allocation C_RANGE == wrong BUS or MsgObj number

Definition at line 266 of file can.h.

References __HAL::can_configMsgobjInit(), int16_t, and uint8_t.

Referenced by __IsoAgLib::CANIO_c::baseCanInit(), __IsoAgLib::MsgObj_c::configCan(), and main().

Here is the call graph for this function:

int16_t HAL::can_configMsgobjSendpause uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr,
uint16_t  rui16_minSend
[inline]
 

change the the send rate for one MsgObj by setting the minimum pause time between two messages [msec.]

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
rui16_minSendPause minimum send pause between two sent messages [msec.]
Returns:
C_NO_ERR == no error; C_CONFIG == BUS not initialised or ident can't be changed C_RANGE == wrong BUS or MsgObj number

Definition at line 292 of file can.h.

References __HAL::can_configMsgobjSendpause(), int16_t, uint16_t, and uint8_t.

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

Here is the call graph for this function:

bool HAL::can_stateGlobalBit1err uint8_t  rui8_busNr = 0  )  [inline]
 

check if a send try on this BUS caused an Bit1Error (occurs if >1 controller try to send msg with same ident) ==> ISO 11783 forces stop of retries in this case for adress claim

Parameters:
rui8_busNr number of the BUS to check
Returns:
true -> Bit1Err occured

Definition at line 135 of file can.h.

References __HAL::can_stateGlobalBit1err(), and uint8_t.

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

Here is the call graph for this function:

bool HAL::can_stateGlobalBlocked uint8_t  rui8_busNr = 0  )  [inline]
 

test if the CAN BUS is in Blocked state, which can be a sign for CAN controllers which are configured with different baudrates; this is the case if neither succesfull sent nor received msg is detcted AND CAN controller is in WARN or OFF state (the time since last succ.

send/rec and the time of WARN/OFF can be defined with MAX_CAN_ERR_TIME_BEFORE_CAN_SLOWERING in the application specific config file isoaglib_config -> should not be to short to avoid false alarm)

Parameters:
rui8_busNr number of the BUS to check (default 0)
Returns:
true == CAN BUS is in blocked state, else normal operation

Definition at line 116 of file can.h.

References __HAL::can_stateGlobalBlocked(), and uint8_t.

Referenced by __IsoAgLib::CANIO_c::operator<<(), and __IsoAgLib::CANIO_c::timeEvent().

Here is the call graph for this function:

int32_t HAL::can_stateGlobalBusload uint8_t  rui8_busNr = 0  )  [inline]
 

deliver the baudrate of the CAN BUS in [kbaud]

Parameters:
rui8_busNr number of the BUS to check (default 0)
Returns:
BUS load of the last second [kbaud]

Definition at line 124 of file can.h.

References __HAL::can_stateGlobalBusload(), int32_t, and uint8_t.

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

Here is the call graph for this function:

bool HAL::can_stateGlobalOff uint8_t  rui8_busNr = 0  )  [inline]
 

test if the CAN BUS is in OFF state

Parameters:
rui8_busNr number of the BUS to check (default 0)
Returns:
true == CAN BUS is in OFF state, else normal operation

Definition at line 101 of file can.h.

References __HAL::can_stateGlobalOff(), and uint8_t.

Here is the call graph for this function:

bool HAL::can_stateGlobalWarn uint8_t  rui8_busNr = 0  )  [inline]
 

test if the CAN BUS is in WARN state

Parameters:
rui8_busNr number of the BUS to check (default 0)
Returns:
true == CAN BUS is in WARN state, else normal operation

Definition at line 93 of file can.h.

References __HAL::can_stateGlobalWarn(), and uint8_t.

Here is the call graph for this function:

uint16_t HAL::can_stateMsgobjBuffercnt uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

deliver amount of messages in buffer (interesting for RX objects)

Parameters:
rui8_busNr number of the BUS to check
rui8_msgobjNr number of the MsgObj to check
Returns:
number of messages in buffer or negative error code: C_CONFIG == BUS not initialised C_RANGE == wrong BUS or MsgObj number

Definition at line 184 of file can.h.

References __HAL::can_stateMsgobjBuffercnt(), uint16_t, and uint8_t.

Referenced by main(), __IsoAgLib::MsgObj_c::processMsg(), and __IsoAgLib::CANIO_c::timeEvent().

Here is the call graph for this function:

int16_t HAL::can_stateMsgobjFreecnt uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

deliver amount of messages which can be placed in buffer (interesting for TX objects)

Parameters:
rui8_busNr number of the BUS to check
rui8_msgobjNr number of the MsgObj to check
Returns:
number of messages which can be placed in buffer or negative error code: C_CONFIG == BUS not initialised C_RANGE == wrong BUS or MsgObj number

Definition at line 196 of file can.h.

References __HAL::can_stateMsgobjFreecnt(), int16_t, and uint8_t.

Referenced by __IsoAgLib::CANIO_c::operator<<(), and __IsoAgLib::CANIO_c::sendCanFreecnt().

Here is the call graph for this function:

bool HAL::can_stateMsgobjOverflow uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

test if buffer of a MsgObj is full (e.g.

no more msg can be put into buffer (important for TX objects))

Parameters:
rui8_busNr number of the BUS to check
rui8_msgobjNr number of the MsgObj to check
Returns:
true -> buffer is full -> no further can_send allowed

Definition at line 172 of file can.h.

References __HAL::can_stateMsgobjOverflow(), and uint8_t.

Here is the call graph for this function:

bool HAL::can_stateMsgobjSendproblem uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

check if a send MsgObj can't send msgs from buffer to the BUS (detecetd by comparing the inactive time with MAX_SEND_WAIT_TIME (defined in isoaglib_config)

Parameters:
rui8_busNr number of the BUS to check
rui8_msgobjNr number of the MsgObj to check
Returns:
true -> longer than MAX_SEND_WAIT_TIME no msg sent on BUS

Definition at line 162 of file can.h.

References __HAL::can_stateMsgobjSendproblem(), and uint8_t.

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

Here is the call graph for this function:

int32_t HAL::can_stateMsgobjTxok uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

deliver the timestamp of last successfull CAN send action

Parameters:
rui8_busNr number of the BUS to check
rui8_msgobjNr number of the MsgObj to check
Returns:
timestamp of last successful send OR -1 if rui8_msgObjNr corresponds to no valid send obj

Definition at line 151 of file can.h.

References __HAL::can_stateMsgobjTxok(), int32_t, and uint8_t.

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

Here is the call graph for this function:

int16_t HAL::can_useMsgobjClear uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

clear th buffer of a MsgObj (e.g.

to stop sending retries)

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
Returns:
C_NO_ERR == no error; C_CONFIG == BUS not initialised C_RANGE == wrong BUS or MsgObj number

Definition at line 388 of file can.h.

References __HAL::can_useMsgobjClear(), int16_t, and uint8_t.

Referenced by __IsoAgLib::CANIO_c::operator<<(), __IsoAgLib::MsgObj_c::processMsg(), __IsoAgLib::CANIO_c::sendCanClearbuf(), and __IsoAgLib::CANIO_c::stopSendRetryOnErr().

Here is the call graph for this function:

int16_t HAL::can_useMsgobjGet uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr,
__IsoAgLib::CANPkg_c rpc_data
[inline]
 

get a received message from a MsgObj; CANPkg_c (or derived object) must provide (virtual) functions: setIdent(Ident_c& rrefc_ident) -> set ident rrefc_ident of received msg in CANPkg uint8_t setData(uint8_t rb_dlc, uint8_t* rpb_data) -> set DLC in CANPkg_c from rb_dlc and insert data from uint8_t string rpb_data

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
rpc_data pointer to CANPkg_c instance with data to send
Returns:
C_NO_ERR == no error; C_CONFIG == BUS not initialised, MsgObj is no RX object C_NOACT == BUS OFF C_OVERFLOW == send buffer overflowed C_RANGE == wrong BUS or MsgObj number C_WARN == BUS WARN or no received message

Definition at line 366 of file can.h.

References __HAL::can_useMsgobjGet(), int16_t, and uint8_t.

Referenced by main(), and __IsoAgLib::MsgObj_c::processMsg().

Here is the call graph for this function:

void HAL::can_useMsgobjIgnore uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
[inline]
 

if a received message is not configured to be processed by this ECU, just ignore it (this is needed, as the message is buffered between call of can_useMsgobjReceivedIdent and can_useMsgobjGet

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config

Definition at line 376 of file can.h.

References __HAL::can_useMsgobjIgnore(), and uint8_t.

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

Here is the call graph for this function:

int32_t HAL::can_useMsgobjReceivedIdent uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr,
int32_t reflIdent
[inline]
 

get the ident of a received message to decide about the further processing before the whole data string is retreived

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
reflIdent reference to the var, where the ident should be inserted
Returns:
error code C_NO_ERR == No problem C_CONFIG == BUS not initialised, MsgObj is no RX object C_NOACT == BUS OFF C_OVERFLOW == send buffer overflowed C_RANGE == wrong BUS or MsgObj number C_WARN == BUS WARN or no received message

Definition at line 345 of file can.h.

References __HAL::can_useMsgobjReceivedIdent(), int32_t, and uint8_t.

Referenced by main(), and __IsoAgLib::MsgObj_c::processMsg().

Here is the call graph for this function:

int16_t HAL::can_useMsgobjSend uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr,
__IsoAgLib::CANPkg_c rpc_data
[inline]
 

send a message via a MsgObj; CANPkg_c (or derived object) must provide (virtual) functions: Ident_c& getIdent() -> deliver ident of msg to send uint8_t getData(MASK_TYPE& reft_ident, uint8_t& refui8_identType, uint8_t& refb_dlc, uint8_t* pb_data) -> put DLC in referenced ref_dlc and insert data in uint8_t string pb_data

Parameters:
rui8_busNr number of the BUS to config
rui8_msgobjNr number of the MsgObj to config
rpc_data pointer to CANPkg_c instance with data to send
Returns:
C_NO_ERR == no error; C_CONFIG == BUS not initialised, MsgObj is no send object C_NOACT == BUS OFF C_OVERFLOW == send buffer overflowed C_RANGE == wrong BUS or MsgObj number

Definition at line 328 of file can.h.

References __HAL::can_useMsgobjSend(), int16_t, and uint8_t.

Referenced by main(), and __IsoAgLib::CANIO_c::operator<<().

Here is the call graph for this function:

void HAL::clearRs232RxBuffer void   )  [inline]
 

clear receive puffer

Definition at line 201 of file rs232.h.

References __HAL::clear_rs232_rx_buffer(), __HAL::puc_rs232BufferRead, and __HAL::puc_rs232BufferWrite.

Referenced by __IsoAgLib::RS232IO_c::clearRecPuffer(), __HAL::readDataFromRs232RingBuffer(), and __HAL::writeDataToRs232RingBuffer().

Here is the call graph for this function:

void HAL::clearRs232TxBuffer void   )  [inline]
 

clear send puffer

Definition at line 206 of file rs232.h.

References __HAL::clear_rs232_tx_buffer().

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

Here is the call graph for this function:

int16_t HAL::closeSystem void   )  [inline]
 

close the system with system specific function call

Returns:
error state (HAL_NO_ERR == o.k.)

Definition at line 112 of file system.h.

References __HAL::closeSystem(), and int16_t.

Referenced by __IsoAgLib::System_c::close().

Here is the call graph for this function:

int16_t configRs232RxObj uint16_t  wBuffersize,
void(*  pFunction)(uint8_t _huge *bByte)
[inline]
 

configure a receive puffer and set optional irq function pointer for receive

Parameters:
wBuffersize wanted puffer size
pFunction pointer to irq function or NULL if not wanted

Definition at line 126 of file rs232.h.

References __HAL::configRs232RxObj(), int16_t, uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t configRs232RxObj uint16_t  wBuffersize,
void(*  pFunction)(byte _huge *bByte)
[inline]
 

configure a receive puffer and set optional irq function pointer for receive

Parameters:
wBuffersize wanted puffer size
pFunction pointer to irq function or NULL if not wanted

Definition at line 134 of file rs232.h.

References byte, __HAL::config_rs232_rx_obj(), int16_t, and uint16_t.

Referenced by __IsoAgLib::RS232IO_c::init(), and __IsoAgLib::RS232IO_c::setRecPufferSize().

Here is the call graph for this function:

int16_t configRs232TxObj uint16_t  wBuffersize,
void(*  funktionAfterTransmit)(uint8_t _huge *bByte),
void(*  funktionBeforTransmit)(uint8_t _huge *bByte)
[inline]
 

configure a send puffer and set optional irq function pointer for send

Parameters:
wBuffersize wanted puffer size
funktionAfterTransmit pointer to irq function or NULL if not wanted
funktionBeforTransmit pointer to irq function or NULL if not wanted

Definition at line 134 of file rs232.h.

References __HAL::configRs232TxObj(), int16_t, uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t configRs232TxObj uint16_t  wBuffersize,
void(*  funktionAfterTransmit)(byte _huge *bByte),
void(*  funktionBeforTransmit)(byte _huge *bByte)
[inline]
 

configure a send puffer and set optional irq function pointer for send

Parameters:
wBuffersize wanted puffer size
funktionAfterTransmit pointer to irq function or NULL if not wanted
funktionBeforTransmit pointer to irq function or NULL if not wanted

Definition at line 148 of file rs232.h.

References byte, __HAL::config_rs232_tx_obj(), int16_t, and uint16_t.

Referenced by __IsoAgLib::RS232IO_c::init(), and __IsoAgLib::RS232IO_c::setSndPufferSize().

Here is the call graph for this function:

int16_t HAL::configWatchdog void   )  [inline]
 

configure the watchdog of the system with the settings of configImi

Returns:
error state (HAL_NO_ERR == o.k.) or DATA_CHANGED on new values -> need call of wdReset to use new settings
See also:
wdReset

Definition at line 126 of file system.h.

References __HAL::configWatchdog(), and int16_t.

Referenced by __IsoAgLib::System_c::initWd().

Here is the call graph for this function:

int16_t HAL::eepromRead uint16_t  wAddress,
uint16_t  wNumber,
uint8_t pbByte
[inline]
 

read amount of uint8_t in uint8_t string variable

Parameters:
wAdress start adress to read
wNumber amount of bytes to read
pbByte pointer to uint8_t string, where data is inserted
Returns:
error state (C_NO_ERR == o.k.)

Definition at line 127 of file eeprom.h.

References __HAL::eeprom_read(), int16_t, uint16_t, and uint8_t.

Referenced by __IsoAgLib::EEPROMIO_c::readIntern(), and __IsoAgLib::EEPROMIO_c::readString().

Here is the call graph for this function:

int16_t HAL::eepromReady void   )  [inline]
 

check if EEPROM is ready for actions

Returns:
EE_READY -> ready

Definition at line 153 of file eeprom.h.

References __HAL::eeprom_ready(), and int16_t.

Referenced by __IsoAgLib::EEPROMIO_c::wait_eepromReady().

Here is the call graph for this function:

int16_t HAL::eepromWp bool  bitMode  )  [inline]
 

set or unset set write protection of EEPROM, should be called before every write access

Parameters:
bitMode sets write protection OFF or ON
Returns:
error state (C_NO_ERR == o.k.)

Definition at line 146 of file eeprom.h.

References __HAL::eeprom_wp(), and int16_t.

Here is the call graph for this function:

int16_t HAL::eepromWrite uint16_t  wAddress,
uint16_t  wNumber,
uint8_t pbData
[inline]
 

write amount of uint8_t from string into EEPROM from given start adress

Parameters:
wAdress adress of first written uint8_t in EEPROM
wNumber amount of written data
pbData pointer to uint8_t string which should be written into EEPROM
Returns:
error state (C_NO_ERR == o.k.)

Definition at line 137 of file eeprom.h.

References __HAL::eeprom_write(), int16_t, uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t HAL::getAdc_u85 void   )  [inline]
 

get the voltage of the external reference 8.5Volt for work of external sensors

Returns:
voltage at external reference [mV]

Definition at line 165 of file system.h.

References GET_U_EXT_8_5_V, and int16_t.

Referenced by __IsoAgLib::System_c::getExternalSensorPowerVoltage().

int16_t getAdcCurrent uint8_t  rb_channel  )  [inline]
 

get the measured current value of a channel in [uA]

Parameters:
rb_channel measured channel
Returns:
current [4000..20000] [uA] or C_RANGE on wrong input channel number

Definition at line 223 of file sensor.h.

References int16_t, and uint8_t.

Referenced by __IsoAgLib::AnalogI_c::val().

int16_t getAdcCurrentSum void   )  [inline]
 

get the complete sum of all currents

Returns:
sum of all currents [mA]

Definition at line 279 of file sensor.h.

References int16_t.

int16_t getAdcMeanCurrent uint8_t  rb_channel  )  [inline]
 

get the MEDIUM of measured current value of a channel in [uA]

Parameters:
rb_channel measured channel
Returns:
current [4000..20000] [uA] or C_RANGE on wrong input channel number

Definition at line 232 of file sensor.h.

References __HAL::get_analogin_mean(), int16_t, and uint8_t.

Referenced by __IsoAgLib::AnalogI_c::val().

Here is the call graph for this function:

int16_t getAdcMeanVoltage uint8_t  rb_channel  )  [inline]
 

get the MEDIUM of measured voltage value of a channel in [mV]

Parameters:
rb_channel measured channel
Returns:
voltage [0..8500] [mV] or C_RANGE on wrong input channel number

Definition at line 214 of file sensor.h.

References __HAL::get_analogin_mean(), int16_t, and uint8_t.

Referenced by __IsoAgLib::AnalogI_c::val().

Here is the call graph for this function:

int16_t getAdcPic void   )  [inline]
 

get the voltage at the PIC

Returns:
PIC voltage [mV]

Definition at line 272 of file sensor.h.

References int16_t.

int16_t getAdcTemp void   )  [inline]
 

get the temperature

Returns:
temperature in degree [-40..85]

Definition at line 255 of file sensor.h.

References int16_t.

int16_t getAdcThreshold void   )  [inline]
 

get the threshold value

Returns:
threshold voltage [mV]

Definition at line 265 of file sensor.h.

References int16_t.

int16_t HAL::getAdcUbat void   )  [inline]
 

get the main power voltage

Returns:
voltage of power [mV]

Definition at line 159 of file system.h.

References GET_U_C, and int16_t.

Referenced by __IsoAgLib::System_c::getBatteryVoltage().

bool getAdcVirtMass void   )  [inline]
 

get the connection state of case mass

Returns:
true == case is connected to ground

Definition at line 249 of file sensor.h.

int16_t getAdcVoltage uint8_t  rb_channel  )  [inline]
 

get the measured voltage value of a channel in [mV]

Parameters:
rb_channel measured channel
Returns:
voltage [0..8500] [mV] or C_RANGE on wrong input channel number

Definition at line 205 of file sensor.h.

References int16_t, and uint8_t.

Referenced by __IsoAgLib::AnalogI_c::val().

uint32_t getCounter uint8_t  rb_channel  )  [inline]
 

get counter value of an digital counter input

Parameters:
rb_channel channel of counter [0..15]
Returns:
counter events since init or last reset

Definition at line 159 of file sensor.h.

References __HAL::getCounter(), uint32_t, and uint8_t.

Referenced by __IsoAgLib::CounterI_c::valLong().

Here is the call graph for this function:

uint16_t getCounterFrequency uint8_t  rb_channel  )  [inline]
 

get frequency of counter channel

Parameters:
rb_channel channel of counter [0..15]
Returns:
frequency calculated from time between last two signals or 0 if time is longer than initially given timebase

Definition at line 182 of file sensor.h.

References __HAL::getCounterFrequency(), uint16_t, and uint8_t.

Referenced by __IsoAgLib::CounterI_c::frequency().

Here is the call graph for this function:

uint32_t getCounterLastSignalAge uint8_t  rb_channel  )  [inline]
 

get time since last signal

Parameters:
rb_channel channel of counter
Returns:
time since last signal [msec.]

Definition at line 189 of file sensor.h.

References __HAL::getCounterLastSignalAge(), uint32_t, and uint8_t.

Referenced by __IsoAgLib::CounterI_c::lastSignalAge().

Here is the call graph for this function:

uint16_t getCounterPeriod uint8_t  rb_channel  )  [inline]
 

get period of counter channel

Parameters:
rb_channel channel of counter [0..15]
Returns:
time between last two signals or 0xFFFF if time is longer than initially given timebase

Definition at line 174 of file sensor.h.

References __HAL::getCounterPeriod(), uint16_t, and uint8_t.

Referenced by __IsoAgLib::CounterI_c::period().

Here is the call graph for this function:

int16_t getDiginDiagnoseAdc uint8_t  rb_channel  )  [inline]
 

get the diagnose ADC value from specified DIGITAL INPUT channel

Parameters:
rb_channel channel number [0..15]
Returns:
ADC diagnose voltage [ or C_RANGE on wrong input channel number

Definition at line 241 of file sensor.h.

References int16_t, and uint8_t.

uint16_t getDiginFreq uint8_t  rb_channelNumber,
bool  b_useVirtual = false
[inline]
 

deliver frequency of digital interrupt channel (this function uses default value for timebase for calculating frequency == 1,67sec.

for 20MHz CPU)

Parameters:
rb_channelNumber input channel number [DIN1..DIN16]
b_useVirtual (default false) use virtual calculated value, if last trigger is lasted longer than last period -> virt_val uses time from last trigger to actual time
Returns:
frequency of triggered events [mHz] or BIOS_WARN on too less impulses

Definition at line 312 of file sensor.h.

References __HAL::get_digin_freq(), uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t getDiginOnoff uint8_t  rb_channelNumber  )  [inline]
 

deliver state of digital input based on Activ-High/Low setting (evalutation of sensor signals independent from switching type)

Parameters:
rb_channelNumber input channel number [DIN1..DIN16]
Returns:
ON, OFF or C_RANGE

Definition at line 290 of file sensor.h.

References __HAL::get_digin_onoff(), int16_t, and uint8_t.

Referenced by __IsoAgLib::DigitalI_c::val().

Here is the call graph for this function:

int16_t getDiginOnoffStatic uint8_t  rb_channelNumber  )  [inline]
 

deliver debounced state of digital input based on Activ-High/Low setting (evalutation of sensor signals independent from switching type)

Parameters:
rb_channelNumber input channel number [DIN1..DIN16]
Returns:
ON, OFF or C_RANGE

Definition at line 299 of file sensor.h.

References __HAL::get_digin_onoff_static(), int16_t, and uint8_t.

Referenced by __IsoAgLib::DigitalI_c::val().

Here is the call graph for this function:

int16_t getDigoutCurrent uint8_t  rui8_channel  )  [inline]
 

deliver the actual current of the digital output

Parameters:
rui8_channel channel to check
Returns:
current in [mA] ( if specified channel doesn't support current measurement, -1 is returned )

Definition at line 155 of file actor.h.

References int16_t, and uint8_t.

Referenced by __IsoAgLib::DigitalO_c::getDigoutCurrent(), and IsoAgLib::iDigitalO_c::getDigoutCurrent().

int16_t getDigoutDiagnose uint8_t  rui8_channel,
uint16_t  rui16_minCurrent,
uint16_t  rui16_maxCurrent
[inline]
 

deliver the state of a digital output

Parameters:
rui8_channel channel to check
rui16_minCurrent minimal allowed current in [mA]
rui16_maxCurrent maximum allowed current in [mA]
Returns:
HAL_NO_ERR, HAL_DIGOUT_OPEN, HAL_DIGOUT_SHORTCUT, HAL_DIGOUT_OVERTEMP, HAL_DIGOUT_UNDERVOLT, HAL_DIGOUT_OVERVOLT

Definition at line 173 of file actor.h.

References int16_t, uint16_t, and uint8_t.

Referenced by __IsoAgLib::DigitalO_c::getState(), and __IsoAgLib::DigitalO_c::good().

int16_t HAL::getEepromSegmentSize void   )  [inline]
 

deliver the EEPROM segment size in kbyte

Returns:
EEPROM segment size in kbyte

Definition at line 117 of file eeprom.h.

References __HAL::get_eeprom_segment_size(), and int16_t.

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

Here is the call graph for this function:

int16_t HAL::getEepromSize void   )  [inline]
 

deliver the EEPROM size in uint8_t -> mult PM167 BIOS value with 1024

Returns:
EEPROM size in byte

Definition at line 110 of file eeprom.h.

References __HAL::get_eeprom_size(), and int16_t.

Referenced by __IsoAgLib::EEPROMIO_c::eepromSize().

Here is the call graph for this function:

uint16_t getMaxPwmDigout uint8_t  rui8_channel  )  [inline]
 

retrieve maximal PWM frequency -> setting to this value results in maximal output

Parameters:
rui8_channel channel number of output [0..11]
Returns:
max possible PWM value

Definition at line 137 of file actor.h.

References __HAL::get_digout_status(), uint16_t, uint8_t, and __HAL::tOutput::wMaxOutput.

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

Here is the call graph for this function:

int16_t HAL::getOn_offSwitch void   )  [inline]
 

check if D+/CAN_EN is active (if NO_CAN_EN_CHECK is defined this function return always return ON)

Returns:
ON(1) or OFF(0)

Definition at line 173 of file system.h.

References int16_t.

Referenced by __IsoAgLib::System_c::canEn().

int16_t HAL::getRs232Char uint8_t pbRead  )  [inline]
 

read single int8_t from receive puffer

Parameters:
pbRead pointer to target data
Returns:
HAL_NO_ERR -> o.k. else puffer underflow

Definition at line 164 of file rs232.h.

References __HAL::get_rs232_char(), int16_t, __HAL::readDataFromRs232RingBuffer(), and uint8_t.

Referenced by __IsoAgLib::RS232IO_c::operator>>(), __IsoAgLib::RS232IO_c::readToken(), and __IsoAgLib::RS232IO_c::receive().

Here is the call graph for this function:

int16_t HAL::getRs232Error uint8_t Errorcode  )  [inline]
 

get errr code of BIOS

Returns:
0=parity, 1=stopbit framing error, 2=overflow

Definition at line 156 of file rs232.h.

References __HAL::get_rs232_error(), int16_t, and uint8_t.

Here is the call graph for this function:

int16_t HAL::getRs232RxBufCount void   )  [inline]
 

get the amount of data [uint8_t] in receive puffer

Returns:
receive puffer data byte

Definition at line 117 of file rs232.h.

References __HAL::get_rs232_rx_buf_count(), __HAL::getRs232RingBufferSize(), and int16_t.

Referenced by __IsoAgLib::RS232IO_c::eof(), main(), and __IsoAgLib::RS232IO_c::rec_pufferCnt().

Here is the call graph for this function:

int16_t HAL::getRs232String uint8_t pbRead,
uint8_t  bLastChar
[inline]
 

read bLastChar terminated string from receive puffer

Parameters:
pbRead pointer to target data
bLastChar terminating char
Returns:
HAL_NO_ERR -> o.k. else puffer underflow

Definition at line 172 of file rs232.h.

References __HAL::get_rs232_string(), int16_t, __HAL::readDataFromRs232RingBuffer(), and uint8_t.

Referenced by main(), and __IsoAgLib::RS232IO_c::operator>>().

Here is the call graph for this function:

int16_t HAL::getRs232TxBufCount void   )  [inline]
 

get the amount of data [uint8_t] in send puffer

Returns:
send puffer data byte

Definition at line 123 of file rs232.h.

References __HAL::get_rs232_tx_buf_count(), and int16_t.

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

Here is the call graph for this function:

int16_t HAL::getSnr uint8_t snrDat  )  [inline]
 

Definition at line 146 of file system.h.

References __HAL::get_snr(), int16_t, and uint8_t.

Referenced by __IsoAgLib::System_c::serialNo().

Here is the call graph for this function:

int32_t HAL::getTime void   )  [inline]
 

get the system time in [ms]

Returns:
[ms] since start of the system
Examples:
1_2_WriteIso.cc, 1_3_WriteDin.cc, 1_4_WriteFlexibleIso.cc, 1_5_WriteFlexibleDin.cc, and imi.cc.

Definition at line 143 of file system.h.

References __HAL::get_time(), and int32_t.

Referenced by __IsoAgLib::ISOItem_c::calc_randomWait(), __IsoAgLib::Base_c::calendarSetAge(), IsoAgLib::iSystem_c::getTime(), __IsoAgLib::System_c::getTime(), __IsoAgLib::ISOTerminal_c::indicateObjectPoolCompletion(), interrupt(), __IsoAgLib::ISOTerminal_c::isVtActive(), localGetHour(), localGetMinute(), localGetRealDist(), localGetSecond(), localGetTheorDist(), main(), __IsoAgLib::DINMonitor_c::processAddressClaimMsg(), __IsoAgLib::DINMonitor_c::processMsg(), __IsoAgLib::MultiSend_c::processMsg(), __IsoAgLib::ISOTerminal_c::processMsg(), __IsoAgLib::SetpointRemote_c::processSet(), __IsoAgLib::MultiSend_c::sendIntern(), __IsoAgLib::DINMonitor_c::sendPeriodicStop(), __IsoAgLib::DINMonitor_c::sendStopIntern(), __IsoAgLib::Base_c::setCalendar(), __IsoAgLib::Base_c::setDay(), __IsoAgLib::SetpointRemote_c::setExact(), __IsoAgLib::Base_c::setHour(), __IsoAgLib::IdentItem_c::setIndividualWait(), __IsoAgLib::ISOMonitor_c::setLastIsoSaRequest(), __IsoAgLib::SetpointRemote_c::setMax(), __IsoAgLib::SetpointRemote_c::setMin(), __IsoAgLib::Base_c::setMinute(), __IsoAgLib::Base_c::setMonth(), __IsoAgLib::SetpointRemote_c::setPercent(), __IsoAgLib::Base_c::setSecond(), __IsoAgLib::DINMonitor_c::setUsedAdr(), __IsoAgLib::MeasureProgRemote_c::setVal(), __IsoAgLib::MeasureProgLocal_c::setVal(), __IsoAgLib::Base_c::setYear(), __IsoAgLib::MeasureProgRemote_c::start(), __IsoAgLib::ISOTerminal_c::startObjectPoolUploading(), __IsoAgLib::CANIO_c::timeEvent(), __IsoAgLib::Scheduler_c::timeEvent(), __IsoAgLib::ISOTerminal_c::timeEvent(), __IsoAgLib::DINMaskUpload_c::tryResendMaskSyncData(), and __IsoAgLib::EEPROMIO_c::wait_eepromReady().

Here is the call graph for this function:

int16_t init_analoginCurrent uint8_t  bNumber  )  [inline]
 

initialize one of the [0..7] analog input channels to CURRENT input

Parameters:
bNumber number of the analog input channel
Returns:
error state (C_NO_ERR == o.k.)

Definition at line 127 of file sensor.h.

References int16_t, and uint8_t.

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

int16_t init_analoginVolt uint8_t  bNumber  )  [inline]
 

initialize one of the [0..7] analog input channels to VOLTAGE input

Parameters:
bNumber number of the analog input channel
Returns:
error state (C_NO_ERR == o.k.)

Definition at line 120 of file sensor.h.

References int16_t, and uint8_t.

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

int16_t init_counter uint8_t  rb_channel,
uint16_t  rui16_timebase,
bool  rb_activHigh,
bool  rb_risingEdge
[inline]
 

init counter for trigger events on digital inoput; rising edges are counted;

Parameters:
rb_channel input channel to use [0..15]
rui16_timebase timebase to calculate periods, frequency should be at least longer than longest awaited signal period [msec.]
rb_activHigh true -> counter input is configured fo ACTIV_HIGH; else ACTIV_LOW
rb_risingEdge true -> counter triggers on rising edge; else on falling edge
Returns:
C_NO_ERR if no error occured

Definition at line 152 of file sensor.h.

References __HAL::init_counter(), int16_t, uint16_t, and uint8_t.

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

Here is the call graph for this function:

int16_t init_digin uint8_t  rb_channel,
uint8_t  bMode,
uint8_t  bAktivhighlow,
void(*  pfFunctionName)()
[inline]
 

initialize one of the [0..15] digital input channels

Parameters:
rb_channel number of the digital input channel
bMode input mode {DIGIN, RISING_EDGE, FALLING_EDGE, BOTH_EDGE}
bAktivhighlow {HIGH_ACTIV, LOW_ACTIV}
pfFunctionName adress of function which is called on input events (NULL -> none)
Returns:
error state (C_NO_ERR == o.k.)

Definition at line 138 of file sensor.h.

References __HAL::init_digin(), int16_t, and uint8_t.

Referenced by __IsoAgLib::DigitalI_c::init(), __IsoAgLib::DigitalI_c::setOnHigh(), and __IsoAgLib::DigitalI_c::setOnLow().

Here is the call graph for this function:

void init_errorhandler uint8_t  bSwitch  ) 
 

int16_t HAL::init_rs232 uint16_t  wBaudrate,
uint8_t  bMode,
uint8_t  bStoppbits,
bool  bitSoftwarehandshake
[inline]
 

init the RS232 interface

Parameters:
wBaudrate wnated Baudrate {75, 600, 1200, 2400, 4800, 9600, 19200} as configured in <Application_Config/isoaglib_config.h>
bMode one of (DATA_7_BITS_EVENPARITY = 1, DATA_8_BITS_EVENPARITY = 2, DATA_7_BITS_ODDPARITY = 3, DATA_8_BITS_ODDPARITY = 4, DATA_8_BITS_NOPARITY = 5)
bStoppbits amount of stop bits (1,2)
bitSoftwarehandshake true -> use xon/xoff software handshake
Returns:
HAL_NO_ERR -> o.k. else one of settings incorrect

Definition at line 104 of file rs232.h.

References __HAL::init_rs232(), int16_t, uint16_t, and uint8_t.

Referenced by __IsoAgLib::RS232IO_c::init(), and main().

Here is the call graph for this function:

bool HAL::isSystemOpened void   )  [inline]
 

check if open_System() has already been called

Definition at line 117 of file system.h.

References __HAL::isSystemOpened().

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

Here is the call graph for this function:

int16_t HAL::open_system void   )  [inline]
 

open the system with system specific function call

Returns:
error state (HAL_NO_ERR == o.k.)

Definition at line 104 of file system.h.

References int16_t, and __HAL::open_system().

Referenced by __IsoAgLib::System_c::init(), and main().

Here is the call graph for this function:

void HAL::powerDown void   )  [inline]
 

shut off the whole system (set power down)

Definition at line 192 of file system.h.

References __HAL::power_down().

Referenced by __IsoAgLib::System_c::setPowerdownStrategy().

Here is the call graph for this function:

int16_t HAL::printf   ...  )  [inline]
 

Definition at line 96 of file system.h.

References int16_t.

Referenced by __HAL::configWd(), __HAL::eepromWrite(), __HAL::eepromWriteByte(), __HAL::getCpuFreq(), __HAL::iCallRs232EEMonitor(), __HAL::iInitEEEditor(), __HAL::powerDown(), __IsoAgLib::MultiSend_c::processMsg(), __HAL::send(), __IsoAgLib::MultiSend_c::sendDin(), __HAL::setRelais(), __HAL::startTaskTimer(), __HAL::stayingAlive(), __IsoAgLib::MultiSend_c::timeEvent(), and __HAL::wdReset().

int16_t HAL::put_rs232Char uint8_t  bByte  )  [inline]
 

send single uint8_t on RS232

Parameters:
bByte data uint8_t to send
Returns:
HAL_NO_ERR -> o.k. else send puffer overflow

Definition at line 180 of file rs232.h.

References int16_t, __HAL::put_rs232_char(), and uint8_t.

Referenced by __IsoAgLib::RS232IO_c::operator<<(), __HAL::put_rs232NChar(), and __HAL::put_rs232String().

Here is the call graph for this function:

int16_t HAL::put_rs232NChar const uint8_t bpWrite,
uint16_t  wNumber
[inline]
 

send string of n uint8_t on RS232

Parameters:
bpWrite pointer to source data string
wNumber number of data uint8_t to send
Returns:
HAL_NO_ERR -> o.k. else send puffer overflow

Definition at line 188 of file rs232.h.

References int16_t, __HAL::put_rs232_n_char(), uint16_t, and uint8_t.

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

Here is the call graph for this function:

int16_t HAL::put_rs232String const uint8_t pbString  )  [inline]
 

send '' terminated string on RS232

Parameters:
pbString pointer to '' terminated (!) source data string
Returns:
HAL_NO_ERR -> o.k. else send puffer overflow

Definition at line 195 of file rs232.h.

References int16_t, __HAL::put_rs232_string(), and uint8_t.

Referenced by main().

Here is the call graph for this function:

int16_t resetCounter uint8_t  rb_channel  )  [inline]
 

reset the given counter

Parameters:
rb_channel channel of counter [0..15]
Returns:
C_NO_ERR ; C_RANGE if counter for rb_channel isnīt configured properly

Definition at line 166 of file sensor.h.

References int16_t, __HAL::resetCounter(), and uint8_t.

Referenced by __IsoAgLib::CounterI_c::reset().

Here is the call graph for this function:

int16_t HAL::scanf   ...  )  [inline]
 

Definition at line 97 of file system.h.

References int16_t.

int16_t setDigout uint8_t  rui8_channel,
uint16_t  wPWMValue
[inline]
 

set pwm value 0 ...

100

Parameters:
rui8_channel channel number of output [0..11]
wPWMValue Value to set; depends on configured PWM freq; [0..0xFFFF]
Returns:
error state (C_NO_ERR == o.k.; C_RANGE == wrong channel)

Definition at line 148 of file actor.h.

References int16_t, uint16_t, and uint8_t.

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

void setFastAnalogin bool  bMode  )  [inline]
 

set fast ADC mode ON or OFF (important: only the 8 analog inputs are measured during this time, --> the other system voltages aren't measured with active fast ADC)

Parameters:
bMode set fast ADC to ON or OFF

Definition at line 197 of file sensor.h.

Referenced by __IsoAgLib::AnalogI_c::init(), and __IsoAgLib::AnalogI_c::setFastAdc().

int16_t setPwmFreq uint8_t  bOutputGroup,
uint32_t  dwFrequency
[inline]
 

define the frequency of the pwm signal

Parameters:
bOutputGroup PWM output channel [0..11] (4 sets for ESX equivalent freq for channels [4..11])
dwFrequency PWM frequency in mHz [5x10^3..4,29x10^9]
Returns:
error state (C_NO_ERR == o.k.; C_RANGE == wrong channel OR frequency)

Definition at line 125 of file actor.h.

References int16_t, __HAL::set_pwm_freq(), uint32_t, and uint8_t.

Referenced by __IsoAgLib::DigitalO_c::init(), and __IsoAgLib::DigitalO_c::setFreq().

Here is the call graph for this function:

void HAL::setRelais bool  bitState  )  [inline]
 

switch relais on or off

Parameters:
bitState true -> Relais ON

Definition at line 199 of file system.h.

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

int16_t HAL::setRs232Baudrate uint16_t  wBaudrate  )  [inline]
 

set the RS232 Baudrate

Parameters:
wBaudrate wanted baudrate
Returns:
HAL_NO_ERR -> o.k. else baudrate setting incorrect

Definition at line 111 of file rs232.h.

References int16_t, __HAL::set_rs232_baudrate(), and uint16_t.

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

Here is the call graph for this function:

void HAL::startTaskTimer void   )  [inline]
 

start the Task Timer -> time between calls of Task Manager

Definition at line 152 of file system.h.

References __HAL::start_task_timer(), and T_TASK_BASIC.

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

Here is the call graph for this function:

void HAL::stayingAlive void   )  [inline]
 

activate the power selfholding to perform system stop (f.e.

store values) actions after loss of CAN_EN

Definition at line 186 of file system.h.

References __HAL::staying_alive().

Referenced by __IsoAgLib::System_c::setPowerdownStrategy().

Here is the call graph for this function:

int16_t HAL::wdReset void   )  [inline]
 

reset the watchdog to use new configured watchdog settings

See also:
configWd

Definition at line 133 of file system.h.

References int16_t, and __HAL::wd_reset().

Referenced by __IsoAgLib::System_c::initWd().

Here is the call graph for this function:

void HAL::wdTriggern void   )  [inline]
 

trigger the watchdog

Definition at line 136 of file system.h.

References __HAL::wd_triggern().

Referenced by __IsoAgLib::CANIO_c::baseCanInit(), __IsoAgLib::CANIO_c::operator<<(), __IsoAgLib::CANIO_c::reconfigureMsgObj(), __IsoAgLib::RS232IO_c::send(), __IsoAgLib::System_c::triggerWd(), and __IsoAgLib::EEPROMIO_c::wait_eepromReady().

Here is the call graph for this function:


Generated on Wed Oct 13 15:40:50 2004 for IsoAgLib by  doxygen 1.3.8-20040913