SWILIB API (ELKA)    
Loading...
Searching...
No Matches
nucleus.h File Reference
#include "base.h"

Go to the source code of this file.

Data Structures

struct  NU_TASK_STRUCT
 
struct  NU_MAILBOX_STRUCT
 
struct  NU_QUEUE_STRUCT
 
struct  NU_PIPE_STRUCT
 
struct  NU_SEMAPHORE_STRUCT
 
struct  NU_EVENT_GROUP_STRUCT
 
struct  NU_PARTITION_POOL_STRUCT
 
struct  NU_MEMORY_POOL_STRUCT
 
struct  NU_HISR_STRUCT
 
struct  NU_PROTECT_STRUCT
 
struct  NU_TIMER_STRUCT
 
struct  NU_INITIALIZE_STRUCT
 
struct  NU_ASSIGN_STRUCT
 
struct  NU_RELEASE_STRUCT
 
struct  NU_INPUT_STRUCT
 
struct  NU_OUTPUT_STRUCT
 
struct  NU_STATUS_STRUCT
 
struct  NU_TERMINATE_STRUCT
 
union  NU_REQUEST_INFO_UNION
 
struct  NU_DRIVER_REQUEST_STRUCT
 
struct  NU_DRIVER_STRUCT
 

Macros

#define NU_SWILIB_BEGIN_NUMBER   0x300
 
#define VOID   void
 
#define NU_MIN_STACK_SIZE   240
 
#define NU_MAX_NAME   8
 
#define NU_MAX_VECTORS   64
 
#define NU_MAX_LISRS   8
 
#define NU_TASK_SIZE   42 + 4
 
#define NU_HISR_SIZE   22 + 4
 
#define NU_MAILBOX_SIZE   13 + 4
 
#define NU_QUEUE_SIZE   18 + 50
 
#define NU_PIPE_SIZE   18 + 4
 
#define NU_SEMAPHORE_SIZE   10 + 4
 
#define NU_EVENT_GROUP_SIZE   9 + 4
 
#define NU_PARTITION_POOL_SIZE   15 + 4
 
#define NU_MEMORY_POOL_SIZE   17 + 4
 
#define NU_TIMER_SIZE   17 + 4
 
#define NU_PROTECT_SIZE   2 + 4
 
#define NU_DRIVER_SIZE   3 + 4
 
#define NU_DRIVER_SUSPEND   10
 
#define NU_EVENT_SUSPEND   7
 
#define NU_FINISHED   11
 
#define NU_MAILBOX_SUSPEND   3
 
#define NU_MEMORY_SUSPEND   9
 
#define NU_PARTITION_SUSPEND   8
 
#define NU_PIPE_SUSPEND   5
 
#define NU_PURE_SUSPEND   1
 
#define NU_QUEUE_SUSPEND   4
 
#define NU_READY   0
 
#define NU_SEMAPHORE_SUSPEND   6
 
#define NU_SLEEP_SUSPEND   2
 
#define NU_TERMINATED   12
 
#define NU_AND   2
 
#define NU_AND_CONSUME   3
 
#define NU_DISABLE_TIMER   4
 
#define NU_ENABLE_TIMER   5
 
#define NU_FALSE   0
 
#define NU_FIFO   6
 
#define NU_FIXED_SIZE   7
 
#define NU_NO_PREEMPT   8
 
#define NU_NO_START   9
 
#define NU_NO_SUSPEND   0
 
#define NU_NULL   0
 
#define NU_OR   0
 
#define NU_OR_CONSUME   1
 
#define NU_PREEMPT   10
 
#define NU_PRIORITY   11
 
#define NU_START   12
 
#define NU_SUSPEND   0xFFFFFFFFUL
 
#define NU_TRUE   1
 
#define NU_VARIABLE_SIZE   13
 
#define NU_SUCCESS   0
 
#define NU_END_OF_LOG   -1
 
#define NU_GROUP_DELETED   -2
 
#define NU_INVALID_DELETE   -3
 
#define NU_INVALID_DRIVER   -4
 
#define NU_INVALID_ENABLE   -5
 
#define NU_INVALID_ENTRY   -6
 
#define NU_INVALID_FUNCTION   -7
 
#define NU_INVALID_GROUP   -8
 
#define NU_INVALID_HISR   -9
 
#define NU_INVALID_MAILBOX   -10
 
#define NU_INVALID_MEMORY   -11
 
