SWILIB API (X75)    
Loading...
Searching...
No Matches
NUCLEUS

Detailed Description

Functions for working with Nucleus RTOS.

Usage: #include <swilib/nucleus.h> or #include <nu_swilib.h>

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
 

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

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)
 
#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())
 

Data Structure Documentation

◆ NU_TASK_STRUCT

struct NU_TASK_STRUCT

◆ NU_MAILBOX_STRUCT

struct NU_MAILBOX_STRUCT

◆ NU_QUEUE_STRUCT

struct NU_QUEUE_STRUCT

◆ NU_PIPE_STRUCT

struct NU_PIPE_STRUCT

◆ NU_SEMAPHORE_STRUCT

struct NU_SEMAPHORE_STRUCT

◆ NU_EVENT_GROUP_STRUCT

struct NU_EVENT_GROUP_STRUCT

◆ NU_PARTITION_POOL_STRUCT

struct NU_PARTITION_POOL_STRUCT

◆ NU_MEMORY_POOL_STRUCT

struct NU_MEMORY_POOL_STRUCT

◆ NU_HISR_STRUCT

struct NU_HISR_STRUCT

◆ NU_PROTECT_STRUCT

struct NU_PROTECT_STRUCT

◆ NU_TIMER_STRUCT

struct NU_TIMER_STRUCT

◆ NU_INITIALIZE_STRUCT

struct NU_INITIALIZE_STRUCT

◆ NU_ASSIGN_STRUCT

struct NU_ASSIGN_STRUCT

◆ NU_RELEASE_STRUCT

struct NU_RELEASE_STRUCT

◆ NU_INPUT_STRUCT

struct NU_INPUT_STRUCT

◆ NU_OUTPUT_STRUCT

struct NU_OUTPUT_STRUCT

◆ NU_STATUS_STRUCT

struct NU_STATUS_STRUCT

◆ NU_TERMINATE_STRUCT

struct NU_TERMINATE_STRUCT

◆ NU_REQUEST_INFO_UNION

union NU_REQUEST_INFO_UNION

◆ NU_DRIVER_REQUEST_STRUCT

struct NU_DRIVER_REQUEST_STRUCT

◆ NU_DRIVER_STRUCT

struct NU_DRIVER_STRUCT

Macro Definition Documentation

◆ NU_SWILIB_BEGIN_NUMBER

#define NU_SWILIB_BEGIN_NUMBER   0x300

Definition at line 17 of file nucleus.h.

◆ VOID

#define VOID   void

Definition at line 32 of file nucleus.h.

◆ NU_MIN_STACK_SIZE

#define NU_MIN_STACK_SIZE   240

Definition at line 37 of file nucleus.h.

◆ NU_MAX_NAME

#define NU_MAX_NAME   8

Definition at line 38 of file nucleus.h.

◆ NU_MAX_VECTORS

#define NU_MAX_VECTORS   64

Definition at line 39 of file nucleus.h.

◆ NU_MAX_LISRS

#define NU_MAX_LISRS   8

Definition at line 40 of file nucleus.h.

◆ NU_TASK_SIZE

#define NU_TASK_SIZE   42 + 4

Definition at line 43 of file nucleus.h.

◆ NU_HISR_SIZE

#define NU_HISR_SIZE   22 + 4

Definition at line 44 of file nucleus.h.

◆ NU_MAILBOX_SIZE

#define NU_MAILBOX_SIZE   13 + 4

Definition at line 45 of file nucleus.h.

◆ NU_QUEUE_SIZE

#define NU_QUEUE_SIZE   18 + 50

Definition at line 46 of file nucleus.h.

◆ NU_PIPE_SIZE

#define NU_PIPE_SIZE   18 + 4

Definition at line 47 of file nucleus.h.

◆ NU_SEMAPHORE_SIZE

#define NU_SEMAPHORE_SIZE   10 + 4

Definition at line 48 of file nucleus.h.

◆ NU_EVENT_GROUP_SIZE

#define NU_EVENT_GROUP_SIZE   9 + 4

Definition at line 49 of file nucleus.h.

◆ NU_PARTITION_POOL_SIZE

#define NU_PARTITION_POOL_SIZE   15 + 4

Definition at line 50 of file nucleus.h.

◆ NU_MEMORY_POOL_SIZE

#define NU_MEMORY_POOL_SIZE   17 + 4

Definition at line 51 of file nucleus.h.

◆ NU_TIMER_SIZE

#define NU_TIMER_SIZE   17 + 4

Definition at line 52 of file nucleus.h.

◆ NU_PROTECT_SIZE

#define NU_PROTECT_SIZE   2 + 4

Definition at line 53 of file nucleus.h.

◆ NU_DRIVER_SIZE

#define NU_DRIVER_SIZE   3 + 4

Definition at line 54 of file nucleus.h.

◆ NU_DRIVER_SUSPEND

#define NU_DRIVER_SUSPEND   10

Definition at line 172 of file nucleus.h.

◆ NU_EVENT_SUSPEND

#define NU_EVENT_SUSPEND   7

Definition at line 173 of file nucleus.h.

◆ NU_FINISHED

#define NU_FINISHED   11

Definition at line 174 of file nucleus.h.

◆ NU_MAILBOX_SUSPEND

#define NU_MAILBOX_SUSPEND   3

Definition at line 175 of file nucleus.h.

◆ NU_MEMORY_SUSPEND

#define NU_MEMORY_SUSPEND   9

Definition at line 176 of file nucleus.h.

◆ NU_PARTITION_SUSPEND

#define NU_PARTITION_SUSPEND   8

Definition at line 177 of file nucleus.h.

◆ NU_PIPE_SUSPEND

#define NU_PIPE_SUSPEND   5

Definition at line 178 of file nucleus.h.

◆ NU_PURE_SUSPEND

#define NU_PURE_SUSPEND   1

Definition at line 179 of file nucleus.h.

◆ NU_QUEUE_SUSPEND

#define NU_QUEUE_SUSPEND   4

Definition at line 180 of file nucleus.h.

◆ NU_READY

#define NU_READY   0

Definition at line 181 of file nucleus.h.

◆ NU_SEMAPHORE_SUSPEND

#define NU_SEMAPHORE_SUSPEND   6

Definition at line 182 of file nucleus.h.

◆ NU_SLEEP_SUSPEND

#define NU_SLEEP_SUSPEND   2

Definition at line 183 of file nucleus.h.

◆ NU_TERMINATED

#define NU_TERMINATED   12

Definition at line 184 of file nucleus.h.

◆ NU_AND

#define NU_AND   2

Definition at line 187 of file nucleus.h.

◆ NU_AND_CONSUME

#define NU_AND_CONSUME   3

Definition at line 188 of file nucleus.h.

◆ NU_DISABLE_TIMER

#define NU_DISABLE_TIMER   4

Definition at line 189 of file nucleus.h.

◆ NU_ENABLE_TIMER

#define NU_ENABLE_TIMER   5

Definition at line 190 of file nucleus.h.

◆ NU_FALSE

#define NU_FALSE   0

Definition at line 191 of file nucleus.h.

◆ NU_FIFO

#define NU_FIFO   6

Definition at line 192 of file nucleus.h.

◆ NU_FIXED_SIZE

#define NU_FIXED_SIZE   7

Definition at line 193 of file nucleus.h.

◆ NU_NO_PREEMPT

#define NU_NO_PREEMPT   8

Definition at line 194 of file nucleus.h.

◆ NU_NO_START

#define NU_NO_START   9

Definition at line 195 of file nucleus.h.

◆ NU_NO_SUSPEND

#define NU_NO_SUSPEND   0

Definition at line 196 of file nucleus.h.

◆ NU_NULL

#define NU_NULL   0

Definition at line 197 of file nucleus.h.

◆ NU_OR

#define NU_OR   0

Definition at line 198 of file nucleus.h.

◆ NU_OR_CONSUME

#define NU_OR_CONSUME   1

Definition at line 199 of file nucleus.h.

◆ NU_PREEMPT

#define NU_PREEMPT   10

Definition at line 200 of file nucleus.h.

◆ NU_PRIORITY

#define NU_PRIORITY   11

Definition at line 201 of file nucleus.h.

◆ NU_START

#define NU_START   12

Definition at line 202 of file nucleus.h.

◆ NU_SUSPEND

#define NU_SUSPEND   0xFFFFFFFFUL

Definition at line 203 of file nucleus.h.

◆ NU_TRUE

#define NU_TRUE   1

Definition at line 204 of file nucleus.h.

◆ NU_VARIABLE_SIZE

#define NU_VARIABLE_SIZE   13

Definition at line 205 of file nucleus.h.

◆ NU_SUCCESS

#define NU_SUCCESS   0

Definition at line 208 of file nucleus.h.

◆ NU_END_OF_LOG

#define NU_END_OF_LOG   -1

Definition at line 209 of file nucleus.h.

◆ NU_GROUP_DELETED

#define NU_GROUP_DELETED   -2

Definition at line 210 of file nucleus.h.

◆ NU_INVALID_DELETE

#define NU_INVALID_DELETE   -3

Definition at line 211 of file nucleus.h.

◆ NU_INVALID_DRIVER

#define NU_INVALID_DRIVER   -4

Definition at line 212 of file nucleus.h.

◆ NU_INVALID_ENABLE

#define NU_INVALID_ENABLE   -5

Definition at line 213 of file nucleus.h.

◆ NU_INVALID_ENTRY

#define NU_INVALID_ENTRY   -6

Definition at line 214 of file nucleus.h.

◆ NU_INVALID_FUNCTION

#define NU_INVALID_FUNCTION   -7

Definition at line 215 of file nucleus.h.

◆ NU_INVALID_GROUP

#define NU_INVALID_GROUP   -8

Definition at line 216 of file nucleus.h.

◆ NU_INVALID_HISR

#define NU_INVALID_HISR   -9

Definition at line 217 of file nucleus.h.

◆ NU_INVALID_MAILBOX

#define NU_INVALID_MAILBOX   -10

Definition at line 218 of file nucleus.h.

◆ NU_INVALID_MEMORY

#define NU_INVALID_MEMORY   -11

Definition at line 219 of file nucleus.h.

◆ NU_INVALID_MESSAGE

#define NU_INVALID_MESSAGE   -12

Definition at line 220 of file nucleus.h.

◆ NU_INVALID_OPERATION

#define NU_INVALID_OPERATION   -13

Definition at line 221 of file nucleus.h.

◆ NU_INVALID_PIPE

#define NU_INVALID_PIPE   -14

Definition at line 222 of file nucleus.h.

◆ NU_INVALID_POINTER

#define NU_INVALID_POINTER   -15

Definition at line 223 of file nucleus.h.

◆ NU_INVALID_POOL

#define NU_INVALID_POOL   -16

Definition at line 224 of file nucleus.h.

◆ NU_INVALID_PREEMPT

#define NU_INVALID_PREEMPT   -17

Definition at line 225 of file nucleus.h.

◆ NU_INVALID_PRIORITY

#define NU_INVALID_PRIORITY   -18

Definition at line 226 of file nucleus.h.

◆ NU_INVALID_QUEUE

#define NU_INVALID_QUEUE   -19

Definition at line 227 of file nucleus.h.

◆ NU_INVALID_RESUME

#define NU_INVALID_RESUME   -20

Definition at line 228 of file nucleus.h.

◆ NU_INVALID_SEMAPHORE

#define NU_INVALID_SEMAPHORE   -21

Definition at line 229 of file nucleus.h.

◆ NU_INVALID_SIZE

#define NU_INVALID_SIZE   -22

Definition at line 230 of file nucleus.h.

◆ NU_INVALID_START

#define NU_INVALID_START   -23

Definition at line 231 of file nucleus.h.

◆ NU_INVALID_SUSPEND

#define NU_INVALID_SUSPEND   -24

Definition at line 232 of file nucleus.h.

◆ NU_INVALID_TASK

#define NU_INVALID_TASK   -25

Definition at line 233 of file nucleus.h.

◆ NU_INVALID_TIMER

#define NU_INVALID_TIMER   -26

Definition at line 234 of file nucleus.h.

◆ NU_INVALID_VECTOR

#define NU_INVALID_VECTOR   -27

Definition at line 235 of file nucleus.h.

◆ NU_MAILBOX_DELETED

#define NU_MAILBOX_DELETED   -28

Definition at line 236 of file nucleus.h.

◆ NU_MAILBOX_EMPTY

#define NU_MAILBOX_EMPTY   -29

Definition at line 237 of file nucleus.h.

◆ NU_MAILBOX_FULL

#define NU_MAILBOX_FULL   -30

Definition at line 238 of file nucleus.h.

◆ NU_MAILBOX_RESET

#define NU_MAILBOX_RESET   -31

Definition at line 239 of file nucleus.h.

◆ NU_NO_MEMORY

#define NU_NO_MEMORY   -32

Definition at line 240 of file nucleus.h.

◆ NU_NO_MORE_LISRS

#define NU_NO_MORE_LISRS   -33

Definition at line 241 of file nucleus.h.

◆ NU_NO_PARTITION

#define NU_NO_PARTITION   -34

Definition at line 242 of file nucleus.h.

◆ NU_NOT_DISABLED

#define NU_NOT_DISABLED   -35

Definition at line 243 of file nucleus.h.

◆ NU_NOT_PRESENT

#define NU_NOT_PRESENT   -36

Definition at line 244 of file nucleus.h.

◆ NU_NOT_REGISTERED

#define NU_NOT_REGISTERED   -37

Definition at line 245 of file nucleus.h.

◆ NU_NOT_TERMINATED

#define NU_NOT_TERMINATED   -38

Definition at line 246 of file nucleus.h.

◆ NU_PIPE_DELETED

#define NU_PIPE_DELETED   -39

Definition at line 247 of file nucleus.h.

◆ NU_PIPE_EMPTY

#define NU_PIPE_EMPTY   -40

Definition at line 248 of file nucleus.h.

◆ NU_PIPE_FULL

#define NU_PIPE_FULL   -41

Definition at line 249 of file nucleus.h.

◆ NU_PIPE_RESET

#define NU_PIPE_RESET   -42

Definition at line 250 of file nucleus.h.

◆ NU_POOL_DELETED

#define NU_POOL_DELETED   -43

Definition at line 251 of file nucleus.h.

◆ NU_QUEUE_DELETED

#define NU_QUEUE_DELETED   -44

Definition at line 252 of file nucleus.h.

◆ NU_QUEUE_EMPTY

#define NU_QUEUE_EMPTY   -45

Definition at line 253 of file nucleus.h.

◆ NU_QUEUE_FULL

#define NU_QUEUE_FULL   -46

Definition at line 254 of file nucleus.h.

◆ NU_QUEUE_RESET

#define NU_QUEUE_RESET   -47

Definition at line 255 of file nucleus.h.

◆ NU_SEMAPHORE_DELETED

#define NU_SEMAPHORE_DELETED   -48

Definition at line 256 of file nucleus.h.

◆ NU_SEMAPHORE_RESET

#define NU_SEMAPHORE_RESET   -49

Definition at line 257 of file nucleus.h.

◆ NU_TIMEOUT

#define NU_TIMEOUT   -50

Definition at line 258 of file nucleus.h.

◆ NU_UNAVAILABLE

#define NU_UNAVAILABLE   -51

Definition at line 259 of file nucleus.h.

◆ NU_INVALID_DESCRIPTION

#define NU_INVALID_DESCRIPTION   -52

Definition at line 260 of file nucleus.h.

◆ NU_INVALID_REGION

#define NU_INVALID_REGION   -53

Definition at line 261 of file nucleus.h.

◆ NU_MEMORY_CORRUPT

#define NU_MEMORY_CORRUPT   -54

Definition at line 262 of file nucleus.h.

◆ NU_INVALID_DEBUG_ALLOCATION

#define NU_INVALID_DEBUG_ALLOCATION   -55

Definition at line 263 of file nucleus.h.

◆ NU_EMPTY_DEBUG_ALLOCATION_LIST

#define NU_EMPTY_DEBUG_ALLOCATION_LIST   -56

Definition at line 264 of file nucleus.h.

◆ NU_ERROR_CREATING_TIMER_HISR

#define NU_ERROR_CREATING_TIMER_HISR   1

Definition at line 267 of file nucleus.h.

◆ NU_ERROR_CREATING_TIMER_TASK

#define NU_ERROR_CREATING_TIMER_TASK   2

Definition at line 268 of file nucleus.h.

◆ NU_STACK_OVERFLOW

#define NU_STACK_OVERFLOW   3

Definition at line 269 of file nucleus.h.

◆ NU_UNHANDLED_INTERRUPT

#define NU_UNHANDLED_INTERRUPT   4

Definition at line 270 of file nucleus.h.

◆ NU_IO_ERROR

#define NU_IO_ERROR   -1

Definition at line 273 of file nucleus.h.

◆ NU_INITIALIZE

#define NU_INITIALIZE   1

Definition at line 274 of file nucleus.h.

◆ NU_ASSIGN

#define NU_ASSIGN   2

Definition at line 275 of file nucleus.h.

◆ NU_RELEASE

#define NU_RELEASE   3

Definition at line 276 of file nucleus.h.

◆ NU_INPUT

#define NU_INPUT   4

Definition at line 277 of file nucleus.h.

◆ NU_OUTPUT

#define NU_OUTPUT   5

Definition at line 278 of file nucleus.h.

◆ NU_STATUS

#define NU_STATUS   6

Definition at line 279 of file nucleus.h.

◆ NU_TERMINATE

#define NU_TERMINATE   7

Definition at line 280 of file nucleus.h.

◆ NU_USER_ID

#define NU_USER_ID   1

Definition at line 283 of file nucleus.h.

◆ NU_CREATE_TASK_ID

#define NU_CREATE_TASK_ID   2

Definition at line 284 of file nucleus.h.

◆ NU_DELETE_TASK_ID

#define NU_DELETE_TASK_ID   3

Definition at line 285 of file nucleus.h.

◆ NU_RESET_TASK_ID

#define NU_RESET_TASK_ID   4

Definition at line 286 of file nucleus.h.

◆ NU_TERMINATE_TASK_ID

#define NU_TERMINATE_TASK_ID   5

Definition at line 287 of file nucleus.h.

◆ NU_RESUME_TASK_ID

#define NU_RESUME_TASK_ID   6

Definition at line 288 of file nucleus.h.

◆ NU_SUSPEND_TASK_ID

#define NU_SUSPEND_TASK_ID   7

Definition at line 289 of file nucleus.h.

◆ NU_RELINQUISH_ID

#define NU_RELINQUISH_ID   8

Definition at line 290 of file nucleus.h.

◆ NU_SLEEP_ID

#define NU_SLEEP_ID   9

Definition at line 291 of file nucleus.h.

◆ NU_CHANGE_PRIORITY_ID

#define NU_CHANGE_PRIORITY_ID   10

Definition at line 292 of file nucleus.h.

◆ NU_CHANGE_PREEMPTION_ID

#define NU_CHANGE_PREEMPTION_ID   11

Definition at line 293 of file nucleus.h.

◆ NU_CREATE_MAILBOX_ID

#define NU_CREATE_MAILBOX_ID   12

Definition at line 294 of file nucleus.h.

◆ NU_DELETE_MAILBOX_ID

#define NU_DELETE_MAILBOX_ID   13

Definition at line 295 of file nucleus.h.

◆ NU_RESET_MAILBOX_ID

#define NU_RESET_MAILBOX_ID   14

Definition at line 296 of file nucleus.h.

◆ NU_SEND_TO_MAILBOX_ID

#define NU_SEND_TO_MAILBOX_ID   15

Definition at line 297 of file nucleus.h.

◆ NU_BROADCAST_TO_MAILBOX_ID

#define NU_BROADCAST_TO_MAILBOX_ID   16

Definition at line 298 of file nucleus.h.

◆ NU_RECEIVE_FROM_MAILBOX_ID

#define NU_RECEIVE_FROM_MAILBOX_ID   17

Definition at line 299 of file nucleus.h.

◆ NU_CREATE_QUEUE_ID

#define NU_CREATE_QUEUE_ID   18

Definition at line 300 of file nucleus.h.

◆ NU_DELETE_QUEUE_ID

#define NU_DELETE_QUEUE_ID   19

Definition at line 301 of file nucleus.h.

◆ NU_RESET_QUEUE_ID

#define NU_RESET_QUEUE_ID   20

Definition at line 302 of file nucleus.h.

◆ NU_SEND_TO_FRONT_OF_QUEUE_ID

#define NU_SEND_TO_FRONT_OF_QUEUE_ID   21

Definition at line 303 of file nucleus.h.

◆ NU_SEND_TO_QUEUE_ID

#define NU_SEND_TO_QUEUE_ID   22

Definition at line 304 of file nucleus.h.

◆ NU_BROADCAST_TO_QUEUE_ID

#define NU_BROADCAST_TO_QUEUE_ID   23

Definition at line 305 of file nucleus.h.

◆ NU_RECEIVE_FROM_QUEUE_ID

#define NU_RECEIVE_FROM_QUEUE_ID   24

Definition at line 306 of file nucleus.h.

◆ NU_CREATE_PIPE_ID

#define NU_CREATE_PIPE_ID   25

Definition at line 307 of file nucleus.h.

◆ NU_DELETE_PIPE_ID

#define NU_DELETE_PIPE_ID   26

Definition at line 308 of file nucleus.h.

◆ NU_RESET_PIPE_ID

#define NU_RESET_PIPE_ID   27

Definition at line 309 of file nucleus.h.

◆ NU_SEND_TO_FRONT_OF_PIPE_ID

#define NU_SEND_TO_FRONT_OF_PIPE_ID   28

Definition at line 310 of file nucleus.h.

◆ NU_SEND_TO_PIPE_ID

#define NU_SEND_TO_PIPE_ID   29

Definition at line 311 of file nucleus.h.

◆ NU_BROADCAST_TO_PIPE_ID

#define NU_BROADCAST_TO_PIPE_ID   30

Definition at line 312 of file nucleus.h.

◆ NU_RECEIVE_FROM_PIPE_ID

#define NU_RECEIVE_FROM_PIPE_ID   31

Definition at line 313 of file nucleus.h.

◆ NU_CREATE_SEMAPHORE_ID

#define NU_CREATE_SEMAPHORE_ID   32

Definition at line 314 of file nucleus.h.

◆ NU_DELETE_SEMAPHORE_ID

#define NU_DELETE_SEMAPHORE_ID   33

Definition at line 315 of file nucleus.h.

◆ NU_RESET_SEMAPHORE_ID

#define NU_RESET_SEMAPHORE_ID   34

Definition at line 316 of file nucleus.h.

◆ NU_OBTAIN_SEMAPHORE_ID

#define NU_OBTAIN_SEMAPHORE_ID   35

Definition at line 317 of file nucleus.h.

◆ NU_RELEASE_SEMAPHORE_ID

#define NU_RELEASE_SEMAPHORE_ID   36

Definition at line 318 of file nucleus.h.

◆ NU_CREATE_EVENT_GROUP_ID

#define NU_CREATE_EVENT_GROUP_ID   37

Definition at line 319 of file nucleus.h.

◆ NU_DELETE_EVENT_GROUP_ID

#define NU_DELETE_EVENT_GROUP_ID   38

Definition at line 320 of file nucleus.h.

◆ NU_SET_EVENTS_ID

#define NU_SET_EVENTS_ID   39

Definition at line 321 of file nucleus.h.

◆ NU_RETRIEVE_EVENTS_ID

#define NU_RETRIEVE_EVENTS_ID   40

Definition at line 322 of file nucleus.h.

◆ NU_CREATE_PARTITION_POOL_ID

#define NU_CREATE_PARTITION_POOL_ID   41

Definition at line 323 of file nucleus.h.

◆ NU_DELETE_PARTITION_POOL_ID

#define NU_DELETE_PARTITION_POOL_ID   42

Definition at line 324 of file nucleus.h.

◆ NU_ALLOCATE_PARTITION_ID

#define NU_ALLOCATE_PARTITION_ID   43

Definition at line 325 of file nucleus.h.

◆ NU_DEALLOCATE_PARTITION_ID

#define NU_DEALLOCATE_PARTITION_ID   44

Definition at line 326 of file nucleus.h.

◆ NU_CREATE_MEMORY_POOL_ID

#define NU_CREATE_MEMORY_POOL_ID   45

Definition at line 327 of file nucleus.h.

◆ NU_DELETE_MEMORY_POOL_ID

#define NU_DELETE_MEMORY_POOL_ID   46

Definition at line 328 of file nucleus.h.

◆ NU_ALLOCATE_MEMORY_ID

#define NU_ALLOCATE_MEMORY_ID   47

Definition at line 329 of file nucleus.h.

◆ NU_DEALLOCATE_MEMORY_ID

#define NU_DEALLOCATE_MEMORY_ID   48

Definition at line 330 of file nucleus.h.

◆ NU_CONTROL_SIGNALS_ID

#define NU_CONTROL_SIGNALS_ID   49

Definition at line 331 of file nucleus.h.

◆ NU_RECEIVE_SIGNALS_ID

#define NU_RECEIVE_SIGNALS_ID   50

Definition at line 332 of file nucleus.h.

◆ NU_REGISTER_SIGNAL_HANDLER_ID

#define NU_REGISTER_SIGNAL_HANDLER_ID   51

Definition at line 333 of file nucleus.h.

◆ NU_SEND_SIGNALS_ID

#define NU_SEND_SIGNALS_ID   52

Definition at line 334 of file nucleus.h.

◆ NU_REGISTER_LISR_ID

#define NU_REGISTER_LISR_ID   53

Definition at line 335 of file nucleus.h.

◆ NU_CREATE_HISR_ID

#define NU_CREATE_HISR_ID   54

Definition at line 336 of file nucleus.h.

◆ NU_DELETE_HISR_ID

#define NU_DELETE_HISR_ID   55

Definition at line 337 of file nucleus.h.

◆ NU_CREATE_TIMER_ID

#define NU_CREATE_TIMER_ID   56

Definition at line 338 of file nucleus.h.

◆ NU_DELETE_TIMER_ID

#define NU_DELETE_TIMER_ID   57

Definition at line 339 of file nucleus.h.

◆ NU_CONTROL_TIMER_ID

#define NU_CONTROL_TIMER_ID   58

Definition at line 340 of file nucleus.h.

◆ NU_RESET_TIMER_ID

#define NU_RESET_TIMER_ID   59

Definition at line 341 of file nucleus.h.

◆ NU_CREATE_DRIVER_ID

#define NU_CREATE_DRIVER_ID   60

Definition at line 342 of file nucleus.h.

◆ NU_DELETE_DRIVER_ID

#define NU_DELETE_DRIVER_ID   61

Definition at line 343 of file nucleus.h.

◆ NU_REQUEST_DRIVER_ID

#define NU_REQUEST_DRIVER_ID   62

Definition at line 344 of file nucleus.h.

◆ NU_RESUME_DRIVER_ID

#define NU_RESUME_DRIVER_ID   63

Definition at line 345 of file nucleus.h.

◆ NU_SUSPEND_DRIVER_ID

#define NU_SUSPEND_DRIVER_ID   64

Definition at line 346 of file nucleus.h.

◆ NU_CHANGE_TIME_SLICE_ID

#define NU_CHANGE_TIME_SLICE_ID   65

Definition at line 347 of file nucleus.h.

◆ NU_ASSERT_ID

#define NU_ASSERT_ID   66

Definition at line 348 of file nucleus.h.

◆ NU_ALLOCATE_ALIGNED_ID

#define NU_ALLOCATE_ALIGNED_ID   67

Definition at line 349 of file nucleus.h.

◆ NU_SUPERVISOR_MODE

#define NU_SUPERVISOR_MODE ( )    NU_SUPERVISOR_MODE_P(*(void **)NU_SUPERV_USER_VARIABLES())

Definition at line 1090 of file nucleus.h.

◆ NU_USER_MODE

#define NU_USER_MODE ( )    NU_USER_MODE_P(*(void **)NU_SUPERV_USER_VARIABLES())

Definition at line 1091 of file nucleus.h.

Typedef Documentation

◆ UNSIGNED

typedef unsigned long UNSIGNED

Definition at line 19 of file nucleus.h.

◆ SIGNED

typedef long SIGNED

Definition at line 20 of file nucleus.h.

◆ DATA_ELEMENT

typedef unsigned char DATA_ELEMENT

Definition at line 21 of file nucleus.h.

◆ OPTION

Definition at line 22 of file nucleus.h.

◆ STATUS

typedef int STATUS

Definition at line 23 of file nucleus.h.

◆ UNSIGNED_CHAR

typedef unsigned char UNSIGNED_CHAR

Definition at line 24 of file nucleus.h.

◆ CHAR

typedef char CHAR

Definition at line 25 of file nucleus.h.

◆ INT

typedef int INT

Definition at line 26 of file nucleus.h.

◆ UNSIGNED_PTR

typedef unsigned long* UNSIGNED_PTR

Definition at line 27 of file nucleus.h.

◆ BYTE_PTR

typedef unsigned char* BYTE_PTR

Definition at line 28 of file nucleus.h.

◆ BOOLEAN

Definition at line 29 of file nucleus.h.

◆ UNSIGNED_INT

typedef unsigned int UNSIGNED_INT

Definition at line 30 of file nucleus.h.

◆ NU_TASK

typedef struct NU_TASK_STRUCT NU_TASK

◆ NU_MAILBOX

typedef struct NU_MAILBOX_STRUCT NU_MAILBOX

◆ NU_QUEUE

typedef struct NU_QUEUE_STRUCT NU_QUEUE

◆ NU_PIPE

typedef struct NU_PIPE_STRUCT NU_PIPE

◆ NU_SEMAPHORE

◆ NU_EVENT_GROUP

◆ NU_PARTITION_POOL

◆ NU_MEMORY_POOL

◆ NU_HISR

typedef struct NU_HISR_STRUCT NU_HISR

◆ NU_PROTECT

typedef struct NU_PROTECT_STRUCT NU_PROTECT

◆ NU_TIMER

typedef struct NU_TIMER_STRUCT NU_TIMER

◆ nu_request_info_union

◆ NU_DRIVER_REQUEST

◆ NU_DRIVER

typedef struct NU_DRIVER_STRUCT NU_DRIVER

Function Documentation

◆ NU_Create_Task()

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 )

◆ NU_Delete_Task()

int NU_Delete_Task ( NU_TASK * task)

◆ NU_Reset_Task()

int NU_Reset_Task ( NU_TASK * task,
unsigned long argc,
void * argv )

◆ NU_Terminate_Task()

int NU_Terminate_Task ( NU_TASK * task)

◆ NU_Resume_Task()

int NU_Resume_Task ( NU_TASK * task)

◆ NU_Suspend_Task()

int NU_Suspend_Task ( NU_TASK * task)

◆ NU_Relinquish()

void NU_Relinquish ( void )

◆ NU_Sleep()

void NU_Sleep ( unsigned long ticks)

◆ NU_Change_Priority()

OPTION NU_Change_Priority ( NU_TASK * task,
OPTION new_priority )

◆ NU_Change_Preemption()

OPTION NU_Change_Preemption ( OPTION preempt)

◆ NU_Change_Time_Slice()

unsigned long NU_Change_Time_Slice ( NU_TASK * task,
unsigned long time_slice )

◆ NU_Check_Stack()

unsigned long NU_Check_Stack ( void )

◆ NU_Current_Task_Pointer()

NU_TASK * NU_Current_Task_Pointer ( void )

◆ NU_Established_Tasks()

unsigned long NU_Established_Tasks ( void )

◆ NU_Task_Information()

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 )

◆ NU_Task_Pointers()

unsigned long NU_Task_Pointers ( NU_TASK ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Create_Mailbox()

int NU_Create_Mailbox ( NU_MAILBOX * mailbox,
CHAR * name,
OPTION suspend_type )

◆ NU_Delete_Mailbox()

int NU_Delete_Mailbox ( NU_MAILBOX * mailbox)

◆ NU_Reset_Mailbox()

int NU_Reset_Mailbox ( NU_MAILBOX * mailbox)

◆ NU_Send_To_Mailbox()

int NU_Send_To_Mailbox ( NU_MAILBOX * mailbox,
void * message,
unsigned long suspend )

◆ NU_Broadcast_To_Mailbox()

int NU_Broadcast_To_Mailbox ( NU_MAILBOX * mailbox,
void * message,
unsigned long suspend )

◆ NU_Receive_From_Mailbox()

int NU_Receive_From_Mailbox ( NU_MAILBOX * mailbox,
void * message,
unsigned long suspend )

◆ NU_Established_Mailboxes()

unsigned long NU_Established_Mailboxes ( void )

◆ NU_Mailbox_Information()

int NU_Mailbox_Information ( NU_MAILBOX * mailbox,
CHAR * name,
OPTION * suspend_type,
OPTION * message_present,
unsigned long * tasks_waiting,
NU_TASK ** first_task )

◆ NU_Mailbox_Pointers()

unsigned long NU_Mailbox_Pointers ( NU_MAILBOX ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Create_Queue()

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 )

◆ NU_Delete_Queue()

int NU_Delete_Queue ( NU_QUEUE * queue)

◆ NU_Reset_Queue()

int NU_Reset_Queue ( NU_QUEUE * queue)

◆ NU_Send_To_Front_Of_Queue()

int NU_Send_To_Front_Of_Queue ( NU_QUEUE * queue,
void * message,
unsigned long size,
unsigned long suspend )

◆ NU_Send_To_Queue()

int NU_Send_To_Queue ( NU_QUEUE * queue,
void * message,
unsigned long size,
unsigned long suspend )

◆ NU_Broadcast_To_Queue()

int NU_Broadcast_To_Queue ( NU_QUEUE * queue,
void * message,
unsigned long size,
unsigned long suspend )

◆ NU_Receive_From_Queue()

int NU_Receive_From_Queue ( NU_QUEUE * queue,
void * message,
unsigned long size,
unsigned long * actual_size,
unsigned long suspend )

◆ NU_Established_Queues()

unsigned long NU_Established_Queues ( void )

◆ NU_Queue_Information()

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 )

