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


Classes

struct  __HAL::tTime
union  __HAL::tBw
 Union uint8_t, uint16_t Zugriff (2 Byte). More...
union  __HAL::tDw
 Union uint8_t, uint16_t, uint32_t Zugriff (4 Byte). More...
struct  __HAL::tIdent
struct  __HAL::tCanMsgReg
 Datenstruktur im CAN Register (16 Byte). More...
struct  __HAL::tSend
 Message Objekt Datenstruktur fuer CAN Botschaft * Struktur Sende/Empfang Daten allgemein fuer Anwender (14 Byte). More...
struct  __HAL::tReceive
 Struktur empfange Daten allgemein (20 Byte). More...
struct  __HAL::tCanBusStatus
 Datenstruktur fuer CAN status. More...
struct  __HAL::tCanObjConfig
struct  __HAL::tCanObjStatus
struct  __HAL::tSendDefault
struct  __HAL::tRequestRtr
struct  __HAL::tCfg
struct  __HAL::tBusNumberLimit
struct  __HAL::tErr
struct  __HAL::tErr2
struct  __HAL::T_EventBit
union  __HAL::TU_Events
struct  __HAL::tOutput
struct  __HAL::tSystem
struct  __HAL::tWDConfig
struct  __HAL::can_data
class  __HAL::RteCanPkg
struct  __HAL::TEventBit
union  __HAL::TUEvents
struct  __HAL::t_triggerNode
 structure to store last and actual trigger timestamp (with MOD(0xFFFF) ) More...

Global Status Per BUS

Functions for status check of global CAN BUS

bool can_stateGlobalWarn (uint8_t rui8_busNr)
 test if the CAN BUS is in WARN state
bool can_stateGlobalOff (uint8_t rui8_busNr)
 test if the CAN BUS is in OFF state
bool can_stateGlobalBlocked (uint8_t rui8_busNr)
 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)
 deliver the baudrate of the CAN BUS in [kbaud]
bool can_stateGlobalBit1err (uint8_t rui8_busNr)
 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

Specific for one MsgObj

Functions for status check of a single 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.
int16_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)

Global Configuration Per BUS

Functions to configure the global CAN BUS

int16_t 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)
int16_t 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)
int16_t can_configGlobalClose (uint8_t rui8_busNr)
 close CAN BUS (important to close BUS before re-init with other baudrate)
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.]

Configuration specific for one MsgObj

Functions to configure a 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_configMsgobjClose (uint8_t rui8_busNr, uint8_t rui8_msgobjNr)
 close a MsgObj

Use of MsgObj

Functions to use a 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 void getData(MASK_TYPE& reft_ident, uint8_t& refui8_identType, uint8_t& refb_dlcTarget, uint8_t* pb_dataTarget) -> 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 setDataString(uint8_t* rpb_data, uint8_t rb_dlc) -> 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.

General BIOS Extenders

int16_t open_system ()
 open the system with system specific function call
int16_t closeSystem (void)
 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

General BIOS Extenders

int16_t getOn_offSwitch (void)
 check if the D+ signal is active

General BIOS Extenders

int32_t getTime (void)
 get the system time in [ms]
void wdTriggern (void)
 trigger the watchdog

CAN Specific Functions

int16_t can_startDriver ()
int16_t can_stopDriver ()
int32_t can_lastReceiveTime ()
 get last timestamp of CAN receive
int16_t init_can (uint8_t bBusNumber, uint16_t wGlobMask, uint32_t dwGlobMask, uint32_t dwGlobMaskLastmsg, uint16_t wBitrate)
int16_t closeCan (uint8_t bBusNumber)
int16_t getCanBusStatus (uint8_t bBusNumber, tCanBusStatus *ptStatus)
int16_t clearCanObjBuf (uint8_t bBusNumber, uint8_t bMsgObj)
int16_t configCanObj (uint8_t bBusNumber, uint8_t bMsgObj, tCanObjConfig *ptConfig)
int16_t closeCanObj (uint8_t bBusNumber, uint8_t bMsgObj)
int16_t sendCanMsg (uint8_t bBusNumber, uint8_t bMsgObj, tSend *ptSend)
int16_t checkMsg ()
int16_t getCanMsg (uint8_t bBusNumber, uint8_t bMsgObj, tReceive *ptReceive)
int16_t chgCanObjId (uint8_t bBusNumber, uint8_t bMsgObj, uint32_t dwId, uint8_t bXtd)
int16_t chgCanObjPause (uint8_t bBusNumber, uint8_t bMsgObj, uint16_t wPause)
int16_t getCanMsgBufCount (uint8_t bBusNumber, uint8_t bMsgObj)

EEPROM specific functions

int16_t getEepromSize (void)
int16_t getEepromSegmentSize (void)
int16_t eepromReady (void)
int16_t eepromWp (boolean bitMode)
int16_t eepromWrite (uint16_t wAddress, uint16_t wNumber, uint8_t *pbData)
int16_t eepromWriteByte (uint16_t wAddress, uint8_t bByte)
int16_t eepromRead (uint16_t wAddress, uint16_t wNumber, uint8_t *pbByte)

General BIOS Extenders

int16_t getSnr (uint8_t *snrDat)
int16_t configWd (tWDConfig *tConfigArray)
int16_t wdReset (void)
void startTaskTimer (void)
int16_t getCpuFreq (void)
void stayingAlive (void)
void powerDown (void)
void setRelais (boolean bitState)
int16_t KeyGetByte (uint8_t *p)

Sensor_c specific BIOS Extenders

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
uint16_t getCounterLastSignalAge (uint8_t rb_channel)
 get time since last signal and reset according trigger timers if timebase is exceeded -> avoid overflow problems if timer floated around 0xFFFF

Typedefs

typedef unsigned int word
typedef unsigned char byte
typedef unsigned long dword
typedef unsigned char boolean
typedef void(* pfFunction )(void)
typedef word(* tCAN_ERR_FUNC )(byte, word)
 Funktionszeiger Fehlerreaktion auf Can Bus Fehler.
typedef tCanMsgReg huge *(* tIRQ_FUNCTION )(byte, byte, tCanMsgReg huge *)
 Funktionszeiger =Funktion nach Sende- Empfangsinterrupt uint8_t bBusNumber, uint8_t bMsgObj [0..13], tCanMsgReg * ptCanMsgObj = Adresse Nachrichtenobjekt Can Register.
typedef byte(* pfbFunction )(void)
typedef uint16_t uint16_t
typedef unsigned int8_t uint8_t
typedef void(* counterIrqFunction )()

Enumerations

enum  PORTS {
  DIO0, DIO1, DIO2, DIO3,
  DIO4, DIO5, DIO6, DIO7,
  DIO8, DIO9, DIO10, DIO11,
  DIO12, DIO13, DIO14, DIO15,
  DIO16, DIO17, DIO18, DIO19,
  DIO20, DIO21, DIO22, DIO23,
  DIO24, DIO25, DIO26, DIO27,
  DIO28, DIO29, DIO30, DIO31,
  NUM_OF_PORTS
}
enum  PORTS {
  DIO0, DIO1, DIO2, DIO3,
  DIO4, DIO5, DIO6, DIO7,
  DIO8, DIO9, DIO10, DIO11,
  DIO12, DIO13, DIO14, DIO15,
  DIO16, DIO17, DIO18, DIO19,
  DIO20, DIO21, DIO22, DIO23,
  DIO24, DIO25, DIO26, DIO27,
  DIO28, DIO29, DIO30, DIO31,
  NUM_OF_PORTS
}
enum  PORTS {
  DIO0, DIO1, DIO2, DIO3,
  DIO4, DIO5, DIO6, DIO7,
  DIO8, DIO9, DIO10, DIO11,
  DIO12, DIO13, DIO14, DIO15,
  DIO16, DIO17, DIO18, DIO19,
  DIO20, DIO21, DIO22, DIO23,
  DIO24, DIO25, DIO26, DIO27,
  DIO28, DIO29, DIO30, DIO31,
  NUM_OF_PORTS
}
enum  PORTS {
  DIO0, DIO1, DIO2, DIO3,
  DIO4, DIO5, DIO6, DIO7,
  DIO8, DIO9, DIO10, DIO11,
  DIO12, DIO13, DIO14, DIO15,
  DIO16, DIO17, DIO18, DIO19,
  DIO20, DIO21, DIO22, DIO23,
  DIO24, DIO25, DIO26, DIO27,
  DIO28, DIO29, DIO30, DIO31,
  NUM_OF_PORTS
}

Functions

void updateCanStateTimestamps (uint8_t rui8_busNr)
 update the CAN BUS state parameters for WARN, OFF and Bit1Err
void updateSuccSendTimestamp (uint8_t rui8_busNr)
 update the timestamp of last succ receive by comparing the cnt of msgs in send buffers
void updateCanBusLoad (uint8_t rui8_busNr, uint8_t rb_dlc)
 update the CAN BUS load statistic
void init_errorhandler (byte bSwitch)
int _init_can (byte bBusNumber, word wMaskShort, dword dwMaskLong, dword dwLastMsgObjMask, word wBitrate, byte bSource)
int _close_can (byte bBusNumber, byte bSource)
int _get_can_obj_status (byte bBusNumber, byte bMsgObj, tCanObjStatus *ptStatus, byte bSource)
int _get_can_bus_status (byte bBusNumber, tCanBusStatus *ptStatus, byte bSource)
int _init_can_err_irq (byte bBusNumber, tCAN_ERR_FUNC pfwBusOff, tCAN_ERR_FUNC pfwErrorWarn, byte bSource)
int _clear_can_busoff (byte bBusNumber, byte bSource)
int _config_can_obj (byte bBusNumber, byte bMsgObj, tCanObjConfig *ptConfig, byte bSource)
int _close_can_obj (byte bBusNumber, byte bMsgObj, byte bSource)
int _chg_can_obj_id (byte bBusNumber, byte bMsgObj, dword dwId, byte bXtd, byte bSource)
int _chg_can_obj_pause (byte bBusNumber, byte bMsgObj, word wPause, byte bSource)
int _clear_can_obj_buf (byte bBusNumber, byte bMsgObj, byte bSource)
int _get_can_msg_buf_count (byte bBusNumber, byte bMsgObj, byte bSource)
int _lock_can_obj (byte bBusNumber, byte bMsgObj, byte bSource)
int _unlock_can_obj (byte bBusNumber, byte bMsgObj, byte bSource)
int _send_can_msg_def_id (byte bBusNumber, byte bMsgObj, tSendDefault *ptSend, byte bSource)
int _send_can_msg (byte bBusNumber, byte bMsgObj, tSend *ptSend, byte bSource)
int _req_can_msg (byte bBusNumber, byte bMsgObj, tRequestRtr *ptRtr, byte bSource)
int _get_can_msg (byte bBusNumber, byte bMsgObj, tReceive *ptReceive, byte bSource)
int _chg_can_busoff_time (byte bBusNumber, word wT1, word wT2, word wT3, word wT4, word wT5, word wTwait, byte bSource)
int _set_can_bittime_reg (byte bBusNumber, word wBittimeReg, word wBitrate, byte bSource)
int init_can (byte bBusNumber, word wMaskShort, dword dwMaskLong, dword dwLastMsgObjMask, word wBitrate)
int close_can (byte bBusNumber)
int get_can_obj_status (byte bBusNumber, byte bMsgObj, tCanObjStatus *ptStatus)
int get_can_bus_status (byte bBusNumber, tCanBusStatus *ptStatus)
int init_can_err_irq (byte bBusNumber, tCAN_ERR_FUNC pfwBusOff, tCAN_ERR_FUNC pfwErrorWarn)
int clear_can_busoff (byte bBusNumber)
int config_can_obj (byte bBusNumber, byte bMsgObj, tCanObjConfig *ptConfig)
int close_can_obj (byte bBusNumber, byte bMsgObj)
int chg_can_obj_id (byte bBusNumber, byte bMsgObj, dword dwId, byte bXtd)
int chg_can_obj_pause (byte bBusNumber, byte bMsgObj, word wPause)
int clear_can_obj_buf (byte bBusNumber, byte bMsgObj)
int get_can_msg_buf_count (byte bBusNumber, byte bMsgObj)
int lock_can_obj (byte bBusNumber, byte bMsgObj)
int unlock_can_obj (byte bBusNumber, byte bMsgObj)
int send_can_msg_def_id (byte bBusNumber, byte bMsgObj, tSendDefault *ptSend)
int send_can_msg (byte bBusNumber, byte bMsgObj, tSend *ptSend)
int req_can_msg (byte bBusNumber, byte bMsgObj, tRequestRtr *ptRtr)
int get_can_msg (byte bBusNumber, byte bMsgObj, tReceive *ptReceive)
int chg_can_busoff_time (byte bBusNumber, word wT1, word wT2, word wT3, word wT4, word wT5, word wTwait)
int set_can_bittime_reg (byte bBusNumber, word wBittimeReg, word wBitrate)
int init_rs232 (word wBaudrate, byte bMode, byte bStoppbits, boolean bitSoftwarehandshake)
int get_rs232_rx_buf_count (void)
int get_rs232_tx_buf_count (void)
int set_rs232_baudrate (word wBaudrate)
int get_rs232_char (byte *pbRead)
int get_rs232_char_echo (byte *pbRead)
int put_rs232_char (byte bByte)
int put_rs232_n_char (byte *bpWrite, word wNumber)
int put_rs232_string (byte *pbString)
int get_rs232_string (byte *pbRead, byte bLast_char)
int get_rs232_string_echo (byte *pbRead, byte bLast_char)
void clear_rs232_rx_buffer (void)
void clear_rs232_tx_buffer (void)
int config_rs232_rx_obj (word wBuffersize, void(*pFunction)(byte *bByte))
int config_rs232_tx_obj (word wBuffersize, void(*funktion_after_transmit)(byte *bByte), void(*funktion_befor_transmit)(byte *bByte))
int get_rs232_error (byte *Errorcode)
int init_task_call (word wPriority, word wIntervall, word wOffset, void(*pfFunktion)(void))
void start_task_timer (word wT5Reload)
int get_task_overload (void)
int set_event_mask (TU_Events tNewEventMask)
int set_events (TU_Events tNewEvents)
int get_events (TU_Events *tActualEvents)
int get_task_running (TASKS *tActualTask)
int retrigger_me (word wIntervall, word wOffset)
int get_eeprom_size (void)
int get_eeprom_segment_size (void)
int eeprom_ready (void)
int eeprom_wp (boolean bitMode)
int eeprom_write (word wAddress, word wNumber, byte *pbData)
int eeprom_write_byte (word wAddress, byte bByte)
int eeprom_read (word wAddress, word wNumber, byte *pbByte)
int init_digin (byte bInput, byte bMode, void(*pfFunction_name)())
int get_digin_direction (byte bKanal_x, byte bKanal_y)
int get_digin_diff_time (byte bInput_x, byte bInput_y, long *plPhase_diff_time, word *pwPeriod_x)
int get_digin_hilo (byte bInputNumber)
int get_digin_onoff (byte bInputNumber)
int set_digin_prescaler (byte bGroup, byte bMode)
int get_digin_hilo_static (byte bInputNumber)
int get_digin_onoff_static (byte bInputNumber)
int get_digin_period (byte bInput, word *pwPeriod, word *pwImpulse)
int get_digin_pwm_time (byte bInput, word *pwHigh_time, word *pwLow_time, word *pwDiff_time)
int get_digin_freq (byte bInput, word *pwFrequency)
int config_digin_freq (byte bInput, word wWindow, byte bCount)
word get_digin_all (void)
word get_digin_all_onoff (void)
word get_digin_all_static (void)
word get_digin_all_onoff_static (void)
boolean get_CAN_Term_ON (void)
int init_input (byte bPort, byte bState)
int set_pwm_freq (dword dwFrequency_mHz)
int get_digout_status (tOutput *ptStatus)
void set_Pull_Up_Voltage (byte bState)
void set_Out_UD (word wPWM_Value)
void staying_alive (void)
void power_down (void)
void set_CAN_Term_ON (byte bState)
int get_timer (void)
int free_timer (int iTimerHandle)
int start_timer (int iTimerHandle, long lTime)
int stop_timer (int iTimerHandle)
int timeout (int iTimerHandle)
long rest_time (int iTimerHandle, long *lPastTime)
void set_wd (byte bitState)
void wd_triggern (void)
int wd_reset (void)
void wd_low (void)
void wd_high (void)
int open_adis (tSystem *tSystem)
void get_clock (word *pwTimer500_us, word *pwTimer200_ns)
void get_time_ext (tTime *pTTime)
long get_time (void)
void delay_us (word wTimer)
int get_cpu_freq (void)
void get_system_data (tSystem *tSystem)
void set_input_sample_time (word wAbtastrate)
int config_wd (byte bTime)
int eeprom_read_crc (word wAddress, word wNumber, byte *pbData)
int eeprom_write_crc (word wAddress, word wNumber, byte *pbData)
int calc_crc (word wNumber, byte *pbData, word *pbCRC)
int get_lokal_id (byte *bLokalId)
int get_snr (byte *snr_dat)
int get_cantype (byte *bCantype)
int get_comp_id (byte *pbComp)
int get_bitrate_can (word *pwBitrate)
int get_can_id (dword *pdwCANId)
int set_lokal_id (byte bLocal_id)
int set_bitrate_can (word wCan_bitrate)
int set_cantype (byte bCantype)
int set_can_id (dword dwId_dat)
int get_sec_compare_mode (dword *pdwCompareMode)
int set_sec_compare_mode (dword pdwCompareMode)
int get_analogin_mean (byte bInput)
std::time_t _time (std::time_t *pt)
 include the BIOS specific header with the part for CAN into __HAL