#define NU_INVALID_MESSAGE   -12
 
#define NU_INVALID_OPERATION   -13
 
#define NU_INVALID_PIPE   -14
 
#define NU_INVALID_POINTER   -15
 
#define NU_INVALID_POOL   -16
 
#define NU_INVALID_PREEMPT   -17
 
#define NU_INVALID_PRIORITY   -18
 
#define NU_INVALID_QUEUE   -19
 
#define NU_INVALID_RESUME   -20
 
#define NU_INVALID_SEMAPHORE   -21
 
#define NU_INVALID_SIZE   -22
 
#define NU_INVALID_START   -23
 
#define NU_INVALID_SUSPEND   -24
 
#define NU_INVALID_TASK   -25
 
#define NU_INVALID_TIMER   -26
 
#define NU_INVALID_VECTOR   -27
 
#define NU_MAILBOX_DELETED   -28
 
#define NU_MAILBOX_EMPTY   -29
 
#define NU_MAILBOX_FULL   -30
 
#define NU_MAILBOX_RESET   -31
 
#define NU_NO_MEMORY   -32
 
#define NU_NO_MORE_LISRS   -33
 
#define NU_NO_PARTITION   -34
 
#define NU_NOT_DISABLED   -35
 
#define NU_NOT_PRESENT   -36
 
#define NU_NOT_REGISTERED   -37
 
#define NU_NOT_TERMINATED   -38
 
#define NU_PIPE_DELETED   -39
 
#define NU_PIPE_EMPTY   -40
 
#define NU_PIPE_FULL   -41
 
#define NU_PIPE_RESET   -42
 
#define NU_POOL_DELETED   -43
 
#define NU_QUEUE_DELETED   -44
 
#define NU_QUEUE_EMPTY   -45
 
#define NU_QUEUE_FULL   -46
 
#define NU_QUEUE_RESET   -47
 
#define NU_SEMAPHORE_DELETED   -48
 
#define NU_SEMAPHORE_RESET   -49
 
#define NU_TIMEOUT   -50
 
#define NU_UNAVAILABLE   -51
 
#define NU_INVALID_DESCRIPTION   -52
 
#define NU_INVALID_REGION   -53
 
#define NU_MEMORY_CORRUPT   -54
 
#define NU_INVALID_DEBUG_ALLOCATION   -55
 
#define NU_EMPTY_DEBUG_ALLOCATION_LIST   -56
 
#define NU_ERROR_CREATING_TIMER_HISR   1
 
#define NU_ERROR_CREATING_TIMER_TASK   2
 
#define NU_STACK_OVERFLOW   3
 
#define NU_UNHANDLED_INTERRUPT   4
 
#define NU_IO_ERROR   -1
 
#define NU_INITIALIZE   1
 
#define NU_ASSIGN   2
 
#define NU_RELEASE   3
 
#define NU_INPUT   4
 
#define NU_OUTPUT   5
 
#define NU_STATUS   6
 
#define NU_TERMINATE   7
 
#define NU_USER_ID   1
 
#define NU_CREATE_TASK_ID   2
 
#define NU_DELETE_TASK_ID   3
 
#define NU_RESET_TASK_ID   4
 
#define NU_TERMINATE_TASK_ID   5
 
#define NU_RESUME_TASK_ID   6
 
#define NU_SUSPEND_TASK_ID   7
 
#define NU_RELINQUISH_ID   8
 
#define NU_SLEEP_ID   9
 
#define NU_CHANGE_PRIORITY_ID   10
 
#define NU_CHANGE_PREEMPTION_ID   11
 
#define NU_CREATE_MAILBOX_ID   12
 
#define NU_DELETE_MAILBOX_ID   13
 
#define NU_RESET_MAILBOX_ID   14
 
#define NU_SEND_TO_MAILBOX_ID   15
 
#define NU_BROADCAST_TO_MAILBOX_ID   16
 
#define NU_RECEIVE_FROM_MAILBOX_ID   17
 
#define NU_CREATE_QUEUE_ID   18
 
#define NU_DELETE_QUEUE_ID   19
 
#define NU_RESET_QUEUE_ID   20
 
#define NU_SEND_TO_FRONT_OF_QUEUE_ID   21
 
#define NU_SEND_TO_QUEUE_ID   22
 
#define NU_BROADCAST_TO_QUEUE_ID   23
 
