You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: voltage_.cpp
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Source file of voltage_.cpp
|
|
//----------------------------------------------------------------------------
|
|
#include "Voltage.h"
|
|
|
|
CVoltage::CVoltage()
|
|
{
|
|
memset( &m_VoltageParameters, 0, sizeof( m_VoltageParameters ) );
|
|
m_bBoardVoltage = TRUE;
|
|
m_bBoardVoltageChanged = TRUE;
|
|
m_nBoardVoltageValue = 0;
|
|
}
|
|
|
|
CVoltage::~CVoltage()
|
|
{
|
|
Destroy();
|
|
}
|
|
|
|
BOOL CVoltage::Create( LGS::PVOLTAGE_PARAMETERS pParameters )
|
|
{
|
|
Destroy();
|
|
|
|
if( !pParameters )
|
|
return FALSE;
|
|
|
|
// store parameters
|
|
m_VoltageParameters = *pParameters;
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
void CVoltage::Destroy()
|
|
{
|
|
// reset prameters
|
|
memset( &m_VoltageParameters, 0, sizeof( m_VoltageParameters ) );
|
|
m_bBoardVoltage = TRUE;
|
|
m_bBoardVoltageChanged = TRUE;
|
|
m_nBoardVoltageValue = 0;
|
|
}
|