Other Defined Data Types

The following names are used for other data types that appear frequently or have special meaning, in order to make the parameter meaning clear.


typedef	INT	FN;	/* Function code */
typedef	INT	RNO;	/* Rendezvous number */
typedef	UW	ATR;	/* Object/handler attributes */
typedef	INT	ER;	/* Error code */
typedef	INT	PRI;	/* Priority */
typedef	W	TMO;	/* Timeout */
typedef	UW	RELTIM;	/* Relative time */
typedef	struct systim	{	/* System time */
	W	hi;		/* High 32 bits */
	UW	lo;		/* Low 32 bits */
} SYSTIM;
/*
*	Common constants
*/
#define	NULL	0	/* Null pointer */
#define	TA_NULL	0	/* No special attributes indicated */
#define	TMO_POL	0	/* Polling */
#define	TMO_FEVR	(-1)	/* Eternal wait */
  • A data type that combines two or more data types is represented by its main data type. For example, the value returned by tk_cre_tsk can be a task ID or error code, but since it is mainly a task ID, the data type is ID.
[Difference with T-Kernel 1.00.00]

The ‘signed’ is explicitly specified in the signed type definition. Also, 32-bit type definition is defined by ‘long’ instead of ‘int’.

W is used instead of INT and UW instead of UINT in some type definitions. This is because of the idea that the types with 32-bit width should be W or UW.

Comments

Click here to Post a Comment