pico]OS  1.0.4
Macros | Typedefs | Enumerations | Functions
pos_nano.h File Reference

pico]OS nano layer main include file More...

Go to the source code of this file.

Macros

#define nosBottomHalfUnregister(number)   nosBottomHalfRegister(number, NULL, NULL)

Typedefs

typedef void(* NOSBHFUNC_t )(void *arg, UVAR_t bh)
typedef void * NOSGENERICHANDLE_t
typedef void * NOSREGQHANDLE_t
typedef POSTASK_t NOSTASK_t
typedef POSIDLEFUNC_t NOSIDLEFUNC_t
typedef POSSEMA_t NOSSEMA_t
typedef POSMUTEX_t NOSMUTEX_t
typedef POSFLAG_t NOSFLAG_t
typedef POSTIMER_t NOSTIMER_t

Enumerations

enum  NOSREGTYPE_t {
  REGTYPE_TASK = 0, REGTYPE_SEMAPHORE, REGTYPE_MUTEX, REGTYPE_FLAG,
  REGTYPE_TIMER, REGTYPE_USER, REGTYPE_SEARCHALL
}

Functions

NANOEXT void *POSCALL nosMemAlloc (UINT_t size)
NANOEXT void POSCALL nosMemFree (void *p)
NANOEXT void POSCALL * nosMemRealloc (void *memblock, UINT_t size)
NANOEXT void POSCALL nosMemSet (void *buf, char val, UINT_t count)
NANOEXT void POSCALL nosMemCopy (void *dst, void *src, UINT_t count)
NANOEXT void POSCALL c_nos_keyinput (UVAR_t key)
NANOEXT char POSCALL nosKeyGet (void)
NANOEXT UVAR_t POSCALL nosKeyPressed (void)
NANOEXT UVAR_t POSCALL p_putchar (char c)
NANOEXT void POSCALL c_nos_putcharReady (void)
NANOEXT void POSCALL nosPrintChar (char c)
NANOEXT void POSCALL nosPrint (const char *s)
NANOEXT void POSCALL nosPrintf1 (const char *fmt, arg a1)
NANOEXT void POSCALL nosSPrintf1 (char *buf, const char *fmt, arg a1)
NANOEXT VAR_t POSCALL nosBottomHalfRegister (UVAR_t number, NOSBHFUNC_t func, void *arg)
NANOEXT void POSCALL nosBottomHalfStart (UVAR_t number)
NANOEXT NOSGENERICHANDLE_t POSCALL nosGetHandleByName (NOSREGTYPE_t objtype, const char *objname)
NANOEXT VAR_t POSCALL nosGetNameByHandle (NOSGENERICHANDLE_t handle, char *buffer, VAR_t bufsize, NOSREGTYPE_t what)
NANOEXT VAR_t POSCALL nosRegSet (const char *keyname, KEYVALUE_t keyvalue)
NANOEXT VAR_t POSCALL nosRegGet (const char *keyname, KEYVALUE_t *keyvalue)
NANOEXT VAR_t POSCALL nosRegDel (const char *keyname)
NANOEXT NOSREGQHANDLE_t POSCALL nosRegQueryBegin (NOSREGTYPE_t type)
NANOEXT VAR_t POSCALL nosRegQueryElem (NOSREGQHANDLE_t qh, NOSGENERICHANDLE_t *genh, char *namebuf, VAR_t bufsize)
NANOEXT void POSCALL nosRegQueryEnd (NOSREGQHANDLE_t qh)
UVAR_t POSCALL nosCpuUsage (void)
NANOEXT NOSTASK_t POSCALL nosTaskCreate (POSTASKFUNC_t funcptr, void *funcarg, VAR_t priority, UINT_t stacksize, const char *name)
NANOEXT void POSCALL nosTaskYield (void)
NANOEXT void POSCALL nosTaskSleep (UINT_t ticks)
NANOEXT void POSCALL nosTaskExit (void)
NANOEXT NOSTASK_t POSCALL nosTaskGetCurrent (void)
NANOEXT VAR_t POSCALL nosTaskUnused (NOSTASK_t taskhandle)
NANOEXT VAR_t POSCALL nosTaskSetPriority (NOSTASK_t taskhandle, VAR_t priority)
NANOEXT VAR_t POSCALL nosTaskGetPriority (NOSTASK_t taskhandle)
NANOEXT void POSCALL nosTaskSchedLock (void)
NANOEXT void POSCALL nosTaskSchedUnlock (void)
NANOEXT void *POSCALL nosTaskGetUserspace (void)
NANOEXT NOSIDLEFUNC_t POSCALL nosInstallIdleTaskHook (NOSIDLEFUNC_t idlefunc)
NANOEXT NOSSEMA_t POSCALL nosSemaCreate (INT_t initcount, UVAR_t options, const char *name)
NANOEXT void POSCALL nosSemaDestroy (NOSSEMA_t sema)
NANOEXT VAR_t POSCALL nosSemaSignal (NOSSEMA_t sema)
NANOEXT VAR_t POSCALL nosSemaGet (NOSSEMA_t sema)
NANOEXT VAR_t POSCALL nosSemaWait (NOSSEMA_t sema, UINT_t timeoutticks)
NANOEXT NOSMUTEX_t POSCALL nosMutexCreate (UVAR_t options, const char *name)
NANOEXT void POSCALL nosMutexDestroy (NOSMUTEX_t mutex)
NANOEXT VAR_t POSCALL nosMutexTryLock (NOSMUTEX_t mutex)
NANOEXT VAR_t POSCALL nosMutexLock (NOSMUTEX_t mutex)
NANOEXT VAR_t POSCALL nosMutexUnlock (NOSMUTEX_t mutex)
NANOEXT void *POSCALL nosMessageAlloc (UINT_t msgSize)
NANOEXT void POSCALL nosMessageFree (void *buf)
NANOEXT VAR_t POSCALL nosMessageSend (void *buf, NOSTASK_t taskhandle)
NANOEXT void *POSCALL nosMessageGet (void)
NANOEXT void *POSCALL nosMessageWait (UINT_t timeoutticks)
NANOEXT VAR_t POSCALL nosMessageAvailable (void)
NANOEXT NOSFLAG_t POSCALL nosFlagCreate (const char *name)
NANOEXT void POSCALL nosFlagDestroy (NOSFLAG_t flg)
NANOEXT VAR_t POSCALL nosFlagSet (NOSFLAG_t flg, UVAR_t flgnum)
NANOEXT VAR_t POSCALL nosFlagGet (NOSFLAG_t flg, UVAR_t mode)
NANOEXT VAR_t POSCALL nosFlagWait (NOSFLAG_t flg, UINT_t timeoutticks)
NANOEXT NOSTIMER_t POSCALL nosTimerCreate (const char *name)
NANOEXT VAR_t POSCALL nosTimerSet (NOSTIMER_t tmr, NOSSEMA_t sema, UINT_t waitticks, UINT_t periodticks)
NANOEXT VAR_t POSCALL nosTimerStart (NOSTIMER_t tmr)
NANOEXT VAR_t POSCALL nosTimerStop (NOSTIMER_t tmr)
NANOEXT void POSCALL nosTimerDestroy (NOSTIMER_t tmr)
NANOEXT VAR_t POSCALL nosTimerFired (NOSTIMER_t tmr)
NANOEXT void POSCALL nosInit (POSTASKFUNC_t firstfunc, void *funcarg, VAR_t priority, UINT_t taskStackSize, UINT_t idleStackSize)

Detailed Description

pico]OS nano layer main include file

Author:
Dennis Kuschel

This file is originally from the pico]OS realtime operating system (http://picoos.sourceforge.net).

CVS-ID

Id:
pos_nano.h,v 1.8 2006/10/16 19:42:41 dkuschel Exp

Typedef Documentation

typedef void(* NOSBHFUNC_t)(void *arg, UVAR_t bh)

Bottom half function pointer.

Parameters:
argOptional argument that was set when the bottom half was registered with nosBottomHalfRegister.
bhNumber of the bottom half (0 .. NOS_MAX_BOTTOMHALFS - 1)