#define NU_RECEIVE_FROM_QUEUE_ID   24
 
#define NU_CREATE_PIPE_ID   25
 
#define NU_DELETE_PIPE_ID   26
 
#define NU_RESET_PIPE_ID   27
 
#define NU_SEND_TO_FRONT_OF_PIPE_ID   28
 
#define NU_SEND_TO_PIPE_ID   29
 
#define NU_BROADCAST_TO_PIPE_ID   30
 
#define NU_RECEIVE_FROM_PIPE_ID   31
 
#define NU_CREATE_SEMAPHORE_ID   32
 
#define NU_DELETE_SEMAPHORE_ID   33
 
#define NU_RESET_SEMAPHORE_ID   34
 
#define NU_OBTAIN_SEMAPHORE_ID   35
 
#define NU_RELEASE_SEMAPHORE_ID   36
 
#define NU_CREATE_EVENT_GROUP_ID   37
 
#define NU_DELETE_EVENT_GROUP_ID   38
 
#define NU_SET_EVENTS_ID   39
 
#define NU_RETRIEVE_EVENTS_ID   40
 
#define NU_CREATE_PARTITION_POOL_ID   41
 
#define NU_DELETE_PARTITION_POOL_ID   42
 
#define NU_ALLOCATE_PARTITION_ID   43
 
#define NU_DEALLOCATE_PARTITION_ID   44
 
#define NU_CREATE_MEMORY_POOL_ID   45
 
#define NU_DELETE_MEMORY_POOL_ID   46
 
#define NU_ALLOCATE_MEMORY_ID   47
 
#define NU_DEALLOCATE_MEMORY_ID   48
 
#define NU_CONTROL_SIGNALS_ID   49
 
#define NU_RECEIVE_SIGNALS_ID   50
 
#define NU_REGISTER_SIGNAL_HANDLER_ID   51
 
#define NU_SEND_SIGNALS_ID   52
 
#define NU_REGISTER_LISR_ID   53
 
#define NU_CREATE_HISR_ID   54
 
#define NU_DELETE_HISR_ID   55
 
#define NU_CREATE_TIMER_ID   56
 
#define NU_DELETE_TIMER_ID   57
 
#define NU_CONTROL_TIMER_ID   58
 
#define NU_RESET_TIMER_ID   59
 
#define NU_CREATE_DRIVER_ID   60
 
#define NU_DELETE_DRIVER_ID   61
 
#define NU_REQUEST_DRIVER_ID   62
 
#define NU_RESUME_DRIVER_ID   63
 
#define NU_SUSPEND_DRIVER_ID   64
 
#define NU_CHANGE_TIME_SLICE_ID   65
 
#define NU_ASSERT_ID   66
 
#define NU_ALLOCATE_ALIGNED_ID   67
 

Typedefs

typedef unsigned long UNSIGNED
 
typedef long SIGNED
 
typedef unsigned char DATA_ELEMENT
 
typedef DATA_ELEMENT OPTION
 
typedef int STATUS
 
typedef unsigned char UNSIGNED_CHAR
 
typedef char CHAR
 
typedef int INT
 
typedef unsigned long * UNSIGNED_PTR
 
typedef unsigned char * BYTE_PTR
 
typedef DATA_ELEMENT BOOLEAN
 
typedef unsigned int UNSIGNED_INT
 
typedef struct NU_TASK_STRUCT NU_TASK
 
typedef struct NU_MAILBOX_STRUCT NU_MAILBOX
 
typedef struct NU_QUEUE_STRUCT NU_QUEUE
 
typedef struct NU_PIPE_STRUCT NU_PIPE
 
typedef struct NU_SEMAPHORE_STRUCT NU_SEMAPHORE
 
typedef struct NU_EVENT_GROUP_STRUCT NU_EVENT_GROUP
 
typedef struct NU_PARTITION_POOL_STRUCT NU_PARTITION_POOL
 
typedef struct NU_MEMORY_POOL_STRUCT NU_MEMORY_POOL
 
typedef struct NU_HISR_STRUCT NU_HISR
 
typedef struct NU_PROTECT_STRUCT NU_PROTECT
 
typedef struct NU_TIMER_STRUCT NU_TIMER
 
typedef union NU_REQUEST_INFO_UNION nu_request_info_union
 
typedef struct NU_DRIVER_REQUEST_STRUCT NU_DRIVER_REQUEST
 
