nut/include/sys/types.h File Reference


Detailed Description

Nut/OS type declarations.

#include <compiler.h>

Defines

#define __byte_swap2(val)
#define __byte_swap4(val)
#define _SYS_TYPES_H_
#define htonl(x)   __byte_swap4(x)
 Convert long value from host to network byte order.
#define htons(x)   __byte_swap2(x)
 Convert short value from host to network byte order.
#define ntohl(x)   __byte_swap4(x)
 Convert long value from network to host byte order.
#define ntohs(x)   __byte_swap2(x)
 Convert short value from network to host byte order.
#define NUTMEM_ALIGNMENT   sizeof(int)
#define NUTMEM_BOTTOM_ALIGN(s)   ((s) & ~(NUTMEM_ALIGNMENT - 1))
 Return the next lower aligned value.
#define NUTMEM_TOP_ALIGN(s)   NUTMEM_BOTTOM_ALIGN((s + (NUTMEM_ALIGNMENT - 1)))
 Return the next higher aligned value.

Typedefs

typedef void * HANDLE
 Void pointer.
typedef unsigned short reg_t
 Signed register type.
typedef unsigned char u_char
 Unsigned 8-bit value.
typedef unsigned int u_int
 Unsigned int value.
typedef unsigned long u_long
 Unsigned 32-bit value.
typedef unsigned long long u_longlong
 Unsigned 64-bit value.
typedef unsigned short u_short
 Unsigned 16-bit value.
typedef unsigned int uptr_t
 Unsigned pointer value type.
typedef unsigned short ureg_t
 Unsigned register type.


Generated on Wed Apr 29 11:12:30 2009 for BTnut System Software by doxygen 1.5.1