int ident_hdl (rtd_handler_para_t *para, char *ident)
int ackHdl (rtd_handler_para_t *, rte_return_t)
int send (rtd_handler_para_t *para, rtd_can_type_t type, uint32_t id, uint8_t size, const void *data)
int setBusState (rtd_handler_para_t *para, rtd_can_bus_state_t state)
DWORD WINAPI thread (PVOID par)
DWORD WINAPI RxThread (PVOID par)
int16_t iInitEEEditor (uint8_t bBus, int16_t iObjNrReceiveCan, int16_t iObjNrTransmitCan, uint32_t dwReceiveCanId, uint8_t bCanType, int16_t iNumberMsgsReceive, int16_t iNumberMsgsTransmit)
int16_t iCallCanEEMonitor (void)
int16_t iCallRs232EEMonitor (void)
void init_errorhandler (uint8_t bSwitch)
void checkCan0Timer (void)
void checkCan1Timer (void)
int16_t init_can (uint8_t bBusNumber, uint16_t wMaskShort, dword dwMaskLong, dword dwLastMsgObjMask, uint16_t wBitrate)
int16_t getCanObjStatus (uint8_t bBusNumber, uint8_t bMsgObj, tCanObjStatus *ptStatus)
int16_t init_canErrIrq (uint8_t bBusNumber, tCAN_ERR_FUNC pfwBusOff, tCAN_ERR_FUNC pfwErrorWarn)
int16_t clearCanBusoff (uint8_t bBusNumber)
int16_t chgCanObjId (uint8_t bBusNumber, uint8_t bMsgObj, dword dwId, uint8_t bXtd)
int16_t lockCanObj (uint8_t bBusNumber, uint8_t bMsgObj)
int16_t unlockCanObj (uint8_t bBusNumber, uint8_t bMsgObj)
int16_t sendCanMsgDefId (uint8_t bBusNumber, uint8_t bMsgObj, tSendDefault *ptSend)
int16_t reqCanMsg (uint8_t bBusNumber, uint8_t bMsgObj, tRequestRtr *ptRtr)
int16_t chgCanBusoffTime (uint8_t bBusNumber, uint16_t wT1, uint16_t wT2, uint16_t wT3, uint16_t wT4, uint16_t wT5, uint16_t wTwait)
int16_t init_rs232 (uint16_t wBaudrate, uint8_t bMode, uint8_t bStoppbits, boolean bitSoftwarehandshake)
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 setRs232Baudrate (uint16_t wBaudrate)
 set the RS232 Baudrate
int16_t getRs232Char (uint8_t *pbRead)
 read single int8_t from receive puffer
int16_t getRs232CharEcho (uint8_t *pbRead)
int16_t put_rs232Char (uint8_t bByte)
 send single uint8_t on RS232
int16_t put_rs232NChar (uint8_t *bpWrite, uint16_t wNumber)
int16_t put_rs232String (uint8_t *pbString)
int16_t getRs232String (uint8_t *pbRead, uint8_t bLastChar)
 read bLastChar terminated string from receive puffer
int16_t getRs232StringEcho (uint8_t *pbRead, uint8_t bLastChar)
void clearRs232RxBuffer (void)
 clear receive puffer
void clearRs232TxBuffer (void)
 clear send puffer
int16_t configRs232RxObj (uint16_t wBuffersize, void(*pFunction)(uint8_t *bByte))
int16_t configRs232TxObj (uint16_t wBuffersize, void(*funktionAfterTransmit)(uint8_t *bByte), void(*funktionBeforTransmit)(uint8_t *bByte))
int16_t getRs232Error (uint8_t *Errorcode)
 get errr code of BIOS
void * stwMalloc (uint16_t wNumberBytes)
int16_t stwFree (void *pvFree)
void * stwCalloc (uint16_t wNumberObj, uint16_t wSizeObj)
void * stwRealloc (void *vpOld, uint16_t wSize)
int16_t init_taskCall (uint16_t wPriority, uint16_t wIntervall, uint16_t wOffset, void(*pfFunktion)(void))
void startTaskTimer (uint16_t wT5Reload)
int16_t getTaskOverload (void)
int16_t setEventMask (TUEvents tNewEventMask)
int16_t setEvents (TUEvents tNewEvents)
int16_t getEvents (TUEvents *tActualEvents)
int16_t getTaskRunning (TASKS *tActualTask)
int16_t retriggerMe (uint16_t wIntervall, uint16_t wOffset)
int16_t kIoConfig (PORTS tNumber, uint16_t wMode, uint16_t wIntLevel, void(*pfUserFunction)())
int16_t getDiginDirection (uint8_t bKanal_x, uint8_t bKanal_y)
int16_t getDiginDiffTime (uint8_t bInput_x, uint8_t bInput_y, int32_t *plPhaseDiffTime, uint16_t *pwPeriod_x)
int16_t getDiginHilo (uint16_t wPortNumber)
int16_t setDiginPrescaler (uint8_t bGroup, uint8_t bMode)
int16_t getDiginHiloStatic (uint8_t bInputNumber)
int16_t getDiginPeriod (uint8_t bInput, uint16_t *pwPeriod, uint16_t *pwImpulse)
int16_t getDiginPwmTime (uint8_t bInput, uint16_t *pwHighTime, uint16_t *pwLowTime, uint16_t *pwDiffTime)
int16_t getDiginFreq (uint8_t bInput, uint16_t *pwFrequency)
int16_t configDiginFreq (uint8_t bInput, uint16_t wFlimit, uint8_t bModulo)
int16_t setPwmFreq (PORTS tNumber, dword dwFrequency)
int16_t setDigout (PORTS tNumber, uint16_t wPWMValue)
int16_t getDigoutStatus (uint8_t bNumber, tOutput *pTOutput)
int16_t kInit_incrementalPorts (PORTS tPort1, PORTS tPort2, uint16_t wIntLevel, uint16_t *pwCounter)
int16_t getTimer (void)
int16_t freeTimer (int16_t iTimerHandle)
int16_t startTimer (int16_t iTimerHandle, int32_t lTime)
int16_t stopTimer (int16_t iTimerHandle)
int16_t timeout (int16_t iTimerHandle)
int32_t restTime (int16_t iTimerHandle, int32_t *lPastTime)
int16_t getWdAck (uint8_t *bState)
void setWd (uint8_t bitState)
uint16_t getWdAlive (void)
void wdLow (uint8_t bWatchdogNo)
void wdHigh (uint8_t bWatchdogNo)
int16_t kOpen_pm167 (tSystem *tSystem)
void init_offReaction (void(*pfFunctionName)())
int16_t closeEsx (void)
void getClock (uint16_t *pwTimer500Us, uint16_t *pwTimer200Ns)
void getTimeExt (tTime *pTTime)
void delayUs (uint16_t wTimer)
void getSystemData (tSystem *tSystem)
void setInputSampleTime (uint16_t wAbtastrate)
int16_t eepromReadCrc (uint16_t wAddress, uint16_t wNumber, uint8_t *pbData)
int16_t eepromWriteCrc (uint16_t wAddress, uint16_t wNumber, uint8_t *pbData)
int16_t calc_crc (uint16_t wNumber, uint8_t *pbData, uint16_t *pbCRC)
int16_t getLokalId (uint8_t *bLokalId)
int16_t getCantype (uint8_t *bCantype)
int16_t getCompId (uint8_t *pbComp)
int16_t getBitrateCan (uint16_t *pwBitrate)
int16_t getCanId (dword *pdwCANId)
int16_t setLokalId (uint8_t bLocalId)
int16_t setBitrateCan (uint16_t wCan_bitrate)
int16_t setCantype (uint8_t bCantype)
int16_t setCanId (dword dwIdDat)
void kInitADC (uint16_t wNumOfChannels, uint16_t *pwData, uint16_t(*pfADCUserFunction)(void), uint16_t wDelay)
uint16_t kGetADValue (uint8_t bChannel)
uint8_t getPwmoutAdcCheckNr (uint8_t rb_channel)
 deliver channel number for checking/requesting of ADC value at pwm output for call of __HAL:: functions (differences mostly caused by multiplexers)
uint8_t getPwmCurrentCheckNr (uint8_t rb_channel)
 deliver channel number for checking/requesting of current output through given PWM output
uint8_t getAnaloginCheckNr (uint8_t rb_channel)
 deliver channel number for checking/requesting of analog input for call of __HAL:: functions (differences mostly caused by multiplexers)
uint8_t getDiginAdcCheckNr (uint8_t rb_channel)
 deliver channel number for checking/requesting of ADC value at digital input for call of __HAL:: functions (differences mostly caused by multiplexers)
void counterIrqFlex (uint8_t rb_row, uint8_t rb_col)
void counterIrq_0 ()
void counterIrq_1 ()
void counterIrq_2 ()
void counterIrq_3 ()
void counterIrq_4 ()
void counterIrq_5 ()
void counterIrq_6 ()
void counterIrq_7 ()
void counterIrq_8 ()
void counterIrq_9 ()
void counterIrq_10 ()
void counterIrq_11 ()
void counterIrq_12 ()
void counterIrq_13 ()
void counterIrq_14 ()
void counterIrq_15 ()
bool stackparm isRs232RingBufferFull (void)
 low level helper function to check if buffer is full
bool isRs232RingBufferEmpty (void)
 low level helper function to check if buffer is empty
uint16_t getRs232RingBufferSize (void)
 low level helper function to get current count of elements in buffer
uint16_t getRs232RingBufferMaxSize (void)
 low level helper function to get current count of elements in buffer
