S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
p_sopc_utils.h File Reference
#include "sopc_enums.h"
#include "FreeRTOS.h"
#include "semphr.h"
#include "task.h"

Go to the source code of this file.

Data Structures

struct  T_TASK_LIST_ELT
 
struct  T_TASK_LIST
 

Macros

#define MAX_P_UTILS_LIST   (16)
 

Typedefs

typedef struct T_TASK_LIST_ELT tUtilsListElt
 
typedef struct T_TASK_LIST tUtilsList
 

Functions

uint16_t P_UTILS_LIST_GetEltIndex (tUtilsList *ptr, TaskHandle_t taskNotified, uint32_t infos1, uint32_t infos2)
 
uint16_t P_UTILS_LIST_GetNbEltMT (tUtilsList *ptr)
 
SOPC_ReturnStatus P_UTILS_LIST_AddElt (tUtilsList *ptr, TaskHandle_t handleTask, void *pContext, uint32_t infos1, uint32_t infos2)
 
TaskHandle_t P_UTILS_LIST_ParseValueElt (tUtilsList *ptr, uint32_t *pOutValue, uint32_t *pOutValue2, void **ppOutContext, uint16_t *pCurrentSlotId)
 Enumerate and parse elements of the list.
 
void * P_UTILS_LIST_ParseContextElt (tUtilsList *ptr, uint16_t *pCurrentSlotId)
 
uint16_t P_UTILS_LIST_RemoveElt (tUtilsList *pv, TaskHandle_t taskNotified, uint32_t infos1, uint32_t infos2, uint16_t *pOutNextOQPSlot)
 
void P_UTILS_LIST_DeInit (tUtilsList *ptr)
 
SOPC_ReturnStatus P_UTILS_LIST_Init (tUtilsList *ptr, uint16_t wMaxRDV)
 
uint16_t P_UTILS_LIST_GetEltIndexMT (tUtilsList *ptr, TaskHandle_t taskNotified, uint32_t infos1, uint32_t infos2)
 
void * P_UTILS_LIST_GetContextFromHandleMT (tUtilsList *ptr, TaskHandle_t taskNotified, uint32_t infos1, uint32_t infos2)
 
TaskHandle_t P_UTILS_LIST_ParseValueEltMT (tUtilsList *ptr, uint32_t *pOutValue, uint32_t *pOutValue2, void **ppOutContext, uint16_t *pCurrentSlotId)
 
SOPC_ReturnStatus P_UTILS_LIST_AddEltMT (tUtilsList *ptr, TaskHandle_t handleTask, void *pContext, uint32_t infos, uint32_t info2)
 
void * P_UTILS_LIST_ParseContextEltMT (tUtilsList *ptr, uint16_t *pCurrentSlotId)
 
uint16_t P_UTILS_LIST_RemoveEltMT (tUtilsList *pv, TaskHandle_t taskNotified, uint32_t infos1, uint32_t infos2, uint16_t *pOutNextOQPSlot)
 
void P_UTILS_LIST_DeInitMT (tUtilsList *ptr)
 
SOPC_ReturnStatus P_UTILS_LIST_InitMT (tUtilsList *ptr, uint16_t wMaxRDV)
 

Macro Definition Documentation

◆ MAX_P_UTILS_LIST

#define MAX_P_UTILS_LIST   (16)

Typedef Documentation

◆ tUtilsListElt

◆ tUtilsList

typedef struct T_TASK_LIST tUtilsList

Function Documentation

◆ P_UTILS_LIST_GetEltIndex()

uint16_t P_UTILS_LIST_GetEltIndex ( tUtilsList * ptr,
TaskHandle_t taskNotified,
uint32_t infos1,
uint32_t infos2 )

◆ P_UTILS_LIST_GetNbEltMT()

uint16_t P_UTILS_LIST_GetNbEltMT ( tUtilsList * ptr)

◆ P_UTILS_LIST_AddElt()

SOPC_ReturnStatus P_UTILS_LIST_AddElt ( tUtilsList * ptr,
TaskHandle_t handleTask,
void * pContext,
uint32_t infos1,
uint32_t infos2 )

◆ P_UTILS_LIST_ParseValueElt()

TaskHandle_t P_UTILS_LIST_ParseValueElt ( tUtilsList * ptr,
uint32_t * pOutValue,
uint32_t * pOutValue2,
void ** ppOutContext,
uint16_t * pCurrentSlotId )

Enumerate and parse elements of the list.

Continue the enumeration from pCurrentSlotId and updates it to the index of the next non empty element. pCurrentSlotId can be set to UINT16_MAX to initiate the enumerator. Returns NULL and sets pCurrentSlotId to UINT16_MAX when enumeration is finished.

◆ P_UTILS_LIST_ParseContextElt()

void * P_UTILS_LIST_ParseContextElt ( tUtilsList * ptr,
uint16_t * pCurrentSlotId )

◆ P_UTILS_LIST_RemoveElt()

uint16_t P_UTILS_LIST_RemoveElt ( tUtilsList * pv,
TaskHandle_t taskNotified,
uint32_t infos1,
uint32_t infos2,
uint16_t * pOutNextOQPSlot )

◆ P_UTILS_LIST_DeInit()

void P_UTILS_LIST_DeInit ( tUtilsList * ptr)

◆ P_UTILS_LIST_Init()

SOPC_ReturnStatus P_UTILS_LIST_Init ( tUtilsList * ptr,
uint16_t wMaxRDV )

◆ P_UTILS_LIST_GetEltIndexMT()

uint16_t P_UTILS_LIST_GetEltIndexMT ( tUtilsList * ptr,
TaskHandle_t taskNotified,
uint32_t infos1,
uint32_t infos2 )

◆ P_UTILS_LIST_GetContextFromHandleMT()

void * P_UTILS_LIST_GetContextFromHandleMT ( tUtilsList * ptr,
TaskHandle_t taskNotified,
uint32_t infos1,
uint32_t infos2 )

◆ P_UTILS_LIST_ParseValueEltMT()

TaskHandle_t P_UTILS_LIST_ParseValueEltMT ( tUtilsList * ptr,
uint32_t * pOutValue,
uint32_t * pOutValue2,
void ** ppOutContext,
uint16_t * pCurrentSlotId )

◆ P_UTILS_LIST_AddEltMT()

SOPC_ReturnStatus P_UTILS_LIST_AddEltMT ( tUtilsList * ptr,
TaskHandle_t handleTask,
void * pContext,
uint32_t infos,
uint32_t info2 )

◆ P_UTILS_LIST_ParseContextEltMT()

void * P_UTILS_LIST_ParseContextEltMT ( tUtilsList * ptr,
uint16_t * pCurrentSlotId )

◆ P_UTILS_LIST_RemoveEltMT()

uint16_t P_UTILS_LIST_RemoveEltMT ( tUtilsList * pv,
TaskHandle_t taskNotified,
uint32_t infos1,
uint32_t infos2,
uint16_t * pOutNextOQPSlot )

◆ P_UTILS_LIST_DeInitMT()

void P_UTILS_LIST_DeInitMT ( tUtilsList * ptr)

◆ P_UTILS_LIST_InitMT()

SOPC_ReturnStatus P_UTILS_LIST_InitMT ( tUtilsList * ptr,
uint16_t wMaxRDV )