- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# pos_nano.h File Reference

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

Go to the source code of this file.

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

## Typedef Documentation

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

  | Bottom half function pointer. Parameters:
  | arg | Optional argument that was set when the bottom half was registered with nosBottomHalfRegister.
  | bh | Number of the bottom half (0 .. NOS_MAX_BOTTOMHALFS - 1)