typedef struct NU_DRIVER_STRUCT NU_DRIVER
 

Functions

Task control functions
int NU_Create_Task (NU_TASK *task, CHAR *name, void(*task_entry)(unsigned long, void *), unsigned long argc, void *argv, void *stack_address, unsigned long stack_size, OPTION priority, unsigned long time_slice, OPTION preempt, OPTION auto_start)
 
int NU_Delete_Task (NU_TASK *task)
 
int NU_Reset_Task (NU_TASK *task, unsigned long argc, void *argv)
 
int NU_Terminate_Task (NU_TASK *task)
 
int NU_Resume_Task (NU_TASK *task)
 
int NU_Suspend_Task (NU_TASK *task)
 
void NU_Relinquish (void)
 
void NU_Sleep (unsigned long ticks)
 
OPTION NU_Change_Priority (NU_TASK *task, OPTION new_priority)
 
OPTION NU_Change_Preemption (OPTION preempt)
 
unsigned long NU_Change_Time_Slice (NU_TASK *task, unsigned long time_slice)
 
unsigned long NU_Check_Stack (void)
 
NU_TASK * NU_Current_Task_Pointer (void)
 
unsigned long NU_Established_Tasks (void)
 
int NU_Task_Information (NU_TASK *task, CHAR *name, DATA_ELEMENT *status, unsigned long *scheduled_count, OPTION *priority, OPTION *preempt, unsigned long *time_slice, void **stack_base, unsigned long *stack_size, unsigned long *minimum_stack)
 
unsigned long NU_Task_Pointers (NU_TASK **pointer_list, unsigned long maximum_pointers)
 
Mailbox management functions
int NU_Create_Mailbox (NU_MAILBOX *mailbox, CHAR *name, OPTION suspend_type)
 
int NU_Delete_Mailbox (NU_MAILBOX *mailbox)
 
int NU_Reset_Mailbox (NU_MAILBOX *mailbox)
 
int NU_Send_To_Mailbox (NU_MAILBOX *mailbox, void *message, unsigned long suspend)
 
int NU_Broadcast_To_Mailbox (NU_MAILBOX *mailbox, void *message, unsigned long suspend)
 
int NU_Receive_From_Mailbox (NU_MAILBOX *mailbox, void *message, unsigned long suspend)
 
unsigned long NU_Established_Mailboxes (void)
 
