00001 00053 #if !defined(_CIGI_SOF_V1_INCLUDED_) 00054 #define _CIGI_SOF_V1_INCLUDED_ 00055 00056 00057 #include "CigiBaseSOF.h" 00058 00059 00060 00061 00062 //========================================================= 00065 class CIGI_SPEC CigiSOFV1 : public CigiBaseSOF 00066 { 00067 public: 00068 CigiSOFV1(); 00069 virtual ~CigiSOFV1(); 00070 00071 00072 00073 //==> Buffer Packing/Unpacking 00074 00075 //========================================================= 00086 virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const; 00087 00088 //========================================================= 00098 virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec); 00099 00100 00101 //==> Accessing Member Variable Values functions 00102 00103 00104 //+> Frame Counter 00105 00106 //========================================================= 00110 Cigi_uint32 GetFrameCntr(void) const { return(FrameCntr); } 00111 00112 //========================================================= 00120 int SetFrameCntr(const Cigi_uint32 FrameCntrIn, bool bndchk=true) 00121 { 00122 FrameCntr = FrameCntrIn; 00123 LastRcvdHostFrame = FrameCntrIn; 00124 00125 return(CIGI_SUCCESS); 00126 } 00127 00128 00129 00130 }; 00131 00132 #endif // !defined(_CIGI_SOF_V1_INCLUDED_)