Defines |
#define | FAPEX_SYS_OK 0 |
#define | FAPEX_SYS_NG 1 |
#define | FAPEX_SYS_RTOS_OK 1 |
#define | FAPEX_SYS_RTOS_NG 0 |
#define | FAPEX_SYS_THREAD_DMSG(fmt,...) |
#define | FAPEX_SYS_TC_ST_NO_INIT 0 |
#define | FAPEX_SYS_TC_ST_INIT 1 |
#define | FAPEX_SYS_MAILBOX_DMSG(fmt,...) |
#define | FAPEX_SYS_MBOX_USE 1 |
#define | FAPEX_SYS_MBOX_NOUSE 2 |
#define | FAPEX_SYS_MAILBOX_TYPE_POINTER 'P' |
#define | FAPEX_SYS_MAILBOX_TYPE_BUFFER 'B' |
#define | FAPEX_SYS_MAILBOX_DESC_NOWAIT 1 |
#define | FAPEX_SYS_MAILBOX_TIMEOUT 2 |
#define | FAPEX_SYS_MAILBOX_NO_DATA 3 |
#define | FAPEX_SYS_MAILBOX_ERROR 4 |
#define | FAPEX_SYS_TIME_WAIT_UNIT 1 |
#define | FAPEX_SYS_MBOX_LIST_MAX 256 |
#define | FAPEX_SYS_TIME_TRUE 1 |
#define | FAPEX_SYS_TIME_FALSE 2 |
#define | FAPEX_SYS_PRIORITY_ADJUST_CEILING 1 |
#define | FAPEX_SYS_PRIORITY_ADJUST_RESET 0 |
#define | FAPEX_SYS_SET_NULL_VALUE =0 |
#define | FAPEX_SYS_EVENT_NAME_SIZE 8 |
#define | FAPEX_SYS_EVENT_TABLE_SIZE 256 |
| number of event table entries
|
#define | FAPEX_SYS_MAX_MAILQUEUE_ENTRIES 4096 |
#define | FAPEX_SYS_EVENT_TYPE_UNDEFINED 0x00000000UL |
#define | FAPEX_SYS_THREAD_STATE_EVENT_WAIT 0x00000040UL |
#define | FAPEX_SYS_EVENT_TYPE_MAILQUEUE 0x00000044UL |
#define | FAPEX_SYS_THREAD_STATE_DESTROY_WAIT 0x00000080UL |
#define | FAPEX_SYS_ERR_BASE -100000 |
#define | FAPEX_SYS_ERR_INVALID_HANDLE FAPEX_SYS_ERR_BASE-104 |
| Bad handle passed.
|
#define | FAPEX_SYS_ERR_INVALID_PARAMETER FAPEX_SYS_ERR_BASE-105 |
| Bad parameter passed.
|
#define | FAPEX_SYS_ERR_TIMEOUT FAPEX_SYS_ERR_BASE-106 |
| operation timed out
|
#define | FAPEX_SYS_ERR_OUT_OF_MEMORY FAPEX_SYS_ERR_BASE-107 |
| Memory allocation failed.
|
#define | FAPEX_SYS_ERR_NOT_ALLOWED FAPEX_SYS_ERR_BASE-108 |
| Not allowed in interrupt context.
|
#define | FAPEX_SYS_ERR_HANDLE_DESTROYED FAPEX_SYS_ERR_BASE-109 |
| Handle destroyed in the meantime.
|
#define | FAPEX_SYS_FILE_DMSG(fmt,...) |
Typedefs |
typedef struct timeval | FAPEX_SYS_TIME_T |
typedef fapex_sys_thread_listT | FAPEX_SYS_ThreadInfoT |
Functions |
int32_t | FAPEX_SYS_SelectGetSize (uint32_t mode) |
| Get select status memory size.
|
int32_t | FAPEX_SYS_SelectInit (FAPEX_SYS_SelectParamStrT *psel, void *pbase, uint32_t mode) |
| Initialize select.
|
int32_t | FAPEX_SYS_SelectSetID (FAPEX_SYS_SelectParamStrT *psel, int32_t id, uint32_t mode) |
| Set select status.
|
int32_t | FAPEX_SYS_SelectClearID (FAPEX_SYS_SelectParamStrT *psel, int32_t id, uint32_t mode) |
| Clear select status.
|
int32_t | FAPEX_SYS_SelectSetParam (FAPEX_SYS_SelectParamStrT *psel, int32_t maxid, FAPEX_SYS_TIMEVAL_T *pTimeout) |
| set parameter to a select structure.
|
int32_t | FAPEX_SYS_SelectCall (FAPEX_SYS_SelectParamStrT *psel) |
| Call select. This function allows a program to monitor multiple file descriptors, waiting until one or more of the file descriptors become "ready" for some class of I/O operation.
|
int32_t | FAPEX_SYS_SelectCheck (FAPEX_SYS_SelectParamStrT *psel, int32_t id, uint32_t mode) |
| Check select. This function checks whether data of this id is readable/writeable/exceptional.
|
FAPEX_SYS_SemaphoreT | FAPEX_SYS_CreateSemaphore (uint32_t value) |
| Create a semaphore.
|
int32_t | FAPEX_SYS_DestroySemaphore (FAPEX_SYS_SemaphoreT sem) |
| Destroy a semaphore.
|
int32_t | FAPEX_SYS_GetSemaphore (FAPEX_SYS_SemaphoreT sem, int32_t timeout) |
| Get a semaphore.
|
int32_t | FAPEX_SYS_SetSemaphore (FAPEX_SYS_SemaphoreT sem, int32_t timeout) |
| Set a semaphore.
|
FAPEX_SYS_ThreadT | FAPEX_SYS_CreateThread (uint32_t *stackBuffer, uint32_t stackSize, uint32_t priority, FAPEX_SYS_ThreadFunctionT function, void *optArg, void *optData, const char_t *optName) |
| Create a new thread.
|
uint32_t | FAPEX_SYS_DestroyThread (FAPEX_SYS_ThreadT threadHandle) |
| Destroy the current thread.
|
FAPEX_SYS_ThreadT | FAPEX_SYS_GetThread (void) |
| Get the thread handle of the current thread.
|
uint32_t | FAPEX_SYS_GetThreadState (FAPEX_SYS_ThreadT threadHandle) |
| Get current state of the given thread handle.
|
const char_t * | FAPEX_SYS_GetThreadName (FAPEX_SYS_ThreadT threadHandle) |
| Get the thread name of the given thread handle.
|
uint32_t | FAPEX_SYS_SuspendThread (FAPEX_SYS_ThreadT threadHandle) |
| Suspends the given thread.
|
uint32_t | FAPEX_SYS_WakeupThread (FAPEX_SYS_ThreadT threadHandle) |
| Wake up a suspended thread.
|
int32_t | FAPEX_SYS_WaitEndThread (FAPEX_SYS_ThreadT threadHandle) |
| wait for termination of another thread
|
void | FAPEX_SYS_WaitEndAllThread () |
void | FAPEX_SYS_InitServices (void) |
void | FAPEX_SYS_ExitApplication (int32_t status) |
const char_t * | FAPEX_SYS_GetIdentity (void) |
void | FAPEX_SYS_StartMultitasking (void) |
void | FAPEX_SYS_StartPrintThread (void) |
void | FAPEX_SYS_StopPrintThread (void) |
int32_t | FAPEX_SYS_GetLastError (void) |
| Retrieve the last error code of the current thread.
|
uint32_t | FAPEX_SYS_CriticalSection_Init (void) |
uint32_t | FAPEX_SYS_EnterCriticalSection (void) |
void | FAPEX_SYS_LeaveCriticalSection (uint32_t cpuStatus) |
FAPEX_SYS_MailboxT | FAPEX_SYS_CreateMailbox (uint32_t messageBytes) |
uint32_t | FAPEX_SYS_DestroyMailbox (FAPEX_SYS_MailboxT mailboxHandle) |
uint32_t | FAPEX_SYS_SetMailbox (FAPEX_SYS_MailboxT mailboxHandle, void *messagePtr, uint32_t msecsTimeout) |
uint32_t | FAPEX_SYS_GetMailbox (FAPEX_SYS_MailboxT mailboxHandle, void *resultBuffer, uint32_t msecsTimeout) |
FAPEX_SYS_MailqueueT | FAPEX_SYS_CreateMailqueue (uint32_t queueElements, uint32_t elementBytes) |
| Create a new mailqueue event structure.
|
uint32_t | FAPEX_SYS_DestroyMailqueue (FAPEX_SYS_MailqueueT mailqueuePtr) |
| Destroy a mailqueue event structure.
|
uint32_t | FAPEX_SYS_GetMailqueue (FAPEX_SYS_MailqueueT mailqueueHandle, void *resultBuffer, uint32_t msecsTimeout) |
| Get a mailqueue message.
|
uint32_t | FAPEX_SYS_SetMailqueue (FAPEX_SYS_MailqueueT mailqueueHandle, void *messagePtr, uint32_t toFront, uint32_t msecsTimeout) |
| Send a message to a mailqueue.
|
int32_t | FAPEX_SYS_FFindFirst (const char *filename, FAPEX_SYS_FFindStrT *find) |
| Find first file or subdirectory in a specified directory.
|
int32_t | FAPEX_SYS_FFindNext (FAPEX_SYS_FFindStrT *find) |
| Finds the next file or subdirectory in a specified directory after a previous call to FAPEX_SYS_FFindFirst or FAPEX_SYS_FFindNext.
|
long | FAPEX_SYS_FFileLength (const char *filename) |
int32_t | FAPEX_SYS_KEYIN (char_t *keycode, int32_t *length) |
uint32_t | FAPEX_SYS_CalculateCrc32 (const uint8_t *dataPtr, const uint32_t dataLength, const uint32_t *const crcTable) |
| Calculate CRC32 checksum for a given data array.
|
uint64_t | FAPEX_TIMER_GetTimeStamp (uint32_t resolution) |
| Retrievs the current counter of a given timer.
|
Variables |
uint32_t fapex_sys_IsrActive | FAPEX_SYS_SET_NULL_VALUE |
These function is executed in user space.
Copyright (C) 2008-2010 Fujitsu Semiconductor Limited, All Rights Reserved.