ErsStart - Startup Error reporting system.

Function

Startup Error reporting system.

Description

Startup the Error reporting system. Calls may be made to the other Ers routines without calling this routine, but if this is done, then messages reported with ErsRep are written directly to the user standard Error output, not stored.

Language

C

Call

(ErsTaskIdType) = ErsStart (outRoutine, outArg, logRoutine, logArg, status)

Parameters

(">" input, "!" modified, "W" workspace, "<" output)

>outRoutineErsOutRoutineTypeIf non zero, this routine will be called to output any messages output by ErsFlush.
>outArgvoid *Passed directly to outRoutine as its first argument and not examined by Ers.
>logRoutineErsLogRoutineTypeIf non zero, this routine will be called to log any messages reported by ErsRep.
>logArgvoid *Passed directly to logRoutine as its first argument and not examined by Ers.
!statusStatusType *Modified status. routine returns immediately if non-zero. If Ers is already active, it is set to ERS__ACTIVE. An error allocating space for the table will set status to ERS__MALLOCERR. Under VxWorks, an error setting up a task varable will cause it to be set to ERS__TASKVARERR.

Include files

Ers.h

Function Value

A value which can be passed to ErsEnableTask from an interrupt handler.

External functions used

mallocCrtl Allocate memory.
taskVarAddCrtl Add a task variable. none

External values used

none

Prior requirements

none

Support

Tony Farrell, AAO

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tjf@aaoepp.aao.gov.au