Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

new_sim_sensor_discrete.h

00001 /*
00002  * Copyright (c) 2010 by Lars Wetzel
00003  *
00004  * This program is distributed in the hope that it will be useful,
00005  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00006  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  This
00007  * file and program are licensed under a BSD style license.  See
00008  * the Copying file included with the OpenHPI distribution for
00009  * full licensing terms.
00010  *
00011  * The new Simulator plugin is adapted from the ipmidirect plugin.
00012  * Thanks to 
00013  *     Thomas Kanngieser <thomas.kanngieser@fci.com>
00014  *     Pierre Sangouard  <psangouard@eso-tech.com>
00015  * 
00016  * Author(s):
00017  *     Lars Wetzel       <larswetzel@users.sourceforge.net>
00018  */
00019 
00020 #ifndef #ifndef __NEW_SIM_SENSORDISCRETE_H__
00021 #define __NEW_SIM_SENSORDISCRETE_H__
00022 
00023 
00024 #ifndef __NEW_SIM_SENSOR_H__
00025 #include "new_sim_sensor.h"
00026 #endif
00027 
00028 
00029 class NewSimulatorSensorDiscrete : public NewSimulatorSensor
00030 {
00031 public:
00032   NewSimulatorSensorDiscrete( NewSimulatorResource *res );
00033   virtual ~NewSimulatorSensorDiscrete();
00034 
00035   // create an hpi event from ipmi event
00036   virtual SaErrorT CreateEvent( NewSimulatorEvent *event, SaHpiEventT &h );
00037 
00038   // read sensor parameter from Full Sensor Record
00039   // Maybe a GetDataFromFile ....
00040   // virtual bool GetDataFromSdr( NewSimulatorMc *mc, NewSimulatorSdr *sdr );
00041 
00042   // create an RDR sensor record
00043   virtual bool CreateRdr( SaHpiRptEntryT &resource, SaHpiRdrT &rdr );
00044 
00045   // get sensor data
00046   virtual SaErrorT GetSensorReading( SaHpiSensorReadingT &data, SaHpiEventStateT &state );
00047 
00048   virtual SaErrorT GetEventMasksHw( SaHpiEventStateT &AssertEventMask,
00049                                     SaHpiEventStateT &DeassertEventMask
00050                                   );
00051   virtual SaErrorT SetEventMasksHw( const SaHpiEventStateT &AssertEventMask,
00052                                     const SaHpiEventStateT &DeassertEventMask
00053                                   );
00054 };
00055 
00056 
00057 #endif

Generated on Wed Feb 17 15:50:24 2010 for New Simulator by  doxygen 1.4.4