bool stackparm writeDataToRs232RingBuffer (uchar ruc_item, bool rb_force=false)
 low level helper function to write can data
bool readDataFromRs232RingBuffer (uchar *puc_item)
 low level helper function to read can data
int16_t init_rs232 (uint16_t wBaudrate, uint8_t bMode, uint8_t bStoppbits, bool bitSoftwarehandshake)
 init the RS232 interface
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
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

Variables

tCanBusStatus t_cinterfCanState
 include the BIOS specific header with the part for CAN into __HAL
tCanObjStatus t_cinterfMsgobjState
tCanObjConfig t_cinterfMsgobjConfig
tSend t_cinterfMsgobjSend
tReceive t_cinterfMsgobjReceive
bool b_cinterfBufferedReceivedMsg
int32_t i32_cinterfBeginBusWarnOff [CAN_BUS_CNT]
int32_t i32_cinterfBeginBit1err [CAN_BUS_CNT]
int32_t i32_cinterfLastSuccSend [CAN_BUS_CNT]
int32_t far i32_cinterfMsgobjSuccSend [CAN_BUS_CNT][14]
int32_t i32_cinterfLastSuccReceive [CAN_BUS_CNT]
uint8_t ui8_cinterfLastSendBufCnt [CAN_BUS_CNT][14]
uint16_t gwCinterfBusLoad [CAN_BUS_CNT][10]
 array of 100msec.
uint8_t gb_cinterfBusLoadSlice [CAN_BUS_CNT]
 actual index in gwBusLoad
__IsoAgLib::Ident_c c_cinterfIdent
tSystem t_biosextSysdata
 initialise static tSystem to complete zero, so that a call of open_system can be reliable detected
uint32_t sui32_detectStart = 0x1234
uint16_t sui16_wdtrel = 0
 static var for WDTREL ( high byte of WDTCON ) == reload value for watchdog counter
uint16_t sui16_wdtin = 1
can_c * rteCan_c [4] = {NULL, NULL, NULL, NULL}
rtd_can_bus_state_t rteCanBusState [4]
can_datarec_buf [4][16]
int16_t rec_bufCnt [4][16]
int16_t rec_bufSize [4][16]
int16_t rec_bufOut [4][16]
int16_t rec_bufIn [4][16]
bool rec_bufXtd [4][16]
uint32_t rec_bufFilter [4][16]
int32_t i32_lastReceiveTime
uint16_t ui16_globalMask [4]
uint32_t ui32_globalMask [4]
bool b_busOpened [4]
std::list< RteCanPkgarr_canQueue [4]
FILE * canlogDat [4]
FILE * can_input [2][16]
FILE * can_output [2][2]
tReceive pRead [2][16]
tIRQ_FUNCTION can_irq [2][16]
uint8_t pOpen [2][16]
uint8_t pSendOpen [2][16]
uint8_t dateiende [2][16]
int32_t lastCloseTimeArr [2][16]
int32_t i32_lastSendTime
int32_t i32_lastCloseTime = 0
uint16_t ui16_sendPause
boolean pb_bXtd [2][16]
HANDLE gEventHandle = 0
VportHandle gPortHandle = INVALID_PORTHANDLE
Vaccess gChannelMask = 0
Vaccess gPermissionMask = 0
Vevent gEvent
Vevent * gpEvent
int16_t gChannel = 0
uint16_t gHwType = HWTYPE_CANCARDX
bool gThreadRunning
 flag to control running thread
bool b_blockThread
 the thread is only allowed to perform activities, if this var is false
bool b_blockApp
 the app must wait until this var is false, before it can safely take a message from buffer
HANDLE threadHandle
 handle for threading
DWORD threadId = 0
char g_AppName [XL_MAX_LENGTH+1] = "IsoAgLib"
 Application name which is displayed in VHWconf.
XLportHandle g_xlPortHandle = XL_INVALID_PORTHANDLE
 Global porthandle (we use only one!).
XLdriverConfig g_xlDrvConfig
 Contains the actual hardware configuration.
XLaccess g_xlChannelMask = 0
 Global channelmask (includes all founded channels).
XLaccess g_xlPermissionMask = 0
 Global permissionmask (includes all founded channels).
XLhandle g_hMsgEvent
 notification handle for the receive queue
HANDLE g_hRXThread
 thread handle (RX)
HANDLE g_hTXThread
 thread handle (TX)
int g_RXThreadRun
 flag to start/stop the RX thread
int g_TXThreadRun
 flag to start/stop the TX thread (for the transmission burst)
FILE * eepromDat
boolean gbDoADC
uint16_t gwDelayADC
uint8_t _b_prescale_1_4Index
 prescaler value for digin input channels 1_4
uint8_t _b_prescale_5_16Index
 prescaler value for digin input channels 5_16
uint32_t_pulDiginCounter [4]
 array of pointers to uint32_t arrays with counter values; avoid memory waste, if only some channels are used for counting
t_triggerNode_pt_diginTriggerTime [4]
 if the given timebase is longer than the timebase powered by standard BIOS, the timestamp of last two trigger events should be stored for calculating of longer periods
t_triggerNode_put_temp
 pointer to triger node of diginput which caused interrupt
uint16_t_puiDiginTimebase [4]
 configured timebase for counter channels; if time between two events is longer than given timebase, getCounterPeriod answers 0; important for timebases which are not supported by standard BIOS
uint16_t _wIrqTime
counterIrqFunction irqFuncArr [16]
const uchar * puc_startPuffer = __HAL::serial.rx.ascii.data
 include the BIOS specific header with the part for RS232 into __HAL
const uchar * puc_endPuffer = &(__HAL::serial.rx.ascii.data[SD_MAX_ASCII_CHARS])
uchar * puc_rs232BufferWrite = (uchar*) puc_startPuffer
uchar * puc_rs232BufferRead = (uchar*) puc_startPuffer


Typedef Documentation

typedef unsigned int8_t __HAL::boolean
 

Definition at line 83 of file errcodes.h.

typedef unsigned char __HAL::byte
 

Definition at line 81 of file errcodes.h.

typedef void(* __HAL::counterIrqFunction)()
 

Definition at line 134 of file sensor_target_extensions.cc.

typedef unsigned int32_t __HAL::dword
 

Definition at line 82 of file errcodes.h.

typedef byte(* __HAL::pfbFunction)(void)
 

Definition at line 333 of file errcodes.h.

typedef void(* __HAL::pfFunction)(void)
 

Definition at line 85 of file errcodes.h.

typedef uint16_t(* __HAL::tCAN_ERR_FUNC)(uint8_t, uint16_t)
 

Funktionszeiger Fehlerreaktion auf Can Bus Fehler.

Definition at line 193 of file errcodes.h.

typedef tCanMsgReg huge *(* __HAL::tIRQ_FUNCTION)(uint8_t, uint8_t, tCanMsgReg huge *)
 

Funktionszeiger =Funktion nach Sende- Empfangsinterrupt uint8_t bBusNumber, uint8_t bMsgObj [0..13], tCanMsgReg * ptCanMsgObj = Adresse Nachrichtenobjekt Can Register.

Definition at line 196 of file errcodes.h.

typedef uint16_t __HAL::uint16_t
 

Definition at line 96 of file hal_can_interface.cc.

Referenced by can_configGlobalInit(), can_configGlobalMask(), can_configMsgobjSendpause(), can_stateGlobalOff(), can_stateGlobalWarn(), can_useMsgobjSend(), chgCanObjPause(), configRs232RxObj(), configRs232TxObj(), eepromRead(), eepromWrite(), eepromWriteByte(), getCounterFrequency(), getCounterLastSignalAge(), getCounterPeriod(), getRs232RingBufferMaxSize(), getRs232RingBufferSize(), init_can(), init_counter(), init_rs232(), put_rs232NChar(), put_rs232String(), setRs232Baudrate(), and updateCanStateTimestamps().

typedef unsigned int8_t __HAL::uint8_t
 

Definition at line 97 of file hal_can_interface.cc.

Referenced by can_configGlobalClose(), can_configGlobalInit(), can_configGlobalMask(), can_configMsgobjChgid(), can_configMsgobjClose(), can_configMsgobjInit(), can_configMsgobjSendpause(), can_startDriver(), can_stateGlobalBit1err(), can_stateGlobalBlocked(), can_stateGlobalBusload(), can_stateGlobalOff(), can_stateGlobalWarn(), can_stateMsgobjBuffercnt(), can_stateMsgobjFreecnt(), can_stateMsgobjOverflow(), can_stateMsgobjSendproblem(), can_stateMsgobjTxok(), can_useMsgobjClear(), can_useMsgobjGet(), can_useMsgobjIgnore(), can_useMsgobjReceivedIdent(), can_useMsgobjSend(), checkMsg(), chgCanObjId(), chgCanObjPause(), clearCanObjBuf(), closeCan(), closeCanObj(), configCanObj(), configRs232RxObj(), configRs232TxObj(), counterIrqFlex(), eepromRead(), eepromWrite(), eepromWriteByte(), getAnaloginCheckNr(), getCanBusStatus(), getCanMsg(), getCanMsgBufCount(), getCounter(), getCounterFrequency(), getCounterLastSignalAge(), getCounterPeriod(), getDiginAdcCheckNr(), getPwmCurrentCheckNr(), getPwmoutAdcCheckNr(), getRs232Char(), getRs232Error(), getRs232String(), getSnr(), iInitEEEditor(), init_can(), init_counter(), init_rs232(), KeyGetByte(), put_rs232Char(), put_rs232NChar(), put_rs232String(), resetCounter(), __HAL::RteCanPkg::RteCanPkg(), send(), sendCanMsg(), updateCanBusLoad(), updateCanStateTimestamps(), and updateSuccSendTimestamp().

typedef unsigned int __HAL::word
 

Definition at line 80 of file errcodes.h.


Enumeration Type Documentation

enum PORTS
 

Enumeration values:
DIO0 
DIO1 
DIO2 
DIO3 
DIO4 
DIO5 
DIO6 
DIO7 
DIO8 
DIO9 
DIO10 
DIO11 
DIO12 
DIO13 
DIO14 
DIO15 
DIO16 
DIO17 
DIO18 
DIO19 
DIO20 
DIO21 
DIO22 
DIO23 
DIO24 
DIO25 
DIO26 
DIO27 
DIO28 
DIO29 
DIO30 
DIO31 
NUM_OF_PORTS 

Definition at line 633 of file system_target_extensions.cc.

enum PORTS
 

Enumeration values:
DIO0 
DIO1 
DIO2 
DIO3 
DIO4 
DIO5 
DIO6 
DIO7 
DIO8 
DIO9 
DIO10 
DIO11 
DIO12 
DIO13 
DIO14 
DIO15 
DIO16 
DIO17 
DIO18 
DIO19 
DIO20 
DIO21 
DIO22 
DIO23 
DIO24 
DIO25 
DIO26 
DIO27 
DIO28 
DIO29 
DIO30 
DIO31 
NUM_OF_PORTS 

Definition at line 642 of file system.h.

enum PORTS
 

Enumeration values:
DIO0 
DIO1 
DIO2 
DIO3 
DIO4 
DIO5 
DIO6 
DIO7 
DIO8 
DIO9 
DIO10 
DIO11 
DIO12 
DIO13 
DIO14 
DIO15 
DIO16 
DIO17 
DIO18 
DIO19 
DIO20 
DIO21 
DIO22 
DIO23 
DIO24 
DIO25 
DIO26 
DIO27 
DIO28 
DIO29 
DIO30 
DIO31 
NUM_OF_PORTS 

Definition at line 640 of file eeprom.h.

enum PORTS
 

Enumeration values:
DIO0 
DIO1 
DIO2 
DIO3 
DIO4 
DIO5 
DIO6 
DIO7 
DIO8 
DIO9 
DIO10 
DIO11 
DIO12 
DIO13 
DIO14 
DIO15 
DIO16 
DIO17 
DIO18 
DIO19 
DIO20 
DIO21 
DIO22 
DIO23 
DIO24 
DIO25 
DIO26 
DIO27 
DIO28 
DIO29 
DIO30 
DIO31 
NUM_OF_PORTS 

Definition at line 636 of file hal_can_interface.cc.


Function Documentation

int _chg_can_busoff_time byte  bBusNumber,
word  wT1,
word  wT2,
word  wT3,
word  wT4,
word  wT5,
word  wTwait,
byte  bSource
 

int _chg_can_obj_id byte  bBusNumber,
byte  bMsgObj,
dword  dwId,
byte  bXtd,
byte  bSource
 

int _chg_can_obj_pause byte  bBusNumber,
byte  bMsgObj,
word  wPause,
byte  bSource
 

int _clear_can_busoff byte  bBusNumber,
byte  bSource
 

int _clear_can_obj_buf byte  bBusNumber,
byte  bMsgObj,
byte  bSource
 

int _close_can byte  bBusNumber,
byte  bSource
 

int _close_can_obj byte  bBusNumber,
byte  bMsgObj,
byte  bSource
 

int _config_can_obj byte  bBusNumber,
byte  bMsgObj,
tCanObjConfig *  ptConfig,
byte  bSource
 

int _get_can_bus_status byte  bBusNumber,
tCanBusStatus *  ptStatus,
byte  bSource
 

int _get_can_msg byte  bBusNumber,
byte  bMsgObj,
tReceive *  ptReceive,
byte  bSource
 

int _get_can_msg_buf_count byte  bBusNumber,
byte  bMsgObj,
byte  bSource
 

int _get_can_obj_status byte  bBusNumber,
byte  bMsgObj,
tCanObjStatus *  ptStatus,
byte  bSource
 

