GeMRTOS
Related Functions
Event Class Reference

Related Functions

(Note that these are not member functions.)

Friends And Related Function Documentation

◆ gk_ECB_GetFree()

GS_ECB* gk_ECB_GetFree ( void  )
related

Returns a pointer to a Free ECB, NULL if there is not ECB available.

gk_ECB_GetFree

Returns
pointer to a Free ECB, NULL if there is not ECB available
Todo:
System signal should be implmented when no free ECB is available

TCBs linked list for debugging

Definition at line 107 of file gemrtos_core.c.

◆ gk_ECB_List_Unlink()

INT32 gk_ECB_List_Unlink ( GS_ECB pevent)
related

Unlinks all the structures linked to a ECB.

gk_ECB_List_Unlink

Parameters
[in]peventPointer to the ECB
Returns
G_TRUE
Todo:
Verify when a resource is unlinked (semaphore and queue message)

GS_ECB Event Control Block structure typedef struct gs_ecb {

} GS_ECB;

Definition at line 248 of file listfunctions.c.

◆ gk_ECB_Unlink()

INT32 gk_ECB_Unlink ( GS_ECB pecb)
related

Unlinks the ECB according to the list it is linked.

gk_ECB_Unlink

Parameters
[in]pecbPointer to the ECB
Returns
G_TRUE when successful, G_FALSE otherwise
Todo:

Check if it useful, otherwise delete the function

Implement G_FALSE when no linked

!!! Poner resource

Definition at line 2583 of file listfunctions.c.

◆ gk_ECBAEL_Remove()

INT32 gk_ECBAEL_Remove ( GS_ECB pevent)
related

Unlinks the pevent from the associated ECB list.

gk_ECBAEL_Remove

Parameters
[in]peventpointer to ECB of the event
Returns
G_TRUE if event was linked to a Associated list, G_FALSE otherwise

Definition at line 102 of file listfunctions.c.

◆ gk_ECBASL_GetSCB()

GS_SCB* gk_ECBASL_GetSCB ( GS_ECB pecb,
INT32  SignalType 
)
related

Returns a pointer to the GS_SCB in the associated GS_SCBs of an event or NULL if any.

gk_ECBASL_GetSCB

Parameters
[in]pecbPointer to the ECB
[in]SignalTypeSignal type to search
Returns
Returns a pointer to the GS_SCB in the associated GS_SCBs of a event or NULL if any
See also
Signal

Definition at line 2740 of file listfunctions.c.

◆ gk_ECBASL_Unlink()

INT32 gk_ECBASL_Unlink ( GS_ECB pevent,
GS_SCB psignal 
)
related

Unlinks a signal SCB from the ECB Associated Signal List of and event.

gk_ECBASL_Unlink

Parameters
[in]peventPointer to the ECB of the event
[in]psignalPointer to the SCB of the signal
Returns
G_TRUE if successful, G_FALSE if signal is not associated with event
See also
Signal

Definition at line 203 of file listfunctions.c.

◆ gk_ECBFL_Link()

INT32 gk_ECBFL_Link ( GS_ECB pevent)
related

Link ECB to Free List. Removes the signals from ECB.

gk_ECBFL_Link

Parameters
[in]peventPointer to the ECB to link
Returns
G_TRUE

TCBs linked list for debugging

Definition at line 324 of file listfunctions.c.

◆ gk_ECBTL_Link()

INT32 gk_ECBTL_Link ( GS_ECB pevent)
related

Links the ECB from the Time Event List.

gk_ECBTL_Link

Parameters
[in]peventPointer to the ECB of the event
Returns
G_TRUE if successfull, G_FALSE otherwise
Todo:
Check if time is a valid time

Definition at line 355 of file listfunctions.c.

◆ gk_ECBTL_Unlink()

INT32 gk_ECBTL_Unlink ( GS_ECB pevent)
related

Unlinks the ECB from the Time Event List.

gk_ECBTL_Unlink

Parameters
[in]peventPointer to the ECB of the event to unlink
Returns
G_TRUE if successful, G_FALSE if was not a time event

When starts: pevent->ECBState = GS_ECBState_WAITING_TIME When finishes: pevent->ECBState = GS_ECBState_UNLINKED

Todo:
Implement G_FALSE when no a time event

Definition at line 405 of file listfunctions.c.

◆ gk_RCBGEL_Unlink()

void gk_RCBGEL_Unlink ( GS_ECB pevent)
related

Unlinks ECB from RCB granted list.

gk_RCBGEL_Unlink

Parameters
[in]peventPointer to the ECB ef the event

Definition at line 1012 of file listfunctions.c.

◆ gk_RCBWEL_Unlink()

void gk_RCBWEL_Unlink ( GS_ECB pevent)
related

Unlinks ECB from RCB waiting list.

gk_RCBWEL_Unlink

Parameters
[in]peventPointer to the ECB of the event

When starts:

  • pevent->ECBState != GS_ECBState_UNLINKED When finishes:
  • pevent->ECBState = GS_ECBState_UNLINKED

Definition at line 1135 of file listfunctions.c.

◆ gk_TCBAEL_Unlink()

INT32 gk_TCBAEL_Unlink ( GS_ECB pevent)
related

Unlinks the ECB from the associated TCB.

gk_TCBAEL_Unlink

Parameters
[in]peventPonter to the ECB
Returns
G_TRUE if successful, G_FALSE otherwise
See also
Task

Definition at line 1310 of file listfunctions.c.

◆ OPTIMEZE_CODE()

OPTIMEZE_CODE ( )
related

Definition at line 32 of file listfunctions.c.


The documentation for this class was generated from the following files: