Creation d'une fonction de reset du flag d'inhibition.
Non utilisée pour l'instant...
This commit is contained in:
parent
ad6d417aca
commit
2f1ea1b5e5
@ -239,6 +239,21 @@ bool CModbusCCMgr::GetZT1InhibitionFlag()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CModbusCCMgr::ClearZT1InhibitionFlag()
|
||||||
|
{
|
||||||
|
bool OK = false;
|
||||||
|
qint16 Reg = mModbusRepo->GetSingleReg(MODBUS_CC_AN_BASE_REG_ADD,&OK);
|
||||||
|
|
||||||
|
if(OK)
|
||||||
|
{
|
||||||
|
Reg &= ~MODBUS_CC_INHIBIT_ZT1_FLAG_MASK;
|
||||||
|
mModbusRepo->WriteSingleReg(MODBUS_CC_AN_BASE_REG_ADD,Reg);
|
||||||
|
return RET_OK;
|
||||||
|
|
||||||
|
}
|
||||||
|
return RET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
bool CModbusCCMgr::GetZT2InhibitionFlag()
|
bool CModbusCCMgr::GetZT2InhibitionFlag()
|
||||||
{
|
{
|
||||||
bool OK = false;
|
bool OK = false;
|
||||||
@ -260,7 +275,20 @@ bool CModbusCCMgr::GetZT2InhibitionFlag()
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
int CModbusCCMgr::ClearZT2InhibitionFlag()
|
||||||
|
{
|
||||||
|
bool OK = false;
|
||||||
|
qint16 Reg = mModbusRepo->GetSingleReg(MODBUS_CC_AN_BASE_REG_ADD,&OK);
|
||||||
|
|
||||||
|
if(OK)
|
||||||
|
{
|
||||||
|
Reg &= ~MODBUS_CC_INHIBIT_ZT2_FLAG_MASK;
|
||||||
|
mModbusRepo->WriteSingleReg(MODBUS_CC_AN_BASE_REG_ADD,Reg);
|
||||||
|
return RET_OK;
|
||||||
|
|
||||||
|
}
|
||||||
|
return RET_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
QList<qint16> CModbusCCMgr::GetZT1TrainComposition()
|
QList<qint16> CModbusCCMgr::GetZT1TrainComposition()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,7 +44,9 @@ public:
|
|||||||
QList<qint16> GetZT1TrainComposition();
|
QList<qint16> GetZT1TrainComposition();
|
||||||
QList<qint16> GetZT2TrainComposition();
|
QList<qint16> GetZT2TrainComposition();
|
||||||
bool GetZT1InhibitionFlag();
|
bool GetZT1InhibitionFlag();
|
||||||
|
int ClearZT1InhibitionFlag();
|
||||||
bool GetZT2InhibitionFlag();
|
bool GetZT2InhibitionFlag();
|
||||||
|
int ClearZT2InhibitionFlag();
|
||||||
qint16 GetZT1TrainType();
|
qint16 GetZT1TrainType();
|
||||||
qint16 GetZT2TrainType();
|
qint16 GetZT2TrainType();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user