---
# System prepended metadata

title: 20 - 24 April 2020
tags: [Study Note]

---

# 20 - 24 April 2020
###### tags: `Study Note`

## Daily Report 20 April 2020
- Create the [How to use Doxygen in Windows](/t1GXc_hCQFiQscTdTtB9JQ)
- Update the Doxyfile (minimal version, omit the graphs) 

## Daily Report 23 April 2020

typedef S16  (*ActvTsk) ARGS((Pst *pst, Buffer *mBuf));
this is how ActvTsk defined.

![](https://i.imgur.com/vdZrgxW.png)

## Daily Report 24 April 2020
Still trying to uderstand the SRegTTSK
```
   /*  We fill up the current available slot with all the
    *  information we've been given. Update table information,
    *  and the task is registered.
    */
   tTsk = &osCp.tTskTbl[osCp.nxtTTskEntry];
   tTsk->used     = TRUE;
   /* ss029.103: addition: procId added */
   #ifdef SS_MULTIPLE_PROCS
   tTsk->proc     = proc;
   #endif /* SS_MULTIPLE_PROCS */
   tTsk->ent      = ent;
   tTsk->inst     = inst;
   tTsk->tskType  = type;
   tTsk->tskPrior = prior;
   tTsk->initTsk  = initTsk;
   tTsk->actvTsk  = actvTsk;
   tTsk->sTsk     = NULLP;
```

tTsk data type is SsTTskEntry

```
/* individual entry in the table of TAPA tasks */
typedef struct ssTTskEntry
{
   SsdTTskEntry dep;                    /* implementation specific */


   Bool         used;                   /* entry is used? */
/* ss029.103: addition: procId added */
#ifdef SS_MULTIPLE_PROCS
   ProcId       proc;                   /* task processor ID */
#endif /* SS_MULTIPLE_PROCS */
   Ent          ent;                    /* task entity ID */
   Inst         inst;                   /* task instance ID */
   Ttype        tskType;                /* normal/permanent/driver */
   Prior        tskPrior;               /* priority of task */
   PAIFS16      initTsk;                /* initialization function */
   ActvTsk      actvTsk;                /* activation function */

   SsSTskEntry  *sTsk;                  /* system task */


   SsIdx        nxt;                    /* table implementation */
/* ss029.103: addition: TAPA task control block (user level) added */
#ifdef SS_MULTIPLE_PROCS
   Void         *xxCb;                  /* protocol control block */
#endif /* SS_MULTIPLE_PROCS */

/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
   Bool         hstReg;
#endif /* SS_HISTOGRAM_SUPPORT */

/* ss001.301: additions */
/* ss002.301: Modifications */
#ifdef SS_THREAD_PROFILE
   Bool        updated;
   Event       curEvent;
   U32         curEvtTime;
   U64         totTime;
#endif /* SS_THREAD_PROFILE */
	/* ss02.301 */
	ActvTsk     cbTsk; /* call back function pointer */

} SsTTskEntry;

```

**The ActvTsk called by using pointer, not easy to understand**
--> need another way to understand the system works :cry: 

Upload the new doxygen file to the gerrit.
![](https://i.imgur.com/spZ88fY.png)