◆ NU_Queue_Pointers()

unsigned long NU_Queue_Pointers ( NU_QUEUE ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Create_Pipe()

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 )

◆ NU_Delete_Pipe()

int NU_Delete_Pipe ( NU_PIPE * pipe)

◆ NU_Reset_Pipe()

int NU_Reset_Pipe ( NU_PIPE * pipe)

◆ NU_Send_To_Front_Of_Pipe()

int NU_Send_To_Front_Of_Pipe ( NU_PIPE * pipe,
void * message,
unsigned long size,
unsigned long suspend )

◆ NU_Send_To_Pipe()

int NU_Send_To_Pipe ( NU_PIPE * pipe,
void * message,
unsigned long size,
unsigned long suspend )

◆ NU_Broadcast_To_Pipe()

int NU_Broadcast_To_Pipe ( NU_PIPE * pipe,
void * message,
unsigned long size,
unsigned long suspend )

◆ NU_Receive_From_Pipe()

int NU_Receive_From_Pipe ( NU_PIPE * pipe,
void * message,
unsigned long size,
unsigned long * actual_size,
unsigned long suspend )

◆ NU_Established_Pipes()

unsigned long NU_Established_Pipes ( void )

◆ NU_Pipe_Information()

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 )

◆ NU_Pipe_Pointers()

unsigned long NU_Pipe_Pointers ( NU_PIPE ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Create_Semaphore()

int NU_Create_Semaphore ( NU_SEMAPHORE * semaphore,
CHAR * name,
unsigned long initial_count,
OPTION suspend_type )

◆ NU_Delete_Semaphore()

int NU_Delete_Semaphore ( NU_SEMAPHORE * semaphore)

◆ NU_Reset_Semaphore()

int NU_Reset_Semaphore ( NU_SEMAPHORE * semaphore,
unsigned long initial_count )

◆ NU_Obtain_Semaphore()

int NU_Obtain_Semaphore ( NU_SEMAPHORE * semaphore,
unsigned long suspend )

◆ NU_Release_Semaphore()

int NU_Release_Semaphore ( NU_SEMAPHORE * semaphore)

◆ NU_Established_Semaphores()

unsigned long NU_Established_Semaphores ( void )

◆ NU_Semaphore_Information()

int NU_Semaphore_Information ( NU_SEMAPHORE * semaphore,
CHAR * name,
unsigned long * current_count,
OPTION * suspend_type,
unsigned long * tasks_waiting,
NU_TASK ** first_task )

◆ NU_Semaphore_Pointers()

unsigned long NU_Semaphore_Pointers ( NU_SEMAPHORE ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Create_Event_Group()

int NU_Create_Event_Group ( NU_EVENT_GROUP * group,
CHAR * name )

◆ NU_Delete_Event_Group()

int NU_Delete_Event_Group ( NU_EVENT_GROUP * group)

◆ NU_Set_Events()

int NU_Set_Events ( NU_EVENT_GROUP * group,
unsigned long events,
OPTION operation )

◆ NU_Retrieve_Events()

int NU_Retrieve_Events ( NU_EVENT_GROUP * group,
unsigned long requested_flags,
OPTION operation,
unsigned long * retrieved_flags,
unsigned long suspend )

◆ NU_Established_Event_Groups()

unsigned long NU_Established_Event_Groups ( void )

◆ NU_Event_Group_Information()

int NU_Event_Group_Information ( NU_EVENT_GROUP * group,
CHAR * name,
unsigned long * event_flags,
unsigned long * tasks_waiting,
NU_TASK ** first_task )

◆ NU_Event_Group_Pointers()

unsigned long NU_Event_Group_Pointers ( NU_EVENT_GROUP ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Control_Signals()

unsigned long NU_Control_Signals ( unsigned long signal_enable_mask)

◆ NU_Receive_Signals()

unsigned long NU_Receive_Signals ( void )

◆ NU_Register_Signal_Handler()

STATUS NU_Register_Signal_Handler ( void(* signal_handler )(unsigned long))

◆ NU_Send_Signals()

STATUS NU_Send_Signals ( NU_TASK * task,
unsigned long signals )

◆ NU_Create_Partition_Pool()

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 )

◆ NU_Delete_Partition_Pool()

int NU_Delete_Partition_Pool ( NU_PARTITION_POOL * pool)

◆ NU_Allocate_Partition()

int NU_Allocate_Partition ( NU_PARTITION_POOL * pool,
void ** return_pointer,
unsigned long suspend )

◆ NU_Deallocate_Partition()

int NU_Deallocate_Partition ( void * partition)

◆ NU_Established_Partition_Pools()

unsigned long NU_Established_Partition_Pools ( void )

◆ NU_Partition_Pool_Information()

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 )

◆ NU_Partition_Pool_Pointers()

unsigned long NU_Partition_Pool_Pointers ( NU_PARTITION_POOL ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Create_Memory_Pool()

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 )

◆ NU_Delete_Memory_Pool()

int NU_Delete_Memory_Pool ( NU_MEMORY_POOL * pool)

◆ NU_Allocate_Memory()

int NU_Allocate_Memory ( NU_MEMORY_POOL * pool,
void ** return_pointer,
unsigned long size,
unsigned long suspend )

◆ NU_Deallocate_Memory()

int NU_Deallocate_Memory ( void * memory)

◆ NU_Established_Memory_Pools()

unsigned long NU_Established_Memory_Pools ( void )

◆ NU_Memory_Pool_Information()

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 )