int _init_can byte  bBusNumber,
word  wMaskShort,
dword  dwMaskLong,
dword  dwLastMsgObjMask,
word  wBitrate,
byte  bSource
 

int _init_can_err_irq byte  bBusNumber,
tCAN_ERR_FUNC  pfwBusOff,
tCAN_ERR_FUNC  pfwErrorWarn,
byte  bSource
 

int _lock_can_obj byte  bBusNumber,
byte  bMsgObj,
byte  bSource
 

int _req_can_msg byte  bBusNumber,
byte  bMsgObj,
tRequestRtr *  ptRtr,
byte  bSource
 

int _send_can_msg byte  bBusNumber,
byte  bMsgObj,
tSend *  ptSend,
byte  bSource
 

int _send_can_msg_def_id byte  bBusNumber,
byte  bMsgObj,
tSendDefault *  ptSend,
byte  bSource
 

int _set_can_bittime_reg byte  bBusNumber,
word  wBittimeReg,
word  wBitrate,
byte  bSource
 

std::time_t _time std::time_t *  pt  ) 
 

include the BIOS specific header with the part for CAN into __HAL

Referenced by getTime().

int _unlock_can_obj byte  bBusNumber,
byte  bMsgObj,
byte  bSource
 

int ackHdl rtd_handler_para_t *  ,
rte_return_t 
[static]
 

Handler for acknowledge reply

Definition at line 417 of file target_extension_can_rte.cc.

Referenced by init_can().

int16_t __HAL::calc_crc uint16_t  wNumber,
uint8_t pbData,
uint16_t pbCRC
 

int calc_crc word  wNumber,
byte pbData,
word pbCRC
 

int16_t __HAL::can_configGlobalClose uint8_t  rui8_busNr  ) 
 

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:
HAL_NO_ERR == no error; HAL_RANGE_ERR == wrong BUS nr; HAL_CONFIG_ERR == BUS previously not initialised

Definition at line 422 of file hal_can_interface.cc.

References close_can(), int16_t, and uint8_t.

Referenced by HAL::can_configGlobalClose().

Here is the call graph for this function:

int16_t __HAL::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)

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:
HAL_NO_ERR == no error; HAL_RANGE_ERR == wrong BUS nr or wrong baudrate; HAL_WARN_ERR == BUS previously initialised - no problem if only masks had to be changed

Definition at line 376 of file hal_can_interface.cc.

References get_time(), init_can(), int16_t, int32_t, uint16_t, uint32_t, and uint8_t.

Referenced by HAL::can_configGlobalInit().

Here is the call graph for this function:

int16_t __HAL::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)

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:
HAL_NO_ERR == no error; HAL_RANGE_ERR == wrong BUS nr

Definition at line 406 of file hal_can_interface.cc.

References get_can_bus_status(), init_can(), int16_t, uint16_t, uint32_t, and uint8_t.

Referenced by HAL::can_configGlobalMask().

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
 

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:
HAL_NO_ERR == no error; HAL_CONFIG_ERR == BUS not initialised or ident can't be changed HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 495 of file hal_can_interface.cc.

References chg_can_obj_id(), __IsoAgLib::Ident_c::ident(), __IsoAgLib::Ident_c::identType(), int16_t, and uint8_t.

Referenced by HAL::can_configMsgobjChgid().

Here is the call graph for this function:

int16_t __HAL::can_configMsgobjClose uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
 

close a MsgObj

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

Definition at line 523 of file hal_can_interface.cc.

References close_can_obj(), int16_t, and uint8_t.

Referenced by HAL::can_configMsgobjClose().

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
 

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:
HAL_NO_ERR == no error; C_BUSY == this MsgObj is already used HAL_CONFIG_ERR == BUS not initialised or error during buffer allocation HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 446 of file hal_can_interface.cc.

References __HAL::tCanObjConfig::bMsgType, __HAL::tCanObjConfig::bTimeStamped, __HAL::tCanObjConfig::bXtd, config_can_obj(), __HAL::tCanObjConfig::dwId, __IsoAgLib::Ident_c::ident(), __IsoAgLib::Ident_c::identType(), int16_t, __HAL::tCanObjConfig::pfIrqFunction, uint8_t, __HAL::tCanObjConfig::wNumberMsgs, and __HAL::tCanObjConfig::wPause.

Referenced by HAL::can_configMsgobjInit().

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
 

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:
HAL_NO_ERR == no error; HAL_CONFIG_ERR == BUS not initialised or ident can't be changed HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 510 of file hal_can_interface.cc.

References chg_can_obj_pause(), int16_t, uint16_t, and uint8_t.

Referenced by HAL::can_configMsgobjSendpause().

Here is the call graph for this function:

int32_t __HAL::can_lastReceiveTime  ) 
 

get last timestamp of CAN receive

Definition at line 199 of file target_extension_can_rte.cc.

References checkMsg(), and int32_t.

Here is the call graph for this function:

int16_t __HAL::can_startDriver  ) 
 

flag to control running thread

the thread is only allowed to perform activities, if this var is false

the app must wait until this var is false, before it can safely take a message from buffer

Definition at line 131 of file target_extension_can_rte.cc.

References int16_t, rteCan_c, and uint8_t.

bool __HAL::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

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

Definition at line 267 of file hal_can_interface.cc.

References uint8_t, and updateCanStateTimestamps().

Referenced by HAL::can_stateGlobalBit1err().

Here is the call graph for this function:

bool __HAL::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.

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 207 of file hal_can_interface.cc.

References get_time(), int32_t, uint8_t, updateCanStateTimestamps(), and updateSuccSendTimestamp().

Referenced by HAL::can_stateGlobalBlocked().

Here is the call graph for this function:

int32_t __HAL::can_stateGlobalBusload uint8_t  rui8_busNr = 0  ) 
 

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 249 of file hal_can_interface.cc.

References int32_t, and uint8_t.

Referenced by HAL::can_stateGlobalBusload().

bool __HAL::can_stateGlobalOff uint8_t  rui8_busNr = 0  ) 
 

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 161 of file hal_can_interface.cc.

References uint16_t, uint8_t, and updateCanStateTimestamps().

Referenced by HAL::can_stateGlobalOff().

Here is the call graph for this function:

bool __HAL::can_stateGlobalWarn uint8_t  rui8_busNr = 0  ) 
 

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 148 of file hal_can_interface.cc.

References uint16_t, uint8_t, and updateCanStateTimestamps().

Referenced by HAL::can_stateGlobalWarn().

Here is the call graph for this function:

int16_t __HAL::can_stateMsgobjBuffercnt uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
 

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: HAL_CONFIG_ERR == BUS not initialised HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 336 of file hal_can_interface.cc.

References get_can_msg_buf_count(), int16_t, and uint8_t.

Referenced by HAL::can_stateMsgobjBuffercnt().

Here is the call graph for this function:

int16_t __HAL::can_stateMsgobjFreecnt uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
 

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: HAL_CONFIG_ERR == BUS not initialised HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 350 of file hal_can_interface.cc.

References get_can_msg_buf_count(), int16_t, SEND_PUFFER_SIZE, and uint8_t.

Referenced by HAL::can_stateMsgobjFreecnt().

Here is the call graph for this function:

bool __HAL::can_stateMsgobjOverflow uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
 

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 [1..14]
Returns:
true -> buffer is full -> no further can_send allowed

Definition at line 316 of file hal_can_interface.cc.

References get_can_obj_status(), uint8_t, and updateSuccSendTimestamp().

Referenced by HAL::can_stateMsgobjOverflow().

Here is the call graph for this function:

bool __HAL::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)

Parameters:
rui8_busNr number of the BUS to check [0..1]
rui8_msgobjNr number of the MsgObj to check [1..14]
Returns:
true -> longer than MAX_SEND_WAIT_TIME no msg sent on BUS

Definition at line 300 of file hal_can_interface.cc.

References can_stateMsgobjTxok(), get_can_msg_buf_count(), get_time(), int32_t, and uint8_t.

Referenced by HAL::can_stateMsgobjSendproblem().

Here is the call graph for this function:

int32_t __HAL::can_stateMsgobjTxok uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
 

deliver the timestamp of last successfull CAN send action

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

Definition at line 285 of file hal_can_interface.cc.

References int32_t, uint8_t, and updateSuccSendTimestamp().

Referenced by can_stateMsgobjSendproblem(), and HAL::can_stateMsgobjTxok().

Here is the call graph for this function:

int16_t __HAL::can_stopDriver  ) 
 

Definition at line 171 of file target_extension_can_rte.cc.

References int16_t, and rteCan_c.

Referenced by powerDown().

int16_t __HAL::can_useMsgobjClear uint8_t  rui8_busNr,
uint8_t  rui8_msgobjNr
 

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:
HAL_NO_ERR == no error; HAL_CONFIG_ERR == BUS not initialised HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 740 of file hal_can_interface.cc.

References clear_can_obj_buf(), int16_t, and uint8_t.

Referenced by HAL::can_useMsgobjClear().

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
 

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 setDataString(uint8_t* rpb_data, uint8_t rb_dlc) -> 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:
HAL_NO_ERR == no error; HAL_CONFIG_ERR == BUS not initialised, MsgObj is no RX object HAL_NOACT_ERR == BUS OFF HAL_OVERFLOW_ERR == send buffer overflowed HAL_RANGE_ERR == wrong BUS or MsgObj number HAL_WARN_ERR == BUS WARN or no received message

Definition at line 673 of file hal_can_interface.cc.

References __HAL::tReceive::abData, __HAL::tReceive::bDlc, __HAL::tReceive::bXtd, __HAL::tReceive::dwId, get_can_msg(), get_time(), int16_t, __HAL::tTime::l1ms, __IsoAgLib::CANPkg_c::setDataString(), __IsoAgLib::CANPkg_c::setIdent(), __IsoAgLib::CANPkg_c::setTime(), __HAL::tReceive::tReceiveTime, uint8_t, and updateCanBusLoad().

Referenced by HAL::can_useMsgobjGet().

Here is the call graph for this function:

void __HAL::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

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

Definition at line 726 of file hal_can_interface.cc.

References uint8_t.

Referenced by HAL::can_useMsgobjIgnore().

int32_t __HAL::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

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 HAL_NO_ERR == No problem HAL_CONFIG_ERR == BUS not initialised, MsgObj is no RX object HAL_NOACT_ERR == BUS OFF HAL_OVERFLOW_ERR == send buffer overflowed HAL_RANGE_ERR == wrong BUS or MsgObj number HAL_WARN_ERR == BUS WARN or no received message

Definition at line 624 of file hal_can_interface.cc.

References __HAL::tReceive::dwId, get_can_msg(), get_time(), int16_t, int32_t, __HAL::tTime::l1ms, __HAL::tReceive::tReceiveTime, and uint8_t.

Referenced by HAL::can_useMsgobjReceivedIdent().

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
 

send a message via a MsgObj; CANPkg_c (or derived object) must provide (virtual) functions: Ident_c& getIdent() -> deliver ident of msg to send void getData(MASK_TYPE& reft_ident, uint8_t& refui8_identType, uint8_t& refb_dlcTarget, uint8_t* pb_dataTarget) -> 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:
HAL_NO_ERR == no error; HAL_CONFIG_ERR == BUS not initialised, MsgObj is no send object HAL_NOACT_ERR == BUS OFF HAL_OVERFLOW_ERR == send buffer overflowed HAL_RANGE_ERR == wrong BUS or MsgObj number

Definition at line 570 of file hal_can_interface.cc.

References __HAL::tSend::abData, __HAL::tSend::bDlc, __HAL::tSend::bXtd, __HAL::tSend::dwId, __IsoAgLib::CANPkg_c::getData(), IsoAgLib::getIrs232Instance(), int16_t, send_can_msg(), uint16_t, uint8_t, updateCanBusLoad(), and updateSuccSendTimestamp().

Referenced by HAL::can_useMsgobjSend().

Here is the call graph for this function:

void __HAL::checkCan0Timer void   ) 
 

void __HAL::checkCan1Timer void   ) 
 

int16_t __HAL::checkMsg  ) 
 

Definition at line 393 of file target_extension_can_rte.cc.

References int16_t, rteCan_c, and uint8_t.

Referenced by can_lastReceiveTime(), getCanMsgBufCount(), RxThread(), and thread().

int chg_can_busoff_time byte  bBusNumber,
word  wT1,
word  wT2,
word  wT3,
word  wT4,
word  wT5,
word  wTwait
 

int chg_can_obj_id byte  bBusNumber,
byte  bMsgObj,
dword  dwId,
byte  bXtd
 

Referenced by can_configMsgobjChgid().

int chg_can_obj_pause byte  bBusNumber,
byte  bMsgObj,
word  wPause
 

Referenced by can_configMsgobjSendpause().

int16_t __HAL::chgCanBusoffTime uint8_t  bBusNumber,
uint16_t  wT1,
uint16_t  wT2,
uint16_t  wT3,
uint16_t  wT4,
uint16_t  wT5,
uint16_t  wTwait
 

int16_t __HAL::chgCanObjId uint8_t  bBusNumber,
uint8_t  bMsgObj,
dword  dwId,
uint8_t  bXtd
 

int16_t __HAL::chgCanObjId uint8_t  bBusNumber,
uint8_t  bMsgObj,
uint32_t  dwId,
uint8_t  bXtd
 

Definition at line 302 of file target_extension_can_rte.cc.

References int16_t, uint32_t, and uint8_t.

int16_t __HAL::chgCanObjPause uint8_t  bBusNumber,
uint8_t  bMsgObj,
uint16_t  wPause
 

