/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : DeviceIF.idl                                                  */
/* Author   : Tom O'Reilly                                                  */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

/*
CLASS 
DeviceIF

DESCRIPTION
TaskInterface for device drivers

AUTHOR
Tom O'Reilly

*/

interface DeviceIF {

  /////////////////////////////////////////////////////////
  // Device status
  enum Status {
    Offline = 0,
    Initializing,
    Ok,
    Error,
    FailedInit,
    FailedRead,
    Failed
  }; 

  typedef sequence<char,96> Name;

  /////////////////////////////////////////////////////////
  // Name
  void name(out Name name);

  /////////////////////////////////////////////////////////
  // Serial number
  void serialNumber(out Name id);

  /////////////////////////////////////////////////////////
  // Initialize
  Status initialize();

  /////////////////////////////////////////////////////////
  // Turn device "on"
  Status powerOn();

  /////////////////////////////////////////////////////////
  // Turn device "off"
  Status powerOff();

  /////////////////////////////////////////////////////////
  // Device status
  Status status();

};