◆ NU_Memory_Pool_Pointers()

unsigned long NU_Memory_Pool_Pointers ( NU_MEMORY_POOL ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Control_Interrupts()

int NU_Control_Interrupts ( INT new_level)

◆ NU_Local_Control_Interrupts()

int NU_Local_Control_Interrupts ( INT new_level)

◆ NU_Restore_Interrupts()

void NU_Restore_Interrupts ( void )

◆ NU_Setup_Vector()

void * NU_Setup_Vector ( INT vector,
void * new_vector )

◆ NU_Register_LISR()

int NU_Register_LISR ( INT vector,
void(* new_lisr )(INT),
void(** old_lisr )(INT) )

◆ NU_Activate_HISR()

int NU_Activate_HISR ( NU_HISR * hisr)

◆ NU_Create_HISR()

int NU_Create_HISR ( NU_HISR * hisr,
CHAR * name,
void(* hisr_entry )(void),
OPTION priority,
void * stack_address,
unsigned long stack_size )

◆ NU_Delete_HISR()

int NU_Delete_HISR ( NU_HISR * hisr)

◆ NU_Current_HISR_Pointer()

NU_HISR * NU_Current_HISR_Pointer ( void )

◆ NU_Established_HISRs()

unsigned long NU_Established_HISRs ( void )

◆ NU_HISR_Information()

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 )

◆ NU_HISR_Pointers()

unsigned long NU_HISR_Pointers ( NU_HISR ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Protect()

void NU_Protect ( NU_PROTECT * protect_struct)

◆ NU_Unprotect()

void NU_Unprotect ( void )

◆ NU_Create_Timer()

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 )

◆ NU_Delete_Timer()

int NU_Delete_Timer ( NU_TIMER * timer)

◆ NU_Reset_Timer()

int NU_Reset_Timer ( NU_TIMER * timer,
void(* expiration_routine )(unsigned long),
unsigned long initial_time,
unsigned long reschedule_timer,
OPTION enable )

◆ NU_Control_Timer()

int NU_Control_Timer ( NU_TIMER * timer,
OPTION enable )

◆ NU_Established_Timers()

unsigned long NU_Established_Timers ( void )

◆ NU_Timer_Information()

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 )

◆ NU_Timer_Pointers()

unsigned long NU_Timer_Pointers ( NU_TIMER ** pointer_list,
unsigned long maximum_pointers )

◆ NU_Set_Clock()

void NU_Set_Clock ( unsigned long new_value)

◆ NU_Retrieve_Clock()

unsigned long NU_Retrieve_Clock ( void )

◆ NU_Release_Information()

char * NU_Release_Information ( void )

◆ NU_License_Information()

char * NU_License_Information ( void )
Note
Aliases NU_Release_Information in ELKA and NSG firmware.

◆ NU_Disable_History_Saving()

void NU_Disable_History_Saving ( void )

◆ NU_Enable_History_Saving()

void NU_Enable_History_Saving ( void )

◆ NU_Make_History_Entry()

void NU_Make_History_Entry ( unsigned long param1,
unsigned long param2,
unsigned long param3 )

◆ NU_Retrieve_History_Entry()

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 )

◆ NU_Create_Driver()

int NU_Create_Driver ( NU_DRIVER * driver,
CHAR * name,
void(* driver_entry )(NU_DRIVER *, NU_DRIVER_REQUEST *) )

◆ NU_Delete_Driver()

int NU_Delete_Driver ( NU_DRIVER * driver)

◆ NU_Request_Driver()

int NU_Request_Driver ( NU_DRIVER * driver,
NU_DRIVER_REQUEST * request )

◆ NU_Resume_Driver()

int NU_Resume_Driver ( NU_TASK * task)

◆ NU_Suspend_Driver()

int NU_Suspend_Driver ( void(* terminate_routine )(void *),
void * information,
unsigned long timeout )

◆ NU_Established_Drivers()

unsigned long NU_Established_Drivers ( void )

◆ NU_Driver_Pointers()

unsigned long NU_Driver_Pointers ( NU_DRIVER ** pointer_list,
unsigned long maximum_pointers )

◆ NU_IS_SUPERVISOR_MODE()

unsigned long NU_IS_SUPERVISOR_MODE ( void )
Warning
This function is not present in ELKA, NSG, X75, or SG firmware.

◆ NU_SUPERVISOR_MODE_P()

void NU_SUPERVISOR_MODE_P ( void * nu_svc_usr_var)
Warning
This function is not present in ELKA or NSG firmware.

◆ NU_USER_MODE_P()

void NU_USER_MODE_P ( void * nu_svc_usr_var)

◆ NU_SUPERV_USER_VARIABLES()

void * NU_SUPERV_USER_VARIABLES ( void )
Returns
Address of the Nucleus TCD_Current_Thread global.