Definition at line 235 of file target_extension_can_rte.cc.

References int16_t, uint16_t, and uint8_t.

int clear_can_busoff byte  bBusNumber  ) 
 

int clear_can_obj_buf byte  bBusNumber,
byte  bMsgObj
 

Referenced by can_useMsgobjClear().

void clear_rs232_rx_buffer void   ) 
 

Referenced by HAL::clearRs232RxBuffer().

void clear_rs232_tx_buffer void   ) 
 

Referenced by HAL::clearRs232TxBuffer().

int16_t __HAL::clearCanBusoff uint8_t  bBusNumber  ) 
 

int16_t __HAL::clearCanObjBuf uint8_t  bBusNumber,
uint8_t  bMsgObj
 

Definition at line 263 of file target_extension_can_rte.cc.

References int16_t, and uint8_t.

void __HAL::clearRs232RxBuffer void   )  [inline]
 

clear receive puffer

Definition at line 411 of file hal_rs232_interface.cc.

References clear_rs232_rx_buffer(), puc_rs232BufferRead, and puc_rs232BufferWrite.

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

Here is the call graph for this function:

void __HAL::clearRs232TxBuffer void   )  [inline]
 

clear send puffer

Definition at line 421 of file hal_rs232_interface.cc.

References clear_rs232_tx_buffer().

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

Here is the call graph for this function:

int close_can byte  bBusNumber  ) 
 

Referenced by can_configGlobalClose().

int close_can_obj byte  bBusNumber,
byte  bMsgObj
 

Referenced by can_configMsgobjClose().

int16_t __HAL::closeCan uint8_t  bBusNumber  ) 
 

Definition at line 214 of file target_extension_can_rte.cc.

References arr_canQueue, closeCanObj(), int16_t, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::closeCanObj uint8_t  bBusNumber,
uint8_t  bMsgObj
 

Definition at line 312 of file target_extension_can_rte.cc.

References arr_canQueue, int16_t, and uint8_t.

Referenced by closeCan().

int16_t __HAL::closeEsx void   ) 
 

int16_t __HAL::closeSystem void   ) 
 

close the system with system specific function call

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

Definition at line 113 of file system_target_extensions.cc.

References int16_t, OFF, power_down(), and wd_triggern().

Referenced by HAL::closeSystem().

Here is the call graph for this function:

int config_can_obj byte  bBusNumber,
byte  bMsgObj,
tCanObjConfig *  ptConfig
 

Referenced by can_configMsgobjInit().

int config_digin_freq byte  bInput,
word  wWindow,
byte  bCount
 

int config_rs232_rx_obj word  wBuffersize,
void(*  pFunction)(byte *bByte)
 

Referenced by HAL::configRs232RxObj().

int config_rs232_tx_obj word  wBuffersize,
void(*  funktion_after_transmit)(byte *bByte),
void(*  funktion_befor_transmit)(byte *bByte)
 

Referenced by HAL::configRs232TxObj().

int config_wd byte  bTime  ) 
 

Referenced by configWatchdog().

int16_t __HAL::configCanObj uint8_t  bBusNumber,
uint8_t  bMsgObj,
tCanObjConfig *  ptConfig
 

Definition at line 278 of file target_extension_can_rte.cc.

References arr_canQueue, __HAL::tCanObjConfig::bMsgType, __HAL::tCanObjConfig::bXtd, __HAL::tCanObjConfig::dwId, int16_t, uint8_t, and __HAL::tCanObjConfig::wNumberMsgs.

int16_t __HAL::configDiginFreq uint8_t  bInput,
uint16_t  wFlimit,
uint8_t  bModulo
 

int16_t __HAL::configRs232RxObj uint16_t  wBuffersize,
void(*  pFunction)(uint8_t _huge *bByte)
 

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 281 of file hal_rs232_interface.cc.

References int16_t, uint16_t, and uint8_t.

int16_t __HAL::configRs232RxObj uint16_t  wBuffersize,
void(*  pFunction)(uint8_t *bByte)
 

Referenced by HAL::configRs232RxObj().

int16_t __HAL::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

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 291 of file hal_rs232_interface.cc.

References int16_t, uint16_t, and uint8_t.

int16_t __HAL::configRs232TxObj uint16_t  wBuffersize,
void(*  funktionAfterTransmit)(uint8_t *bByte),
void(*  funktionBeforTransmit)(uint8_t *bByte)
 

Referenced by HAL::configRs232TxObj().

int16_t __HAL::configWatchdog void   ) 
 

configure the watchdog of the system with the settings of configImi

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

Definition at line 143 of file system_target_extensions.cc.

References CONFIG_RESET, config_wd(), and int16_t.

Referenced by HAL::configWatchdog().

Here is the call graph for this function:

int16_t __HAL::configWd tWDConfig *  tConfigArray  ) 
 

Definition at line 163 of file system_target_extensions.cc.

References __HAL::tWDConfig::bUDmax, __HAL::tWDConfig::bUDmin, __HAL::tWDConfig::bWDmaxTime, __HAL::tWDConfig::bWDminTime, int16_t, and HAL::printf().

Here is the call graph for this function:

void counterIrq_0  ) 
 

Definition at line 156 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_1  ) 
 

Definition at line 157 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_10  ) 
 

Definition at line 166 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_11  ) 
 

Definition at line 167 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_12  ) 
 

Definition at line 168 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_13  ) 
 

Definition at line 169 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_14  ) 
 

Definition at line 170 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_15  ) 
 

Definition at line 171 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_2  ) 
 

Definition at line 158 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_3  ) 
 

Definition at line 159 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_4  ) 
 

Definition at line 160 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_5  ) 
 

Definition at line 161 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_6  ) 
 

Definition at line 162 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_7  ) 
 

Definition at line 163 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_8  ) 
 

Definition at line 164 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrq_9  ) 
 

Definition at line 165 of file sensor_target_extensions.cc.

References counterIrqFlex().

Here is the call graph for this function:

void counterIrqFlex uint8_t  rb_row,
uint8_t  rb_col
 

Definition at line 137 of file sensor_target_extensions.cc.

References _pt_diginTriggerTime, _pulDiginCounter, _put_temp, _wIrqTime, get_time(), __HAL::t_triggerNode::uiAct, uint8_t, and __HAL::t_triggerNode::uiPeriod.

Referenced by counterIrq_0(), counterIrq_1(), counterIrq_10(), counterIrq_11(), counterIrq_12(), counterIrq_13(), counterIrq_14(), counterIrq_15(), counterIrq_2(), counterIrq_3(), counterIrq_4(), counterIrq_5(), counterIrq_6(), counterIrq_7(), counterIrq_8(), and counterIrq_9().

Here is the call graph for this function:

void delay_us word  wTimer  ) 
 

void __HAL::delayUs uint16_t  wTimer  ) 
 

int eeprom_read word  wAddress,
word  wNumber,
byte pbByte
 

Referenced by HAL::eepromRead().

int eeprom_read_crc word  wAddress,
word  wNumber,
byte pbData
 

int eeprom_ready void   ) 
 

Referenced by HAL::eepromReady().

int eeprom_wp boolean  bitMode  ) 
 

Referenced by HAL::eepromWp().

int eeprom_write word  wAddress,
word  wNumber,
byte pbData
 

Referenced by HAL::eepromWrite().

int eeprom_write_byte word  wAddress,
byte  bByte
 

int eeprom_write_crc word  wAddress,
word  wNumber,
byte pbData
 

int16_t __HAL::eepromRead uint16_t  wAddress,
uint16_t  wNumber,
uint8_t pbByte
 

Definition at line 159 of file eeprom_target_extensions.cc.

References eepromDat, int16_t, int32_t, int8_t, uint16_t, and uint8_t.

int16_t __HAL::eepromReadCrc uint16_t  wAddress,
uint16_t  wNumber,
uint8_t pbData
 

int16_t __HAL::eepromReady void   ) 
 

Definition at line 84 of file eeprom_target_extensions.cc.

References int16_t.

int16_t __HAL::eepromWp boolean  bitMode  ) 
 

Definition at line 90 of file eeprom_target_extensions.cc.

References int16_t.

int16_t __HAL::eepromWrite uint16_t  wAddress,
uint16_t  wNumber,
uint8_t pbData
 

Definition at line 96 of file eeprom_target_extensions.cc.

References eepromDat, int16_t, int32_t, int8_t, HAL::printf(), uint16_t, and uint8_t.

Referenced by iInitEEEditor().

Here is the call graph for this function:

int16_t __HAL::eepromWriteByte uint16_t  wAddress,
uint8_t  bByte
 

Definition at line 149 of file eeprom_target_extensions.cc.

References eepromDat, int16_t, HAL::printf(), uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::eepromWriteCrc uint16_t  wAddress,
uint16_t  wNumber,
uint8_t pbData
 

int free_timer int  iTimerHandle  ) 
 

int16_t __HAL::freeTimer int16_t  iTimerHandle  ) 
 

int get_analogin_mean byte  bInput  ) 
 

Referenced by HAL::getAdcMeanCurrent(), and HAL::getAdcMeanVoltage().

int get_bitrate_can word pwBitrate  ) 
 

int get_can_bus_status byte  bBusNumber,
tCanBusStatus *  ptStatus
 

Referenced by can_configGlobalMask(), and updateCanStateTimestamps().

int get_can_id dword pdwCANId  ) 
 

int get_can_msg byte  bBusNumber,
byte  bMsgObj,
tReceive *  ptReceive
 

Referenced by can_useMsgobjGet(), and can_useMsgobjReceivedIdent().

int get_can_msg_buf_count byte  bBusNumber,
byte  bMsgObj
 

Referenced by can_stateMsgobjBuffercnt(), can_stateMsgobjFreecnt(), can_stateMsgobjSendproblem(), and updateSuccSendTimestamp().

int get_can_obj_status byte  bBusNumber,
byte  bMsgObj,
tCanObjStatus *  ptStatus
 

Referenced by can_stateMsgobjOverflow().

boolean get_CAN_Term_ON void   ) 
 

int get_cantype byte bCantype  ) 
 

void get_clock word pwTimer500_us,
word pwTimer200_ns
 

int get_comp_id byte pbComp  ) 
 

int get_cpu_freq void   ) 
 

Referenced by getCounterFrequency(), getCounterPeriod(), and init_counter().

word get_digin_all void   ) 
 

word get_digin_all_onoff void   ) 
 

word get_digin_all_onoff_static void   ) 
 

word get_digin_all_static void   ) 
 

int get_digin_diff_time byte  bInput_x,
byte  bInput_y,
long *  plPhase_diff_time,
word pwPeriod_x
 

int get_digin_direction byte  bKanal_x,
byte  bKanal_y
 

int get_digin_freq byte  bInput,
word pwFrequency
 

Referenced by getCounterFrequency(), and HAL::getDiginFreq().

int get_digin_hilo byte  bInputNumber  ) 
 

int get_digin_hilo_static byte  bInputNumber  ) 
 

int get_digin_onoff byte  bInputNumber  ) 
 

Referenced by HAL::getDiginOnoff().

int get_digin_onoff_static byte  bInputNumber  ) 
 

Referenced by HAL::getDiginOnoffStatic().

int get_digin_period byte  bInput,
word pwPeriod,
word pwImpulse
 

Referenced by getCounterPeriod().

int get_digin_pwm_time byte  bInput,
word pwHigh_time,
word pwLow_time,
word pwDiff_time
 

int get_digout_status tOutput *  ptStatus  ) 
 

Referenced by HAL::getMaxPwmDigout().

int get_eeprom_segment_size void   ) 
 

Referenced by HAL::getEepromSegmentSize().

int get_eeprom_size void   ) 
 

Referenced by HAL::getEepromSize().

int get_events TU_Events *  tActualEvents  ) 
 

int get_lokal_id byte bLokalId  ) 
 

int get_rs232_char byte pbRead  ) 
 

Referenced by HAL::getRs232Char().

int get_rs232_char_echo byte pbRead  ) 
 

int get_rs232_error byte Errorcode  ) 
 

Referenced by HAL::getRs232Error().

int get_rs232_rx_buf_count void   ) 
 

Referenced by HAL::getRs232RxBufCount().

int get_rs232_string byte pbRead,
byte  bLast_char
 

Referenced by HAL::getRs232String().

int get_rs232_string_echo byte pbRead,
byte  bLast_char
 

int get_rs232_tx_buf_count void   ) 
 

Referenced by HAL::getRs232TxBufCount().

int get_sec_compare_mode dword pdwCompareMode  ) 
 

int get_snr byte snr_dat  ) 
 

Referenced by HAL::getSnr().

void get_system_data tSystem *  tSystem  ) 
 

int get_task_overload void   ) 
 

int get_task_running TASKS *  tActualTask  ) 
 

long get_time void   ) 
 

Referenced by can_configGlobalInit(), can_stateGlobalBlocked(), can_stateMsgobjSendproblem(), can_useMsgobjGet(), can_useMsgobjReceivedIdent(), counterIrqFlex(), getCounterLastSignalAge(), HAL::getTime(), updateCanBusLoad(), updateCanStateTimestamps(), and updateSuccSendTimestamp().

void get_time_ext tTime *  pTTime  ) 
 

int get_timer void   ) 
 

uint8_t getAnaloginCheckNr uint8_t  rb_channel  )  [inline]
 

deliver channel number for checking/requesting of analog input for call of __HAL:: functions (differences mostly caused by multiplexers)

Parameters:
channel number from interval [0..maxNo] == [0..7]
Returns:
according channel number for __HAL call

Definition at line 88 of file sensor.h.

References uint8_t.

