OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
loghdr.h File Reference
#include <stdint.h>
Include dependency graph for loghdr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LOGHDR
 

Macros

#define LOBYTE(w)   ((BYTE) (w & 0xFF))
 
#define HIBYTE(w)   ((BYTE) (((WORD)(w) >> 8) & 0xFF))
 
#define LOWORD(l)   ((WORD)(DWORD) (l & 0xFFFF))
 
#define HIWORD(l)   ((WORD) (((DWORD)(l) >> 16) & 0xFFFF))
 
#define SWAP_WORD(w)   ((WORD) ((WORD)HIBYTE(w)|(((WORD)LOBYTE(w))<<8)))
 
#define SWAP_LONG(l)
 
#define HDR_WORD(w)   ((swap)?SWAP_WORD(w):w)
 
#define HDR_LONG(l)   ((swap)?SWAP_LONG(l):l)
 

Typedefs

typedef unsigned char BYTE
 
typedef unsigned short int WORD
 
typedef uint32_t DWORD
 
typedef float IEEE_FLOAT
 
typedef double IEEE_DOUBLE
 

Macro Definition Documentation

◆ HDR_LONG

#define HDR_LONG (   l)    ((swap)?SWAP_LONG(l):l)

Definition at line 40 of file loghdr.h.

◆ HDR_WORD

#define HDR_WORD (   w)    ((swap)?SWAP_WORD(w):w)

Definition at line 39 of file loghdr.h.

◆ HIBYTE

#define HIBYTE (   w)    ((BYTE) (((WORD)(w) >> 8) & 0xFF))

Definition at line 31 of file loghdr.h.

◆ HIWORD

#define HIWORD (   l)    ((WORD) (((DWORD)(l) >> 16) & 0xFFFF))

Definition at line 33 of file loghdr.h.

◆ LOBYTE

#define LOBYTE (   w)    ((BYTE) (w & 0xFF))

Definition at line 30 of file loghdr.h.

◆ LOWORD

#define LOWORD (   l)    ((WORD)(DWORD) (l & 0xFFFF))

Definition at line 32 of file loghdr.h.

◆ SWAP_LONG

#define SWAP_LONG (   l)
Value:
| ((DWORD)(SWAP_WORD(LOWORD(l)))<<16))

Definition at line 36 of file loghdr.h.

◆ SWAP_WORD

#define SWAP_WORD (   w)    ((WORD) ((WORD)HIBYTE(w)|(((WORD)LOBYTE(w))<<8)))

Definition at line 35 of file loghdr.h.

Typedef Documentation

◆ BYTE

typedef unsigned char BYTE

Definition at line 24 of file loghdr.h.

◆ DWORD

typedef uint32_t DWORD

Definition at line 26 of file loghdr.h.

◆ IEEE_DOUBLE

typedef double IEEE_DOUBLE

Definition at line 28 of file loghdr.h.

◆ IEEE_FLOAT

typedef float IEEE_FLOAT

Definition at line 27 of file loghdr.h.

◆ WORD

typedef unsigned short int WORD

Definition at line 25 of file loghdr.h.

#define LOWORD(l)
Definition: loghdr.h:32
#define HIWORD(l)
Definition: loghdr.h:33
#define SWAP_WORD(w)
Definition: loghdr.h:35
uint32_t DWORD
Definition: loghdr.h:26