Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
csr_framework_ext.h File Reference
#include "csr_result.h"
#include "csr_framework_ext_types.h"

Go to the source code of this file.

Macros

#define CSR_FE_RESULT_NO_MORE_EVENTS   ((CsrResult) 0x0001)
 
#define CSR_FE_RESULT_INVALID_POINTER   ((CsrResult) 0x0002)
 
#define CSR_FE_RESULT_INVALID_HANDLE   ((CsrResult) 0x0003)
 
#define CSR_FE_RESULT_NO_MORE_MUTEXES   ((CsrResult) 0x0004)
 
#define CSR_FE_RESULT_TIMEOUT   ((CsrResult) 0x0005)
 
#define CSR_FE_RESULT_NO_MORE_THREADS   ((CsrResult) 0x0006)
 
#define CSR_THREAD_PRIORITY_HIGHEST   ((u16) 0)
 
#define CSR_THREAD_PRIORITY_HIGH   ((u16) 1)
 
#define CSR_THREAD_PRIORITY_NORMAL   ((u16) 2)
 
#define CSR_THREAD_PRIORITY_LOW   ((u16) 3)
 
#define CSR_THREAD_PRIORITY_LOWEST   ((u16) 4)
 
#define CSR_EVENT_WAIT_INFINITE   ((u16) 0xFFFF)
 

Functions

CsrResult CsrEventCreate (CsrEventHandle *eventHandle)
 
CsrResult CsrEventWait (CsrEventHandle *eventHandle, u16 timeoutInMs, u32 *eventBits)
 
CsrResult CsrEventSet (CsrEventHandle *eventHandle, u32 eventBits)
 
void CsrEventDestroy (CsrEventHandle *eventHandle)
 
CsrResult CsrMutexCreate (CsrMutexHandle *mutexHandle)
 
CsrResult CsrMutexLock (CsrMutexHandle *mutexHandle)
 
CsrResult CsrMutexUnlock (CsrMutexHandle *mutexHandle)
 
void CsrMutexDestroy (CsrMutexHandle *mutexHandle)
 
void CsrGlobalMutexLock (void)
 
void CsrGlobalMutexUnlock (void)
 
CsrResult CsrThreadCreate (void(*threadFunction)(void *pointer), void *pointer, u32 stackSize, u16 priority, const char *threadName, CsrThreadHandle *threadHandle)
 
CsrResult CsrThreadGetHandle (CsrThreadHandle *threadHandle)
 
CsrResult CsrThreadEqual (CsrThreadHandle *threadHandle1, CsrThreadHandle *threadHandle2)
 
void CsrThreadSleep (u16 sleepTimeInMs)
 

Macro Definition Documentation

#define CSR_EVENT_WAIT_INFINITE   ((u16) 0xFFFF)

Definition at line 35 of file csr_framework_ext.h.

#define CSR_FE_RESULT_INVALID_HANDLE   ((CsrResult) 0x0003)

Definition at line 23 of file csr_framework_ext.h.

#define CSR_FE_RESULT_INVALID_POINTER   ((CsrResult) 0x0002)

Definition at line 22 of file csr_framework_ext.h.

#define CSR_FE_RESULT_NO_MORE_EVENTS   ((CsrResult) 0x0001)

Definition at line 21 of file csr_framework_ext.h.

#define CSR_FE_RESULT_NO_MORE_MUTEXES   ((CsrResult) 0x0004)

Definition at line 24 of file csr_framework_ext.h.

#define CSR_FE_RESULT_NO_MORE_THREADS   ((CsrResult) 0x0006)

Definition at line 26 of file csr_framework_ext.h.

#define CSR_FE_RESULT_TIMEOUT   ((CsrResult) 0x0005)

Definition at line 25 of file csr_framework_ext.h.

#define CSR_THREAD_PRIORITY_HIGH   ((u16) 1)

Definition at line 30 of file csr_framework_ext.h.

#define CSR_THREAD_PRIORITY_HIGHEST   ((u16) 0)

Definition at line 29 of file csr_framework_ext.h.

#define CSR_THREAD_PRIORITY_LOW   ((u16) 3)

Definition at line 32 of file csr_framework_ext.h.

#define CSR_THREAD_PRIORITY_LOWEST   ((u16) 4)

Definition at line 33 of file csr_framework_ext.h.

#define CSR_THREAD_PRIORITY_NORMAL   ((u16) 2)

Definition at line 31 of file csr_framework_ext.h.

Function Documentation

CsrResult CsrEventCreate ( CsrEventHandle eventHandle)
void CsrEventDestroy ( CsrEventHandle eventHandle)
CsrResult CsrEventSet ( CsrEventHandle eventHandle,
u32  eventBits 
)
CsrResult CsrEventWait ( CsrEventHandle eventHandle,
u16  timeoutInMs,
u32 eventBits 
)
void CsrGlobalMutexLock ( void  )
void CsrGlobalMutexUnlock ( void  )
CsrResult CsrMutexCreate ( CsrMutexHandle mutexHandle)

Definition at line 37 of file csr_framework_ext.c.

void CsrMutexDestroy ( CsrMutexHandle mutexHandle)

Definition at line 60 of file csr_framework_ext.c.

CsrResult CsrMutexLock ( CsrMutexHandle mutexHandle)

Definition at line 77 of file csr_framework_ext.c.

CsrResult CsrMutexUnlock ( CsrMutexHandle mutexHandle)

Definition at line 106 of file csr_framework_ext.c.

CsrResult CsrThreadCreate ( void(*)(void *pointer threadFunction,
void pointer,
u32  stackSize,
u16  priority,
const char threadName,
CsrThreadHandle threadHandle 
)
CsrResult CsrThreadEqual ( CsrThreadHandle threadHandle1,
CsrThreadHandle threadHandle2 
)
CsrResult CsrThreadGetHandle ( CsrThreadHandle threadHandle)
void CsrThreadSleep ( u16  sleepTimeInMs)

Definition at line 129 of file csr_framework_ext.c.