int16_t __HAL::getBitrateCan uint16_t pwBitrate  ) 
 

int16_t __HAL::getCanBusStatus uint8_t  bBusNumber,
tCanBusStatus *  ptStatus
 

Definition at line 244 of file target_extension_can_rte.cc.

References int16_t, rteCanBusState, uint8_t, and __HAL::tCanBusStatus::wCtrlStatusReg.

int16_t __HAL::getCanId dword pdwCANId  ) 
 

int16_t __HAL::getCanMsg uint8_t  bBusNumber,
uint8_t  bMsgObj,
tReceive *  ptReceive
 

Definition at line 370 of file target_extension_can_rte.cc.

References __HAL::tReceive::abData, __HAL::can_data::b_dlc, __HAL::can_data::b_xtd, __HAL::tReceive::bDlc, __HAL::tReceive::bXtd, __HAL::tReceive::dwId, getTime(), __HAL::can_data::i32_ident, i32_lastReceiveTime, __HAL::can_data::i32_time, int16_t, __HAL::tTime::l1ms, __HAL::can_data::pb_data, __HAL::tReceive::tReceiveTime, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::getCanMsgBufCount uint8_t  bBusNumber,
uint8_t  bMsgObj
 

Definition at line 206 of file target_extension_can_rte.cc.

References checkMsg(), int16_t, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::getCanObjStatus uint8_t  bBusNumber,
uint8_t  bMsgObj,
tCanObjStatus *  ptStatus
 

int16_t __HAL::getCantype uint8_t bCantype  ) 
 

void __HAL::getClock uint16_t pwTimer500Us,
uint16_t pwTimer200Ns
 

int16_t __HAL::getCompId uint8_t pbComp  ) 
 

uint32_t __HAL::getCounter uint8_t  rb_channel  ) 
 

get counter value of an digital counter input

Parameters:
rb_channel channel of counter
Returns:
counter events since init or last reset

Definition at line 278 of file sensor_target_extensions.cc.

References _pulDiginCounter, uint32_t, and uint8_t.

Referenced by HAL::getCounter().

uint16_t __HAL::getCounterFrequency uint8_t  rb_channel  ) 
 

get frequency of counter channel

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

Definition at line 349 of file sensor_target_extensions.cc.

References _pt_diginTriggerTime, _puiDiginTimebase, get_cpu_freq(), get_digin_freq(), getCounterLastSignalAge(), int32_t, uint16_t, uint8_t, and __HAL::t_triggerNode::uiPeriod.

Referenced by HAL::getCounterFrequency().

Here is the call graph for this function:

uint16_t __HAL::getCounterLastSignalAge uint8_t  rb_channel  ) 
 

get time since last signal and reset according trigger timers if timebase is exceeded -> avoid overflow problems if timer floated around 0xFFFF

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

Definition at line 390 of file sensor_target_extensions.cc.

References _pt_diginTriggerTime, _puiDiginTimebase, get_time(), __HAL::t_triggerNode::uiAct, uint16_t, uint8_t, and __HAL::t_triggerNode::uiPeriod.

Referenced by getCounterFrequency(), HAL::getCounterLastSignalAge(), and getCounterPeriod().

Here is the call graph for this function:

uint16_t __HAL::getCounterPeriod uint8_t  rb_channel  ) 
 

get period of counter channel

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

Definition at line 308 of file sensor_target_extensions.cc.

References _b_prescale_1_4Index, _b_prescale_5_16Index, _pt_diginTriggerTime, _puiDiginTimebase, get_cpu_freq(), get_digin_period(), getCounterLastSignalAge(), uint16_t, uint8_t, and __HAL::t_triggerNode::uiPeriod.

Referenced by HAL::getCounterPeriod().

Here is the call graph for this function:

int16_t __HAL::getCpuFreq void   ) 
 

Definition at line 183 of file system_target_extensions.cc.

References int16_t, and HAL::printf().

Here is the call graph for this function:

uint8_t getDiginAdcCheckNr uint8_t  rb_channel  )  [inline]
 

deliver channel number for checking/requesting of ADC value at digital input for call of __HAL:: functions (differences mostly caused by multiplexers)

Parameters:
channel number from interval [0..maxNo]
Returns:
according channel number for __HAL call

Definition at line 98 of file sensor.h.

References uint8_t.

int16_t __HAL::getDiginDiffTime uint8_t  bInput_x,
uint8_t  bInput_y,
int32_t plPhaseDiffTime,
uint16_t pwPeriod_x
 

int16_t __HAL::getDiginDirection uint8_t  bKanal_x,
uint8_t  bKanal_y
 

int16_t __HAL::getDiginFreq uint8_t  bInput,
uint16_t pwFrequency
 

int16_t __HAL::getDiginHilo uint16_t  wPortNumber  ) 
 

int16_t __HAL::getDiginHiloStatic uint8_t  bInputNumber  ) 
 

int16_t __HAL::getDiginPeriod uint8_t  bInput,
uint16_t pwPeriod,
uint16_t pwImpulse
 

int16_t __HAL::getDiginPwmTime uint8_t  bInput,
uint16_t pwHighTime,
uint16_t pwLowTime,
uint16_t pwDiffTime
 

int16_t __HAL::getDigoutStatus uint8_t  bNumber,
tOutput *  pTOutput
 

int16_t __HAL::getEepromSegmentSize void   ) 
 

Definition at line 79 of file eeprom_target_extensions.cc.

References int16_t.

int16_t __HAL::getEepromSize void   ) 
 

Definition at line 73 of file eeprom_target_extensions.cc.

References int16_t.

int16_t __HAL::getEvents TUEvents *  tActualEvents  ) 
 

int16_t __HAL::getLokalId uint8_t bLokalId  ) 
 

int16_t __HAL::getOn_offSwitch void   ) 
 

check if the D+ signal is active

Returns:
1 (== ON) -> the CAN BUS is still active

Definition at line 990 of file system_target_extensions.cc.

Referenced by powerDown().

uint8_t getPwmCurrentCheckNr uint8_t  rb_channel  )  [inline]
 

deliver channel number for checking/requesting of current output through given PWM output

Parameters:
channel number from interval [0..maxNo]
Returns:
according channel number for __HAL call

Definition at line 102 of file actor.h.

References uint8_t.

uint8_t getPwmoutAdcCheckNr uint8_t  rb_channel  )  [inline]
 

deliver channel number for checking/requesting of ADC value at pwm output for call of __HAL:: functions (differences mostly caused by multiplexers)

Parameters:
channel number from interval [0..maxNo]
Returns:
according channel number for __HAL call

Definition at line 88 of file actor.h.

References uint8_t.

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 315 of file hal_rs232_interface.cc.

References get_rs232_char(), int16_t, readDataFromRs232RingBuffer(), uint8_t, 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::getRs232CharEcho uint8_t pbRead  ) 
 

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 301 of file hal_rs232_interface.cc.

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

Here is the call graph for this function:

uint16_t getRs232RingBufferMaxSize void   ) 
 

low level helper function to get current count of elements in buffer

Definition at line 101 of file hal_rs232_interface.cc.

References uint16_t.

uint16_t getRs232RingBufferSize void   ) 
 

low level helper function to get current count of elements in buffer

Definition at line 97 of file hal_rs232_interface.cc.

References uint16_t.

Referenced by getRs232RxBufCount().

int16_t __HAL::getRs232RxBufCount void   )  [inline]
 

get the amount of data [uint8_t] in receive puffer

Returns:
receive puffer data byte

Definition at line 263 of file hal_rs232_interface.cc.

References get_rs232_rx_buf_count(), 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 332 of file hal_rs232_interface.cc.

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

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

Here is the call graph for this function:

int16_t __HAL::getRs232StringEcho uint8_t pbRead,
uint8_t  bLastChar
 

int16_t __HAL::getRs232TxBufCount void   )  [inline]
 

get the amount of data [uint8_t] in send puffer

Returns:
send puffer data byte

Definition at line 270 of file hal_rs232_interface.cc.

References 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  ) 
 

Definition at line 156 of file system_target_extensions.cc.

References int16_t, and uint8_t.

void __HAL::getSystemData tSystem *  tSystem  ) 
 

int16_t __HAL::getTaskOverload void   ) 
 

int16_t __HAL::getTaskRunning TASKS *  tActualTask  ) 
 

int32_t __HAL::getTime void   ) 
 

get the system time in [ms]

Returns:
[ms] since start of the system

Definition at line 114 of file system_target_extensions.cc.

References _time(), and int32_t.

Referenced by getCanMsg(), send(), and sendCanMsg().

Here is the call graph for this function:

void __HAL::getTimeExt tTime *  pTTime  ) 
 

int16_t __HAL::getTimer void   ) 
 

int16_t __HAL::getWdAck uint8_t bState  ) 
 

uint16_t __HAL::getWdAlive void   ) 
 

int16_t __HAL::iCallCanEEMonitor void   ) 
 

Definition at line 125 of file pc_eeditor_can.cc.

References int16_t.

int16_t __HAL::iCallRs232EEMonitor void   ) 
 

Definition at line 61 of file pc_eeditor_rs232.cc.

References int16_t, and HAL::printf().

Here is the call graph for this function:

int ident_hdl rtd_handler_para_t *  para,
char *  ident
[static]
 

Handler for identification reply

Definition at line 409 of file target_extension_can_rte.cc.

Referenced by init_can().

int16_t __HAL::iInitEEEditor uint8_t  bBus,
int16_t  iObjNrReceiveCan,
int16_t  iObjNrTransmitCan,
uint32_t  dwReceiveCanId,
uint8_t  bCanType,
int16_t  iNumberMsgsReceive,
int16_t  iNumberMsgsTransmit
 

Definition at line 64 of file pc_eeditor_can.cc.

References eepromWrite(), int16_t, int32_t, int8_t, HAL::printf(), uint32_t, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::init_can uint8_t  bBusNumber,
uint16_t  wMaskShort,
dword  dwMaskLong,
dword  dwLastMsgObjMask,
uint16_t  wBitrate
 

int16_t __HAL::init_can uint8_t  bBusNumber,
uint16_t  wGlobMask,
uint32_t  dwGlobMask,
uint32_t  dwGlobMaskLastmsg,
uint16_t  wBitrate
 

Definition at line 523 of file target_extension_can_rte.cc.

References ackHdl(), ident_hdl(), int16_t, rteCan_c, send(), setBusState(), uint16_t, uint32_t, and uint8_t.

Here is the call graph for this function:

int init_can byte  bBusNumber,
word  wMaskShort,
dword  dwMaskLong,
dword  dwLastMsgObjMask,
word  wBitrate
 

Referenced by can_configGlobalInit(), and can_configGlobalMask().

int init_can_err_irq byte  bBusNumber,
tCAN_ERR_FUNC  pfwBusOff,
tCAN_ERR_FUNC  pfwErrorWarn
 

int16_t __HAL::init_canErrIrq uint8_t  bBusNumber,
tCAN_ERR_FUNC  pfwBusOff,
tCAN_ERR_FUNC  pfwErrorWarn
 

int16_t __HAL::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;

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 192 of file sensor_target_extensions.cc.

References _b_prescale_1_4Index, _b_prescale_5_16Index, _pt_diginTriggerTime, _puiDiginTimebase, _pulDiginCounter, get_cpu_freq(), init_digin(), int16_t, int32_t, irqFuncArr, RISING_EDGE, RPM_IN_1_4, RPM_IN_5_16, set_digin_prescaler(), uint16_t, uint16_t, uint32_t, and uint8_t.

Referenced by HAL::init_counter().

Here is the call graph for this function:

int init_digin byte  bInput,
byte  bMode,
void(*  pfFunction_name)()
 

Referenced by init_counter(), and HAL::init_digin().

void __HAL::init_errorhandler uint8_t  bSwitch  ) 
 

void init_errorhandler byte  bSwitch  ) 
 

int init_input byte  bPort,
byte  bState
 

void __HAL::init_offReaction void(*  pfFunctionName)()  ) 
 

int16_t __HAL::init_rs232 uint16_t  wBaudrate,
uint8_t  bMode,
uint8_t  bStoppbits,
bool  bitSoftwarehandshake
 

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 180 of file hal_rs232_interface.cc.

References int16_t, puc_rs232BufferRead, puc_rs232BufferWrite, uint16_t, and uint8_t.

int16_t __HAL::init_rs232 uint16_t  wBaudrate,
uint8_t  bMode,
uint8_t  bStoppbits,
boolean  bitSoftwarehandshake
 

int init_rs232 word  wBaudrate,
byte  bMode,
byte  bStoppbits,
boolean  bitSoftwarehandshake
 

Referenced by HAL::init_rs232().

int init_task_call word  wPriority,
word  wIntervall,
word  wOffset,
void(*  pfFunktion)(void)
 

int16_t __HAL::init_taskCall uint16_t  wPriority,
uint16_t  wIntervall,
uint16_t  wOffset,
void(*  pfFunktion)(void)
 

bool isRs232RingBufferEmpty void   ) 
 

low level helper function to check if buffer is empty

Definition at line 93 of file hal_rs232_interface.cc.

Referenced by readDataFromRs232RingBuffer().

bool stackparm isRs232RingBufferFull void   ) 
 

low level helper function to check if buffer is full

Definition at line 89 of file hal_rs232_interface.cc.

Referenced by writeDataToRs232RingBuffer().

bool __HAL::isSystemOpened void   ) 
 

check if open_System() has already been called

Definition at line 128 of file system_target_extensions.cc.

Referenced by HAL::isSystemOpened().

int16_t __HAL::KeyGetByte uint8_t p  ) 
 

