Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

edfmacros.h File Reference

Go to the source code of this file.

Defines

#define DECODEHEADERFIELD(packet, fieldName)   packet+offsetof(struct EDFPackedHeader,fieldName), sizeof((struct EDFPackedHeader *)0)->fieldName
#define DECODECHANNELFIELD(packet, fieldName, whichChannel, totalChannels)   packet+totalChannels*offsetof(struct EDFPackedChannelHeader,fieldName) + whichChannel*sizeof(((struct EDFPackedChannelHeader *)0)->fieldName),sizeof((struct EDFPackedChannelHeader *)0)->fieldName
#define LOADHFI(m)   result->m = EDFUnpackInt(DECODEHEADERFIELD(packet, m))
#define LOADHFD(m)   result->m = EDFUnpackDouble(DECODEHEADERFIELD(packet, m))
#define LOADHFS(m)   strcpy(result->m, EDFUnpackString(DECODEHEADERFIELD(packet, m)))
#define LOADCFI(m)   result->m = EDFUnpackInt(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels))
#define LOADCFD(m)   result->m = EDFUnpackDouble(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels))
#define LOADCFS(m)   strcpy(result->m, EDFUnpackString(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels)))
#define STORECFI(m, i)   storeEDFInt(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels), i)
#define STORECFD(m, d)   storeEDFDouble(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels), d)
#define STORECFS(m, s)   storeEDFString(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels), s)
#define STOREHFI(m, i)   storeEDFInt(DECODEHEADERFIELD(packet, m), i)
#define STOREHFD(m, d)   storeEDFDouble(DECODEHEADERFIELD(packet, m), d)
#define STOREHFS(m, s)   storeEDFString(DECODEHEADERFIELD(packet, m), s)


Define Documentation

#define DECODECHANNELFIELD packet,
fieldName,
whichChannel,
totalChannels   )     packet+totalChannels*offsetof(struct EDFPackedChannelHeader,fieldName) + whichChannel*sizeof(((struct EDFPackedChannelHeader *)0)->fieldName),sizeof((struct EDFPackedChannelHeader *)0)->fieldName
 

Definition at line 33 of file edfmacros.h.

#define DECODEHEADERFIELD packet,
fieldName   )     packet+offsetof(struct EDFPackedHeader,fieldName), sizeof((struct EDFPackedHeader *)0)->fieldName
 

Definition at line 30 of file edfmacros.h.

#define LOADCFD  )     result->m = EDFUnpackDouble(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels))
 

Definition at line 45 of file edfmacros.h.

Referenced by EDFDecodeChannelHeader().

#define LOADCFI  )     result->m = EDFUnpackInt(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels))
 

Definition at line 43 of file edfmacros.h.

Referenced by EDFDecodeChannelHeader().

#define LOADCFS  )     strcpy(result->m, EDFUnpackString(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels)))
 

Definition at line 47 of file edfmacros.h.

Referenced by EDFDecodeChannelHeader().

#define LOADHFD  )     result->m = EDFUnpackDouble(DECODEHEADERFIELD(packet, m))
 

Definition at line 38 of file edfmacros.h.

Referenced by EDFDecodeHeaderPreamble().

#define LOADHFI  )     result->m = EDFUnpackInt(DECODEHEADERFIELD(packet, m))
 

Definition at line 36 of file edfmacros.h.

Referenced by EDFDecodeHeaderPreamble().

#define LOADHFS  )     strcpy(result->m, EDFUnpackString(DECODEHEADERFIELD(packet, m)))
 

Definition at line 40 of file edfmacros.h.

Referenced by EDFDecodeHeaderPreamble().

#define STORECFD m,
 )     storeEDFDouble(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels), d)
 

Definition at line 52 of file edfmacros.h.

Referenced by EDFEncodePacket().

#define STORECFI m,
 )     storeEDFInt(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels), i)
 

Definition at line 50 of file edfmacros.h.

Referenced by EDFEncodePacket().

#define STORECFS m,
 )     storeEDFString(DECODECHANNELFIELD(packet, m, whichChannel, totalChannels), s)
 

Definition at line 54 of file edfmacros.h.

Referenced by EDFEncodePacket().

#define STOREHFD m,
 )     storeEDFDouble(DECODEHEADERFIELD(packet, m), d)
 

Definition at line 59 of file edfmacros.h.

Referenced by EDFEncodePacket().

#define STOREHFI m,
 )     storeEDFInt(DECODEHEADERFIELD(packet, m), i)
 

Definition at line 57 of file edfmacros.h.

Referenced by EDFEncodePacket().

#define STOREHFS m,
 )     storeEDFString(DECODEHEADERFIELD(packet, m), s)
 

Definition at line 61 of file edfmacros.h.

Referenced by EDFEncodePacket().


Generated on Tue Feb 8 00:05:17 2005 for Neuroserver by doxygen 1.3.3