~micecam2/micecm/Software

« back to all changes in this revision

Viewing changes to MICETrackerHardwareInterfaces/src/Common/AFEIItCassette.cc

  • Committer: EPICS
  • Date: 2015-04-23 13:58:01 UTC
  • Revision ID: epics@miceiocpctk.micenet.rl.ac.uk-20150423135801-inzc7dh3h7bjywsh
Saving changes before moving to new tracker PC

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
      }
254
254
    return lEnabled;
255
255
  }
 
256
 
 
257
  ///////////////////////////////////////////////////////////
 
258
  bool AFEIItCassette::ConfigureRemaining()
 
259
  {
 
260
     try
 
261
      {
 
262
        if(!(mAFEIItDevices[AFEIItDefines::LH_BOARD]->ConfigureRemaining()))
 
263
          {
 
264
            return false;
 
265
          }
 
266
        if(!(mAFEIItDevices[AFEIItDefines::RH_BOARD]->ConfigureRemaining()))
 
267
          {
 
268
            return false;
 
269
          }
 
270
      }
 
271
    catch(MICEException & lExc)
 
272
      {
 
273
        RETHROW(lExc);
 
274
      }
 
275
    return true;
 
276
  }
 
277
 
 
278
  ///////////////////////////////////////////////////////////
 
279
  bool AFEIItCassette::ConfigureRemaining(const u32 & aBoardIndex)
 
280
  {
 
281
    if(aBoardIndex >= AFEIItDefines::mNumBoardsPerCassette)
 
282
      {
 
283
        InvalidArgumentException lExc("const u32 & aBoardIndex", "Valid cassette board indices are 0-");
 
284
        lExc << AFEIItDefines::mNumBoardsPerCassette - 1;
 
285
        lExc << " inclusive";
 
286
        RAISE(lExc);
 
287
      }
 
288
                
 
289
    bool lEnabled(true);
 
290
    try
 
291
      {
 
292
        lEnabled = mAFEIItDevices[aBoardIndex]->ConfigureRemaining();
 
293
      }
 
294
    catch(MICEException & lExc)
 
295
      {
 
296
        RETHROW(lExc);
 
297
      }
 
298
    return lEnabled;
 
299
  }
256
300
        
257
301
  ///////////////////////////////////////////////////////////
258
302
  bool AFEIItCassette::OverrideThresholds(u8 thresh)