Definition at line 253 of file system_target_extensions.cc.

References int16_t, and uint8_t.

uint16_t __HAL::kGetADValue uint8_t  bChannel  ) 
 

int16_t __HAL::kInit_incrementalPorts PORTS  tPort1,
PORTS  tPort2,
uint16_t  wIntLevel,
uint16_t pwCounter
 

void __HAL::kInitADC uint16_t  wNumOfChannels,
uint16_t pwData,
uint16_t(*  pfADCUserFunction)(void),
uint16_t  wDelay
 

int16_t __HAL::kIoConfig PORTS  tNumber,
uint16_t  wMode,
uint16_t  wIntLevel,
void(*  pfUserFunction)()
 

int16_t __HAL::kOpen_pm167 tSystem *  tSystem  ) 
 

int lock_can_obj byte  bBusNumber,
byte  bMsgObj
 

int16_t __HAL::lockCanObj uint8_t  bBusNumber,
uint8_t  bMsgObj
 

int open_adis tSystem *  tSystem  ) 
 

int16_t __HAL::open_system void   ) 
 

open the system with system specific function call

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

Definition at line 90 of file system_target_extensions.cc.

References int16_t.

Referenced by HAL::open_system().

void power_down void   ) 
 

Referenced by closeSystem(), and HAL::powerDown().

void __HAL::powerDown void   ) 
 

Definition at line 196 of file system_target_extensions.cc.

References can_stopDriver(), getOn_offSwitch(), and HAL::printf().

Here is the call graph for this function:

int put_rs232_char byte  bByte  ) 
 

Referenced by HAL::put_rs232Char().

int put_rs232_n_char byte bpWrite,
word  wNumber
 

Referenced by HAL::put_rs232NChar().

int put_rs232_string byte pbString  ) 
 

Referenced by HAL::put_rs232String().

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 355 of file hal_rs232_interface.cc.

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

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

Here is the call graph for this function:

int16_t __HAL::put_rs232NChar const uint8_t bpWrite,
uint16_t  wNumber
 

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 377 of file hal_rs232_interface.cc.

References int16_t, put_rs232Char(), uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::put_rs232NChar uint8_t bpWrite,
uint16_t  wNumber
 

int16_t __HAL::put_rs232String const uint8_t pbString  ) 
 

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 396 of file hal_rs232_interface.cc.

References int16_t, put_rs232Char(), uint16_t, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::put_rs232String uint8_t pbString  ) 
 

bool readDataFromRs232RingBuffer uchar *  puc_item  ) 
 

low level helper function to read can data

Definition at line 139 of file hal_rs232_interface.cc.

References clearRs232RxBuffer(), isRs232RingBufferEmpty(), and puc_rs232BufferRead.

Referenced by getRs232Char(), and getRs232String().

Here is the call graph for this function:

int req_can_msg byte  bBusNumber,
byte  bMsgObj,
tRequestRtr *  ptRtr
 

int16_t __HAL::reqCanMsg uint8_t  bBusNumber,
uint8_t  bMsgObj,
tRequestRtr *  ptRtr
 

int16_t __HAL::resetCounter uint8_t  rb_channel  ) 
 

reset the given counter

Parameters:
rb_channel channel of counter
Returns:
C_NO_ERR ; C_RANGE if counter for rb_channel isnīt configured properly

Definition at line 292 of file sensor_target_extensions.cc.

References _pulDiginCounter, int16_t, and uint8_t.

Referenced by HAL::resetCounter().

long rest_time int  iTimerHandle,
long *  lPastTime
 

int32_t __HAL::restTime int16_t  iTimerHandle,
int32_t lPastTime
 

int retrigger_me word  wIntervall,
word  wOffset
 

int16_t __HAL::retriggerMe uint16_t  wIntervall,
uint16_t  wOffset
 

DWORD WINAPI RxThread PVOID  par  ) 
 

Definition at line 137 of file target_extension_can_w32_vector_xl.cc.

References b_blockApp, checkMsg(), and g_hMsgEvent.

Here is the call graph for this function:

int send rtd_handler_para_t *  para,
rtd_can_type_t  type,
uint32_t  id,
uint8_t  size,
const void *  data
[static]
 

Handler for incoming CAN messages.

Definition at line 422 of file target_extension_can_rte.cc.

References arr_canQueue, __HAL::can_data::b_dlc, __HAL::can_data::b_xtd, getTime(), __HAL::can_data::i32_ident, __HAL::can_data::i32_time, int16_t, __HAL::can_data::pb_data, HAL::printf(), uint32_t, and uint8_t.

Referenced by __IsoAgLib::DINMonitor_c::adressConflict(), init_can(), __IsoAgLib::RS232IO_c::operator<<(), __IsoAgLib::DINMonitor_c::processMsg(), __IsoAgLib::Process_c::processMsg(), __IsoAgLib::Base_c::processMsg(), and IsoAgLib::iRS232IO_c::send().

Here is the call graph for this function:

int send_can_msg byte  bBusNumber,
byte  bMsgObj,
tSend *  ptSend
 

Referenced by can_useMsgobjSend().

int send_can_msg_def_id byte  bBusNumber,
byte  bMsgObj,
tSendDefault *  ptSend
 

int16_t __HAL::sendCanMsg uint8_t  bBusNumber,
uint8_t  bMsgObj,
tSend *  ptSend
 

Definition at line 332 of file target_extension_can_rte.cc.

References __HAL::tSend::abData, __HAL::tSend::bDlc, __HAL::tSend::bXtd, __HAL::tSend::dwId, getTime(), int16_t, rteCan_c, and uint8_t.

Here is the call graph for this function:

int16_t __HAL::sendCanMsgDefId uint8_t  bBusNumber,
uint8_t  bMsgObj,
tSendDefault *  ptSend
 

int set_bitrate_can word  wCan_bitrate  ) 
 

int set_can_bittime_reg byte  bBusNumber,
word  wBittimeReg,
word  wBitrate
 

int set_can_id dword  dwId_dat  ) 
 

void set_CAN_Term_ON byte  bState  ) 
 

int set_cantype byte  bCantype  ) 
 

int set_digin_prescaler byte  bGroup,
byte  bMode
 

Referenced by init_counter().

int set_event_mask TU_Events  tNewEventMask  ) 
 

int set_events TU_Events  tNewEvents  ) 
 

void set_input_sample_time word  wAbtastrate  ) 
 

int set_lokal_id byte  bLocal_id  ) 
 

void set_Out_UD word  wPWM_Value  ) 
 

void set_Pull_Up_Voltage byte  bState  ) 
 

int set_pwm_freq dword  dwFrequency_mHz  ) 
 

Referenced by HAL::setPwmFreq().

int set_rs232_baudrate word  wBaudrate  ) 
 

Referenced by HAL::setRs232Baudrate().

int set_sec_compare_mode dword  pdwCompareMode  ) 
 

void set_wd byte  bitState  ) 
 

int16_t __HAL::setBitrateCan uint16_t  wCan_bitrate  ) 
 

int setBusState rtd_handler_para_t *  para,
rtd_can_bus_state_t  state
[static]
 

Handler for CAN bus state indications.

Definition at line 507 of file target_extension_can_rte.cc.

References rteCanBusState.

Referenced by init_can().

int16_t __HAL::setCanId dword  dwIdDat  ) 
 

int16_t __HAL::setCantype uint8_t  bCantype  ) 
 

int16_t __HAL::setDiginPrescaler uint8_t  bGroup,
uint8_t  bMode
 

int16_t __HAL::setDigout PORTS  tNumber,
uint16_t  wPWMValue
 

int16_t __HAL::setEventMask TUEvents  tNewEventMask  ) 
 

int16_t __HAL::setEvents TUEvents  tNewEvents  ) 
 

void __HAL::setInputSampleTime uint16_t  wAbtastrate  ) 
 

int16_t __HAL::setLokalId uint8_t  bLocalId  ) 
 

int16_t __HAL::setPwmFreq PORTS  tNumber,
dword  dwFrequency
 

void __HAL::setRelais boolean  bitState  ) 
 

Definition at line 248 of file system_target_extensions.cc.

References HAL::printf().

Here is the call graph for this function:

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 241 of file hal_rs232_interface.cc.

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

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

Here is the call graph for this function:

void __HAL::setWd uint8_t  bitState  ) 
 

void start_task_timer word  wT5Reload  ) 
 

Referenced by HAL::startTaskTimer().

int start_timer int  iTimerHandle,
long  lTime
 

void __HAL::startTaskTimer uint16_t  wT5Reload  ) 
 

void __HAL::startTaskTimer void   ) 
 

Definition at line 178 of file system_target_extensions.cc.

References HAL::printf(), and T_TASK_BASIC.

Here is the call graph for this function:

int16_t __HAL::startTimer int16_t  iTimerHandle,
int32_t  lTime
 

void staying_alive void   ) 
 

Referenced by HAL::stayingAlive().

void __HAL::stayingAlive void   ) 
 

Definition at line 190 of file system_target_extensions.cc.

References HAL::printf().

Here is the call graph for this function:

int stop_timer int  iTimerHandle  ) 
 

int16_t __HAL::stopTimer int16_t  iTimerHandle  ) 
 

void * __HAL::stwCalloc uint16_t  wNumberObj,
uint16_t  wSizeObj
 

int16_t __HAL::stwFree void *  pvFree  ) 
 

void * __HAL::stwMalloc uint16_t  wNumberBytes  ) 
 

void * __HAL::stwRealloc void *  vpOld,
uint16_t  wSize
 

DWORD WINAPI thread PVOID  par  ) 
 

Definition at line 132 of file target_extension_can_w32_vector_canlib.cc.

References checkMsg(), and gEventHandle.

Here is the call graph for this function:

int16_t __HAL::timeout int16_t  iTimerHandle  ) 
 

int timeout int  iTimerHandle  ) 
 

int unlock_can_obj byte  bBusNumber,
byte  bMsgObj
 

int16_t __HAL::unlockCanObj uint8_t  bBusNumber,
uint8_t  bMsgObj
 

void __HAL::updateCanBusLoad uint8_t  rui8_busNr,
uint8_t  rb_dlc
 

update the CAN BUS load statistic

Parameters:
rui8_busNr BUS number to update
rb_dlc length ot the detected (send or receive) message

Definition at line 537 of file hal_can_interface.cc.

References get_time(), int32_t, and uint8_t.

Referenced by can_useMsgobjGet(), and can_useMsgobjSend().

Here is the call graph for this function:

void __HAL::updateCanStateTimestamps uint8_t  rui8_busNr  ) 
 

update the CAN BUS state parameters for WARN, OFF and Bit1Err

Parameters:
rui8_busNr number of bus to check

Definition at line 116 of file hal_can_interface.cc.

References get_can_bus_status(), get_time(), uint16_t, and uint8_t.

Referenced by can_stateGlobalBit1err(), can_stateGlobalBlocked(), can_stateGlobalOff(), and can_stateGlobalWarn().

Here is the call graph for this function:

void __HAL::updateSuccSendTimestamp uint8_t  rui8_busNr  ) 
 

update the timestamp of last succ receive by comparing the cnt of msgs in send buffers

Parameters:
rui8_busNr number of bus to check

Definition at line 173 of file hal_can_interface.cc.

References get_can_msg_buf_count(), get_time(), int16_t, int32_t, and uint8_t.

Referenced by can_stateGlobalBlocked(), can_stateMsgobjOverflow(), can_stateMsgobjTxok(), and can_useMsgobjSend().

Here is the call graph for this function:

void wd_high void   ) 
 

void wd_low void   ) 
 

int wd_reset void   ) 
 

Referenced by HAL::wdReset().

void wd_triggern void   ) 
 

Referenced by closeSystem(), and HAL::wdTriggern().

void __HAL::wdHigh uint8_t  bWatchdogNo  ) 
 

void __HAL::wdLow uint8_t  bWatchdogNo  ) 
 

int16_t __HAL::wdReset void   ) 
 

Definition at line 173 of file system_target_extensions.cc.

References int16_t, and HAL::printf().

Here is the call graph for this function:

void __HAL::wdTriggern void   ) 
 

trigger the watchdog

Definition at line 140 of file system_target_extensions.cc.

References sui16_wdtin, and sui16_wdtrel.

bool stackparm writeDataToRs232RingBuffer uchar  ruc_item,
bool  rb_force = false
 

low level helper function to write can data

Definition at line 106 of file hal_rs232_interface.cc.

References clearRs232RxBuffer(), isRs232RingBufferFull(), puc_rs232BufferRead, and puc_rs232BufferWrite.

Referenced by handle_ascii_string(), and handle_character().

Here is the call graph for this function:


Variable Documentation

uint8_t __HAL::_b_prescale_1_4Index [static]
 

prescaler value for digin input channels 1_4

Definition at line 95 of file sensor_target_extensions.cc.

Referenced by getCounterPeriod(), and init_counter().

uint8_t __HAL::_b_prescale_5_16Index [static]
 

prescaler value for digin input channels 5_16

Definition at line 97 of file sensor_target_extensions.cc.

Referenced by getCounterPeriod(), and init_counter().

t_triggerNode* __HAL::_pt_diginTriggerTime[4] [static]
 

if the given timebase is longer than the timebase powered by standard BIOS, the timestamp of last two trigger events should be stored for calculating of longer periods

Definition at line 120 of file sensor_target_extensions.cc.

Referenced by counterIrqFlex(), getCounterFrequency(), getCounterLastSignalAge(), getCounterPeriod(), and init_counter().

uint16_t* __HAL::_puiDiginTimebase[4] [static]
 

