S2OPC OPCUA Toolkit
Data Structures | Macros | Typedefs | Enumerations | Functions
p_sopc_synchronisation.h File Reference
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "sopc_enums.h"
#include "FreeRTOS.h"
#include "semphr.h"
#include "task.h"
#include "p_sopc_utils.h"

Go to the source code of this file.

Data Structures

struct  tConditionVariable
 

Macros

#define MAX_WAITERS   (MAX_P_UTILS_LIST)
 
#define JOINTURE_SIGNAL   (0x80000000)
 
#define JOINTURE_CLEAR_SIGNAL   (0x40000000)
 
#define APP_DEFAULT_SIGNAL   (0x20000000)
 
#define APP_CLEARING_SIGNAL   (0x10000000)
 

Typedefs

typedef enum T_CONDITION_VARIABLE_STATUS eConditionVariableStatus
 
typedef struct tConditionVariable SOPC_Condition
 
typedef QueueHandle_t SOPC_Mutex
 

Enumerations

enum  T_CONDITION_VARIABLE_STATUS { E_COND_VAR_STATUS_NOT_INITIALIZED, E_COND_VAR_STATUS_INITIALIZED, E_COND_VAR_STATUS_SIZEOF = INT32_MAX }
 

Functions

SOPC_ConditionP_SYNCHRO_CreateConditionVariable (uint16_t wMaxRDV)
 
void P_SYNCHRO_DestroyConditionVariable (SOPC_Condition **ppv)
 
SOPC_ReturnStatus P_SYNCHRO_InitConditionVariable (SOPC_Condition *pv, uint16_t wMaxWaiters)
 
SOPC_ReturnStatus P_SYNCHRO_ClearConditionVariable (SOPC_Condition *pv)
 
SOPC_ReturnStatus P_SYNCHRO_SignalAllConditionVariable (SOPC_Condition *pv)
 
SOPC_ReturnStatus P_SYNCHRO_SignalConditionVariable (SOPC_Condition *pConditionVariable, bool bSignalAll)
 
SOPC_ReturnStatus P_SYNCHRO_UnlockAndWaitForConditionVariable (SOPC_Condition *pv, QueueHandle_t *pMutex, uint32_t uwSignal, uint32_t uwClearSignal, uint32_t uwTimeOutMs)
 

Macro Definition Documentation

◆ MAX_WAITERS

#define MAX_WAITERS   (MAX_P_UTILS_LIST)

◆ JOINTURE_SIGNAL

#define JOINTURE_SIGNAL   (0x80000000)

◆ JOINTURE_CLEAR_SIGNAL

#define JOINTURE_CLEAR_SIGNAL   (0x40000000)

◆ APP_DEFAULT_SIGNAL

#define APP_DEFAULT_SIGNAL   (0x20000000)

◆ APP_CLEARING_SIGNAL

#define APP_CLEARING_SIGNAL   (0x10000000)

Typedef Documentation

◆ eConditionVariableStatus

◆ SOPC_Condition

◆ SOPC_Mutex

typedef QueueHandle_t SOPC_Mutex

Enumeration Type Documentation

◆ T_CONDITION_VARIABLE_STATUS

Enumerator
E_COND_VAR_STATUS_NOT_INITIALIZED 
E_COND_VAR_STATUS_INITIALIZED 
E_COND_VAR_STATUS_SIZEOF 

Function Documentation

◆ P_SYNCHRO_CreateConditionVariable()

SOPC_Condition* P_SYNCHRO_CreateConditionVariable ( uint16_t  wMaxRDV)

◆ P_SYNCHRO_DestroyConditionVariable()

void P_SYNCHRO_DestroyConditionVariable ( SOPC_Condition **  ppv)

◆ P_SYNCHRO_InitConditionVariable()

SOPC_ReturnStatus P_SYNCHRO_InitConditionVariable ( SOPC_Condition pv,
uint16_t  wMaxWaiters 
)

◆ P_SYNCHRO_ClearConditionVariable()

SOPC_ReturnStatus P_SYNCHRO_ClearConditionVariable ( SOPC_Condition pv)

◆ P_SYNCHRO_SignalAllConditionVariable()

SOPC_ReturnStatus P_SYNCHRO_SignalAllConditionVariable ( SOPC_Condition pv)

◆ P_SYNCHRO_SignalConditionVariable()

SOPC_ReturnStatus P_SYNCHRO_SignalConditionVariable ( SOPC_Condition pConditionVariable,
bool  bSignalAll 
)

◆ P_SYNCHRO_UnlockAndWaitForConditionVariable()

SOPC_ReturnStatus P_SYNCHRO_UnlockAndWaitForConditionVariable ( SOPC_Condition pv,
QueueHandle_t *  pMutex,
uint32_t  uwSignal,
uint32_t  uwClearSignal,
uint32_t  uwTimeOutMs 
)