XgNutOS


Defines

#define __byte_swap2(val)
#define __byte_swap4(val)
#define htons(x)   __byte_swap2(x)
 Convert short value from host to network byte order.
#define htonl(x)   __byte_swap4(x)
 Convert long value from host to network byte order.
#define ntohs(x)   __byte_swap2(x)
 Convert short value from network to host byte order.
#define ntohl(x)   __byte_swap4(x)
 Convert long value from network to host byte order.

Typedefs

typedef unsigned char u_char
 Unsigned 8-bit value.
typedef unsigned short u_short
 Unsigned 16-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 void * HANDLE
 Void pointer.
typedef unsigned int uptr_t
 Unsigned register type.

Define Documentation

#define __byte_swap2 ( val   ) 

Value:

((((val) & 0xff) << 8) |        \
     (((val) & 0xff00) >> 8))

Definition at line 249 of file types.h.

#define __byte_swap4 ( val   ) 

Value:

((((val) & 0xff) << 24) |       \
     (((val) & 0xff00) << 8) |      \
     (((val) & 0xff0000) >> 8) |    \
     (((val) & 0xff000000) >> 24))

Definition at line 253 of file types.h.

#define htonl (  )     __byte_swap4(x)

Convert long value from host to network byte order.

Definition at line 300 of file types.h.

#define htons (  )     __byte_swap2(x)

Convert short value from host to network byte order.

Definition at line 291 of file types.h.

#define ntohl (  )     __byte_swap4(x)

Convert long value from network to host byte order.

Definition at line 318 of file types.h.

#define ntohs (  )     __byte_swap2(x)

Convert short value from network to host byte order.

Definition at line 309 of file types.h.


Typedef Documentation

typedef void* HANDLE

Void pointer.

Definition at line 191 of file types.h.

typedef unsigned char u_char

Unsigned 8-bit value.

Todo:
We should switch to stdint.h as suggested by Dirk Kaufmann. See feature request #1282721.

Definition at line 173 of file types.h.

typedef unsigned int u_int

Unsigned int value.

Definition at line 180 of file types.h.

typedef unsigned long u_long

Unsigned 32-bit value.

Definition at line 183 of file types.h.

typedef unsigned long long u_longlong

Unsigned 64-bit value.

Definition at line 186 of file types.h.

typedef unsigned short u_short

Unsigned 16-bit value.

Definition at line 176 of file types.h.

typedef unsigned int uptr_t

Unsigned register type.

The size of this type is equal to the size of a register, the hardware datapath or whatever might fit to give optimum performance for values from 0 to 255.

Typically 8 bit CPUs will use unsigned characters, 16 bit CPUs will use unsigned shorts etc.

Signed register type. Similar to ureg_t, but for signed values from -128 to +127.

Unsigned pointer value type. The size of this type is at least the size of a memory pointer. For CPUs with 16 address bits this will be an unsigned short.

Definition at line 246 of file types.h.


Generated on Sun Aug 31 13:31:34 2008 for FrankenRTOS by  doxygen 1.5.6