configured timebase for counter channels; if time between two events is longer than given timebase, getCounterPeriod answers 0; important for timebases which are not supported by standard BIOS

Definition at line 132 of file sensor_target_extensions.cc.

Referenced by getCounterFrequency(), getCounterLastSignalAge(), getCounterPeriod(), and init_counter().

uint32_t* __HAL::_pulDiginCounter[4] [static]
 

array of pointers to uint32_t arrays with counter values; avoid memory waste, if only some channels are used for counting

Definition at line 103 of file sensor_target_extensions.cc.

Referenced by counterIrqFlex(), getCounter(), init_counter(), and resetCounter().

t_triggerNode* __HAL::_put_temp
 

pointer to triger node of diginput which caused interrupt

Definition at line 125 of file sensor_target_extensions.cc.

Referenced by counterIrqFlex().

uint16_t __HAL::_wIrqTime [static]
 

Definition at line 135 of file sensor_target_extensions.cc.

Referenced by counterIrqFlex().

std::list<RteCanPkg> __HAL::arr_canQueue[4] [static]
 

Definition at line 121 of file target_extension_can_rte.cc.

Referenced by closeCan(), closeCanObj(), configCanObj(), and send().

bool __HAL::b_blockApp [static]
 

the app must wait until this var is false, before it can safely take a message from buffer

Definition at line 126 of file target_extension_can_w32_vector_xl.cc.

Referenced by RxThread().

bool __HAL::b_blockThread [static]
 

the thread is only allowed to perform activities, if this var is false

Definition at line 124 of file target_extension_can_w32_vector_xl.cc.

bool __HAL::b_busOpened [static]
 

Definition at line 115 of file target_extension_can_w32_vector_xl.cc.

bool __HAL::b_cinterfBufferedReceivedMsg [static]
 

Definition at line 944 of file hal_can_interface.cc.

__IsoAgLib::Ident_c __HAL::c_cinterfIdent
 

Definition at line 955 of file hal_can_interface.cc.

FILE* __HAL::can_input[2][16] [static]
 

Definition at line 63 of file target_extension_can_simulating.cc.

tIRQ_FUNCTION __HAL::can_irq[2][16] [static]
 

Definition at line 66 of file target_extension_can_simulating.cc.

FILE* __HAL::can_output[2][2] [static]
 

Definition at line 64 of file target_extension_can_simulating.cc.

FILE * __HAL::canlogDat [static]
 

Definition at line 118 of file target_extension_can_w32_vector_xl.cc.

uint8_t __HAL::dateiende[2][16] [static]
 

Definition at line 69 of file target_extension_can_simulating.cc.

FILE* __HAL::eepromDat [static]
 

Definition at line 70 of file eeprom_target_extensions.cc.

Referenced by eepromRead(), eepromWrite(), and eepromWriteByte().

char __HAL::g_AppName[XL_MAX_LENGTH+1] = "IsoAgLib"
 

Application name which is displayed in VHWconf.

Definition at line 81 of file target_extension_can_w32_vector_xl.cc.

XLhandle __HAL::g_hMsgEvent
 

notification handle for the receive queue

Definition at line 129 of file target_extension_can_w32_vector_xl.cc.

Referenced by RxThread().

HANDLE __HAL::g_hRXThread
 

thread handle (RX)

Definition at line 130 of file target_extension_can_w32_vector_xl.cc.

HANDLE __HAL::g_hTXThread
 

thread handle (TX)

Definition at line 131 of file target_extension_can_w32_vector_xl.cc.

int __HAL::g_RXThreadRun
 

flag to start/stop the RX thread

Definition at line 132 of file target_extension_can_w32_vector_xl.cc.

int __HAL::g_TXThreadRun
 

flag to start/stop the TX thread (for the transmission burst)

Definition at line 133 of file target_extension_can_w32_vector_xl.cc.

XLaccess __HAL::g_xlChannelMask = 0
 

Global channelmask (includes all founded channels).

Definition at line 84 of file target_extension_can_w32_vector_xl.cc.

XLdriverConfig __HAL::g_xlDrvConfig
 

Contains the actual hardware configuration.

Definition at line 83 of file target_extension_can_w32_vector_xl.cc.

XLaccess __HAL::g_xlPermissionMask = 0
 

Global permissionmask (includes all founded channels).

Definition at line 85 of file target_extension_can_w32_vector_xl.cc.

XLportHandle __HAL::g_xlPortHandle = XL_INVALID_PORTHANDLE
 

Global porthandle (we use only one!).

Definition at line 82 of file target_extension_can_w32_vector_xl.cc.

uint8_t __HAL::gb_cinterfBusLoadSlice[CAN_BUS_CNT] [static]
 

actual index in gwBusLoad

Definition at line 954 of file hal_can_interface.cc.

boolean __HAL::gbDoADC
 

Definition at line 923 of file eeprom.h.

int16_t __HAL::gChannel = 0
 

Definition at line 86 of file target_extension_can_w32_vector_xl.cc.

Vaccess __HAL::gChannelMask = 0
 

Definition at line 82 of file target_extension_can_w32_vector_canlib.cc.

Vevent __HAL::gEvent
 

Definition at line 84 of file target_extension_can_w32_vector_canlib.cc.

HANDLE __HAL::gEventHandle = 0
 

Definition at line 77 of file target_extension_can_w32_vector_xl.cc.

Referenced by thread().

uint16_t __HAL::gHwType = HWTYPE_CANCARDX
 

Definition at line 93 of file target_extension_can_w32_vector_xl.cc.

Vaccess __HAL::gPermissionMask = 0
 

Definition at line 83 of file target_extension_can_w32_vector_canlib.cc.

Vevent* __HAL::gpEvent
 

Definition at line 85 of file target_extension_can_w32_vector_canlib.cc.

VportHandle __HAL::gPortHandle = INVALID_PORTHANDLE
 

Definition at line 81 of file target_extension_can_w32_vector_canlib.cc.

bool __HAL::gThreadRunning [static]
 

flag to control running thread

Definition at line 122 of file target_extension_can_w32_vector_xl.cc.

uint16_t __HAL::gwCinterfBusLoad[CAN_BUS_CNT][10] [static]
 

array of 100msec.

timeslice conters of received and sent msg per BUS [uint8_t]

Definition at line 952 of file hal_can_interface.cc.

uint16_t __HAL::gwDelayADC
 

Definition at line 924 of file eeprom.h.

int32_t __HAL::i32_cinterfBeginBit1err[CAN_BUS_CNT] [static]
 

Definition at line 946 of file hal_can_interface.cc.

int32_t __HAL::i32_cinterfBeginBusWarnOff[CAN_BUS_CNT] [static]
 

Definition at line 945 of file hal_can_interface.cc.

int32_t __HAL::i32_cinterfLastSuccReceive[CAN_BUS_CNT] [static]
 

Definition at line 949 of file hal_can_interface.cc.

int32_t __HAL::i32_cinterfLastSuccSend[CAN_BUS_CNT] [static]
 

Definition at line 947 of file hal_can_interface.cc.

int32_t far __HAL::i32_cinterfMsgobjSuccSend [static]
 

Definition at line 948 of file hal_can_interface.cc.

int32_t __HAL::i32_lastCloseTime = 0
 

Definition at line 73 of file target_extension_can_simulating.cc.

int32_t __HAL::i32_lastReceiveTime
 

Definition at line 111 of file target_extension_can_w32_vector_xl.cc.

Referenced by getCanMsg().

int32_t __HAL::i32_lastSendTime
 

Definition at line 71 of file target_extension_can_simulating.cc.

counterIrqFunction __HAL::irqFuncArr[16] [static]
 

Initial value:

{&counterIrq_0, &counterIrq_1, &counterIrq_2, &counterIrq_3, &counterIrq_4, &counterIrq_5,
 &counterIrq_6, &counterIrq_7, &counterIrq_8, &counterIrq_9, &counterIrq_10, &counterIrq_11,
 &counterIrq_12, &counterIrq_13, &counterIrq_14, &counterIrq_15}

Definition at line 176 of file sensor_target_extensions.cc.

Referenced by init_counter().

int32_t __HAL::lastCloseTimeArr[2][16] [static]
 

Definition at line 70 of file target_extension_can_simulating.cc.

boolean __HAL::pb_bXtd[2][16] [static]
 

Definition at line 76 of file target_extension_can_simulating.cc.

uint8_t __HAL::pOpen[2][16] [static]
 

Definition at line 67 of file target_extension_can_simulating.cc.

tReceive __HAL::pRead[2][16] [static]
 

Definition at line 65 of file target_extension_can_simulating.cc.

uint8_t __HAL::pSendOpen[2][16] [static]
 

Definition at line 68 of file target_extension_can_simulating.cc.

const uchar* __HAL::puc_endPuffer = &(__HAL::serial.rx.ascii.data[SD_MAX_ASCII_CHARS]) [static]
 

Definition at line 83 of file hal_rs232_interface.cc.

uchar* __HAL::puc_rs232BufferRead = (uchar*) puc_startPuffer [static]
 

Definition at line 86 of file hal_rs232_interface.cc.

Referenced by clearRs232RxBuffer(), init_rs232(), readDataFromRs232RingBuffer(), and writeDataToRs232RingBuffer().

uchar* __HAL::puc_rs232BufferWrite = (uchar*) puc_startPuffer [static]
 

Definition at line 85 of file hal_rs232_interface.cc.

Referenced by clearRs232RxBuffer(), init_rs232(), and writeDataToRs232RingBuffer().

const uchar* __HAL::puc_startPuffer = __HAL::serial.rx.ascii.data [static]
 

include the BIOS specific header with the part for RS232 into __HAL

Definition at line 82 of file hal_rs232_interface.cc.

can_data * __HAL::rec_buf [static]
 

Definition at line 104 of file target_extension_can_w32_vector_xl.cc.

int16_t __HAL::rec_bufCnt [static]
 

Definition at line 105 of file target_extension_can_w32_vector_xl.cc.

uint32_t __HAL::rec_bufFilter [static]
 

Definition at line 110 of file target_extension_can_w32_vector_xl.cc.

int16_t __HAL::rec_bufIn [static]
 

Definition at line 108 of file target_extension_can_w32_vector_xl.cc.

int16_t __HAL::rec_bufOut [static]
 

Definition at line 107 of file target_extension_can_w32_vector_xl.cc.

int16_t __HAL::rec_bufSize [static]
 

Definition at line 106 of file target_extension_can_w32_vector_xl.cc.

bool __HAL::rec_bufXtd [static]
 

Definition at line 109 of file target_extension_can_w32_vector_xl.cc.

can_c* __HAL::rteCan_c[4] = {NULL, NULL, NULL, NULL} [static]
 

Definition at line 83 of file target_extension_can_rte.cc.

Referenced by can_startDriver(), can_stopDriver(), checkMsg(), init_can(), and sendCanMsg().

rtd_can_bus_state_t __HAL::rteCanBusState[4] [static]
 

Initial value:

  {rtd_can_bus_state_active, rtd_can_bus_state_active,
  rtd_can_bus_state_active, rtd_can_bus_state_active }

Definition at line 84 of file target_extension_can_rte.cc.

Referenced by getCanBusStatus(), and setBusState().

uint16_t __HAL::sui16_wdtin = 1 [static]
 

Definition at line 119 of file system_target_extensions.cc.

Referenced by wdTriggern().

uint16_t __HAL::sui16_wdtrel = 0 [static]
 

static var for WDTREL ( high byte of WDTCON ) == reload value for watchdog counter

Definition at line 118 of file system_target_extensions.cc.

Referenced by wdTriggern().

uint32_t __HAL::sui32_detectStart = 0x1234 [static]
 

Definition at line 79 of file system_target_extensions.cc.

tSystem __HAL::t_biosextSysdata [static]
 

Initial value:

  {0,0,0,0,0,0,0,
    {0,0,0,0,0,0,0,0},
    {0,0,0,0,0,0,0,0},
  0,0,0,0,0}
initialise static tSystem to complete zero, so that a call of open_system can be reliable detected

Definition at line 933 of file system_target_extensions.cc.

tCanBusStatus __HAL::t_cinterfCanState [static]
 

include the BIOS specific header with the part for CAN into __HAL

Definition at line 939 of file hal_can_interface.cc.

tCanObjConfig __HAL::t_cinterfMsgobjConfig [static]
 

Definition at line 941 of file hal_can_interface.cc.

tReceive __HAL::t_cinterfMsgobjReceive [static]
 

Definition at line 943 of file hal_can_interface.cc.

tSend __HAL::t_cinterfMsgobjSend [static]
 

Definition at line 942 of file hal_can_interface.cc.

tCanObjStatus __HAL::t_cinterfMsgobjState [static]
 

Definition at line 940 of file hal_can_interface.cc.

HANDLE __HAL::threadHandle
 

handle for threading

Definition at line 129 of file target_extension_can_w32_vector_canlib.cc.

DWORD __HAL::threadId = 0
 

Definition at line 130 of file target_extension_can_w32_vector_canlib.cc.

uint16_t __HAL::ui16_globalMask [static]
 

Definition at line 113 of file target_extension_can_w32_vector_xl.cc.

uint16_t __HAL::ui16_sendPause
 

Definition at line 74 of file target_extension_can_simulating.cc.

uint32_t __HAL::ui32_globalMask [static]
 

Definition at line 114 of file target_extension_can_w32_vector_xl.cc.

uint8_t __HAL::ui8_cinterfLastSendBufCnt [static]
 

Definition at line 950 of file hal_can_interface.cc.


Generated on Wed Oct 13 15:16:35 2004 for IsoAgLib by  doxygen 1.3.8-20040913