csi_const.h File Reference

Global constants, defines and data types for CSI. More...

#include "csi_plfabstr.h"
+ Include dependency graph for csi_const.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define CSI_HTONL(_x_)   CSI_CPU_TO_LE32(_x_)
 
#define CSI_HTONS(_x_)   CSI_CPU_TO_LE16(_x_)
 
#define CSI_LSBFIRST   1234
 
#define CSI_MSBFIRST   4321
 
#define CSI_NTOHL(_x_)   CSI_LE32_TO_CPU(_x_)
 
#define CSI_NTOHS(_x_)   CSI_LE16_TO_CPU(_x_)
 
#define CSI_STATUS_FALSE   0
 
#define CSI_STATUS_TRUE   1
 < the platform abstratction and configuration
 
#define CSI_SWAP16(_x_)   ((_x_ << 8) | (_x_ >> 8))
 swap endianess of 16 Bit value
 
#define CSI_SWAP32(_x_)   ((_x_ << 24) | ((0x0000FF00UL & _x_) << 8) | ((0x00FF0000UL & _x_) >> 8) | (_x_ >> 24))
 
#define CSI_TIMEOUT_INFINITE   0xFFFFFFFF
 timeout value for infinite timeouts
 
#define false   0
 
#define NULL   0
 
#define true   (!false)
 

 

Detailed Description

Global constants, defines and data types for CSI.

Author
Uwe Kindler (UK)
Date
2009/08/17 The file defines the return and error codes for function calls and defines the base macros for endian swapping.