22 #include "SignalData.hpp"
58 friend bool printFSOPENREQ(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
65 SECTION( FILENAME = 0 );
80 Uint32 auto_sync_size;
121 static Uint32 getVersion(
const Uint32 fileNumber[]);
122 static Uint32 getSuffix(
const Uint32 fileNumber[]);
124 static void setVersion(Uint32 fileNumber[], Uint8 val);
125 static void setSuffix(Uint32 fileNumber[], Uint8 val);
130 static Uint32 v1_getDisk(
const Uint32 fileNumber[]);
131 static Uint32 v1_getTable(
const Uint32 fileNumber[]);
132 static Uint32 v1_getFragment(
const Uint32 fileNumber[]);
133 static Uint32 v1_getS(
const Uint32 fileNumber[]);
134 static Uint32 v1_getP(
const Uint32 fileNumber[]);
136 static void v1_setDisk(Uint32 fileNumber[], Uint8 val);
137 static void v1_setTable(Uint32 fileNumber[], Uint32 val);
138 static void v1_setFragment(Uint32 fileNumber[], Uint32 val);
139 static void v1_setS(Uint32 fileNumber[], Uint32 val);
140 static void v1_setP(Uint32 fileNumber[], Uint8 val);
145 static Uint32 v2_getSequence(
const Uint32 fileNumber[]);
146 static Uint32 v2_getNodeId(
const Uint32 fileNumber[]);
147 static Uint32 v2_getCount(
const Uint32 fileNumber[]);
149 static void v2_setSequence(Uint32 fileNumber[], Uint32 no);
150 static void v2_setNodeId(Uint32 fileNumber[], Uint32 no);
151 static void v2_setCount(Uint32 fileNumber[], Uint32 no);
156 static Uint32 v4_getBasePath(
const Uint32 fileNumber[]) {
157 return v5_getLcpNo(fileNumber);
159 static void v4_setBasePath(Uint32 fileNumber[], Uint32 no) {
160 v5_setLcpNo(fileNumber, no);
166 static Uint32 v5_getLcpNo(
const Uint32 fileNumber[]);
167 static Uint32 v5_getTableId(
const Uint32 fileNumber[]);
168 static Uint32 v5_getFragmentId(
const Uint32 fileNumber[]);
170 static void v5_setLcpNo(Uint32 fileNumber[], Uint32 no);
171 static void v5_setTableId(Uint32 fileNumber[], Uint32 no);
172 static void v5_setFragmentId(Uint32 fileNumber[], Uint32 no);
227 Uint32 FsOpenReq::getVersion(
const Uint32 fileNumber[]){
228 return (fileNumber[3] >> 24) & 0xff;
232 void FsOpenReq::setVersion(Uint32 fileNumber[], Uint8 val){
233 const Uint32 t = fileNumber[3];
234 fileNumber[3] = (t & 0x00FFFFFF) | (((Uint32)val) << 24);
238 Uint32 FsOpenReq::getSuffix(
const Uint32 fileNumber[]){
239 return (fileNumber[3] >> 16)& 0xff;
243 void FsOpenReq::setSuffix(Uint32 fileNumber[], Uint8 val){
244 const Uint32 t = fileNumber[3];
245 fileNumber[3] = (t & 0xFF00FFFF) | (((Uint32)val) << 16);
249 Uint32 FsOpenReq::v1_getDisk(
const Uint32 fileNumber[]){
250 return (fileNumber[3]>>8) & 0xff;
254 void FsOpenReq::v1_setDisk(Uint32 fileNumber[], Uint8 val){
255 const Uint32 t = fileNumber[3];
256 fileNumber[3] = (t & 0xFFFF00FF) | (((Uint32)val) << 8);
260 Uint32 FsOpenReq::v1_getTable(
const Uint32 fileNumber[]){
261 return fileNumber[0];
265 void FsOpenReq::v1_setTable(Uint32 fileNumber[], Uint32 val){
270 Uint32 FsOpenReq::v1_getFragment(
const Uint32 fileNumber[]){
271 return fileNumber[1];
275 void FsOpenReq::v1_setFragment(Uint32 fileNumber[], Uint32 val){
280 Uint32 FsOpenReq::v1_getS(
const Uint32 fileNumber[]){
281 return fileNumber[2];
285 void FsOpenReq::v1_setS(Uint32 fileNumber[], Uint32 val){
290 Uint32 FsOpenReq::v1_getP(
const Uint32 fileNumber[]){
291 return fileNumber[3] & 0xff;
295 void FsOpenReq::v1_setP(Uint32 fileNumber[], Uint8 val){
296 const Uint32 t = fileNumber[3];
297 fileNumber[3] = (t & 0xFFFFFF00) | val;
302 Uint32 FsOpenReq::v2_getSequence(
const Uint32 fileNumber[]){
303 return fileNumber[0];
307 void FsOpenReq::v2_setSequence(Uint32 fileNumber[], Uint32 val){
312 Uint32 FsOpenReq::v2_getNodeId(
const Uint32 fileNumber[]){
313 return fileNumber[1];
317 void FsOpenReq::v2_setNodeId(Uint32 fileNumber[], Uint32 val){
322 Uint32 FsOpenReq::v2_getCount(
const Uint32 fileNumber[]){
323 return fileNumber[2];
327 void FsOpenReq::v2_setCount(Uint32 fileNumber[], Uint32 val){
333 Uint32 FsOpenReq::v5_getTableId(
const Uint32 fileNumber[]){
334 return fileNumber[0];
338 void FsOpenReq::v5_setTableId(Uint32 fileNumber[], Uint32 val){
343 Uint32 FsOpenReq::v5_getLcpNo(
const Uint32 fileNumber[]){
344 return fileNumber[1];
348 void FsOpenReq::v5_setLcpNo(Uint32 fileNumber[], Uint32 val){
353 Uint32 FsOpenReq::v5_getFragmentId(
const Uint32 fileNumber[]){
354 return fileNumber[2];
358 void FsOpenReq::v5_setFragmentId(Uint32 fileNumber[], Uint32 val){