int NU_Mailbox_Information (NU_MAILBOX *mailbox, CHAR *name, OPTION *suspend_type, OPTION *message_present, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Mailbox_Pointers (NU_MAILBOX **pointer_list, unsigned long maximum_pointers)
 
Queue management functions
int NU_Create_Queue (NU_QUEUE *queue, CHAR *name, void *start_address, unsigned long queue_size, OPTION message_type, unsigned long message_size, OPTION suspend_type)
 
int NU_Delete_Queue (NU_QUEUE *queue)
 
int NU_Reset_Queue (NU_QUEUE *queue)
 
int NU_Send_To_Front_Of_Queue (NU_QUEUE *queue, void *message, unsigned long size, unsigned long suspend)
 
int NU_Send_To_Queue (NU_QUEUE *queue, void *message, unsigned long size, unsigned long suspend)
 
int NU_Broadcast_To_Queue (NU_QUEUE *queue, void *message, unsigned long size, unsigned long suspend)
 
int NU_Receive_From_Queue (NU_QUEUE *queue, void *message, unsigned long size, unsigned long *actual_size, unsigned long suspend)
 
unsigned long NU_Established_Queues (void)
 
int NU_Queue_Information (NU_QUEUE *queue, CHAR *name, void **start_address, unsigned long *queue_size, unsigned long *available, unsigned long *messages, OPTION *message_type, unsigned long *message_size, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Queue_Pointers (NU_QUEUE **pointer_list, unsigned long maximum_pointers)
 
Pipe management functions
int NU_Create_Pipe (NU_PIPE *pipe, CHAR *name, void *start_address, unsigned long pipe_size, OPTION message_type, unsigned long message_size, OPTION suspend_type)
 
int NU_Delete_Pipe (NU_PIPE *pipe)
 
int NU_Reset_Pipe (NU_PIPE *pipe)
 
int NU_Send_To_Front_Of_Pipe (NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
 
int NU_Send_To_Pipe (NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
 
int NU_Broadcast_To_Pipe (NU_PIPE *pipe, void *message, unsigned long size, unsigned long suspend)
 
int NU_Receive_From_Pipe (NU_PIPE *pipe, void *message, unsigned long size, unsigned long *actual_size, unsigned long suspend)
 
unsigned long NU_Established_Pipes (void)
 
int NU_Pipe_Information (NU_PIPE *pipe, CHAR *name, void **start_address, unsigned long *pipe_size, unsigned long *available, unsigned long *messages, OPTION *message_type, unsigned long *message_size, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Pipe_Pointers (NU_PIPE **pointer_list, unsigned long maximum_pointers)
 
Define Semaphore management functions
int NU_Create_Semaphore (NU_SEMAPHORE *semaphore, CHAR *name, unsigned long initial_count, OPTION suspend_type)
 
int NU_Delete_Semaphore (NU_SEMAPHORE *semaphore)
 
int NU_Reset_Semaphore (NU_SEMAPHORE *semaphore, unsigned long initial_count)
 
int NU_Obtain_Semaphore (NU_SEMAPHORE *semaphore, unsigned long suspend)
 
int NU_Release_Semaphore (NU_SEMAPHORE *semaphore)
 
unsigned long NU_Established_Semaphores (void)
 
int NU_Semaphore_Information (NU_SEMAPHORE *semaphore, CHAR *name, unsigned long *current_count, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Semaphore_Pointers (NU_SEMAPHORE **pointer_list, unsigned long maximum_pointers)
 
Event Group management functions
int NU_Create_Event_Group (NU_EVENT_GROUP *group, CHAR *name)
 
int NU_Delete_Event_Group (NU_EVENT_GROUP *group)
 
int NU_Set_Events (NU_EVENT_GROUP *group, unsigned long events, OPTION operation)
 
int NU_Retrieve_Events (NU_EVENT_GROUP *group, unsigned long requested_flags, OPTION operation, unsigned long *retrieved_flags, unsigned long suspend)
 
unsigned long NU_Established_Event_Groups (void)
 
int NU_Event_Group_Information (NU_EVENT_GROUP *group, CHAR *name, unsigned long *event_flags, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Event_Group_Pointers (NU_EVENT_GROUP **pointer_list, unsigned long maximum_pointers)
 
Signal processing functions
unsigned long NU_Control_Signals (unsigned long signal_enable_mask)
 
unsigned long NU_Receive_Signals (void)
 
STATUS NU_Register_Signal_Handler (void(*signal_handler)(unsigned long))
 
STATUS NU_Send_Signals (NU_TASK *task, unsigned long signals)
 
Partition memory management functions
int NU_Create_Partition_Pool (NU_PARTITION_POOL *pool, CHAR *name, void *start_address, unsigned long pool_size, unsigned long partition_size, OPTION suspend_type)
 
int NU_Delete_Partition_Pool (NU_PARTITION_POOL *pool)
 
int NU_Allocate_Partition (NU_PARTITION_POOL *pool, void **return_pointer, unsigned long suspend)
 
int NU_Deallocate_Partition (void *partition)
 
unsigned long NU_Established_Partition_Pools (void)
 
int NU_Partition_Pool_Information (NU_PARTITION_POOL *pool, CHAR *name, void **start_address, unsigned long *pool_size, unsigned long *partition_size, unsigned long *available, unsigned long *allocated, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Partition_Pool_Pointers (NU_PARTITION_POOL **pointer_list, unsigned long maximum_pointers)
 
Dynamic memory management functions
int NU_Create_Memory_Pool (NU_MEMORY_POOL *pool, CHAR *name, void *start_address, unsigned long pool_size, unsigned long min_allocation, OPTION suspend_type)
 
int NU_Delete_Memory_Pool (NU_MEMORY_POOL *pool)
 
int NU_Allocate_Memory (NU_MEMORY_POOL *pool, void **return_pointer, unsigned long size, unsigned long suspend)
 
int NU_Deallocate_Memory (void *memory)
 
unsigned long NU_Established_Memory_Pools (void)
 
int NU_Memory_Pool_Information (NU_MEMORY_POOL *pool, CHAR *name, void **start_address, unsigned long *pool_size, unsigned long *min_allocation, unsigned long *available, OPTION *suspend_type, unsigned long *tasks_waiting, NU_TASK **first_task)
 
unsigned long NU_Memory_Pool_Pointers (NU_MEMORY_POOL **pointer_list, unsigned long maximum_pointers)
 
Interrupt management functions
int NU_Control_Interrupts (INT new_level)
 
int NU_Local_Control_Interrupts (INT new_level)
 
void NU_Restore_Interrupts (void)
 
void * NU_Setup_Vector (INT vector, void *new_vector)
 
int NU_Register_LISR (INT vector, void(*new_lisr)(INT), void(**old_lisr)(INT))
 
int NU_Activate_HISR (NU_HISR *hisr)
 
int NU_Create_HISR (NU_HISR *hisr, CHAR *name, void(*hisr_entry)(void), OPTION priority, void *stack_address, unsigned long stack_size)
 
int NU_Delete_HISR (NU_HISR *hisr)
 
NU_HISR * NU_Current_HISR_Pointer (void)
 
unsigned long NU_Established_HISRs (void)
 
int NU_HISR_Information (NU_HISR *hisr, CHAR *name, unsigned long *scheduled_count, DATA_ELEMENT *priority, void **stack_base, unsigned long *stack_size, unsigned long *minimum_stack)
 
unsigned long NU_HISR_Pointers (NU_HISR **pointer_list, unsigned long maximum_pointers)
 
void NU_Protect (NU_PROTECT *protect_struct)
 
void NU_Unprotect (void)
 
Timer management functions
int NU_Create_Timer (NU_TIMER *timer, CHAR *name, void(*expiration_routine)(unsigned long), unsigned long id, unsigned long initial_time, unsigned long reschedule_time, OPTION enable)
 
int NU_Delete_Timer (NU_TIMER *timer)
 
int NU_Reset_Timer (NU_TIMER *timer, void(*expiration_routine)(unsigned long), unsigned long initial_time, unsigned long reschedule_timer, OPTION enable)
 
int NU_Control_Timer (NU_TIMER *timer, OPTION enable)
 
unsigned long NU_Established_Timers (void)
 
int NU_Timer_Information (NU_TIMER *timer, CHAR *name, OPTION *enable, unsigned long *expirations, unsigned long *id, unsigned long *initial_time, unsigned long *reschedule_time)
 
unsigned long NU_Timer_Pointers (NU_TIMER **pointer_list, unsigned long maximum_pointers)
 
void NU_Set_Clock (unsigned long new_value)
 
unsigned long NU_Retrieve_Clock (void)
 
Development support functions
char * NU_Release_Information (void)
 
char * NU_License_Information (void)
 
History functions
Warning
These functions are not present in ELKA, NSG, X75, or SG firmware.
void NU_Disable_History_Saving (void)
 
void NU_Enable_History_Saving (void)
 
void NU_Make_History_Entry (unsigned long param1, unsigned long param2, unsigned long param3)
 
int NU_Retrieve_History_Entry (DATA_ELEMENT *id, unsigned long *param1, unsigned long *param2, unsigned long *param3, unsigned long *time, NU_TASK **task, NU_HISR **hisr)
 
Input/Output Driver functions
Warning
These functions are not present in ELKA, NSG, X75, or SG firmware.
int NU_Create_Driver (NU_DRIVER *driver, CHAR *name, void(*driver_entry)(NU_DRIVER *, NU_DRIVER_REQUEST *))
 
int NU_Delete_Driver (NU_DRIVER *driver)
 
int NU_Request_Driver (NU_DRIVER *driver, NU_DRIVER_REQUEST *request)
 
int NU_Resume_Driver (NU_TASK *task)
 
int NU_Suspend_Driver (void(*terminate_routine)(void *), void *information, unsigned long timeout)
 
unsigned long NU_Established_Drivers (void)
 
unsigned long NU_Driver_Pointers (NU_DRIVER **pointer_list, unsigned long maximum_pointers)
 

Supervisor and User mode functions

#define NU_SUPERVISOR_MODE()   NU_SUPERVISOR_MODE_P(*(void **)NU_SUPERV_USER_VARIABLES())
 
#define NU_USER_MODE()   NU_USER_MODE_P(*(void **)NU_SUPERV_USER_VARIABLES())
 
unsigned long NU_IS_SUPERVISOR_MODE (void)
 
void NU_SUPERVISOR_MODE_P (void *nu_svc_usr_var)
 
void NU_USER_MODE_P (void *nu_svc_usr_var)
 
void * NU_SUPERV_USER_VARIABLES (void)