9 #if !defined(__AM_PVDATA_H)
12 #if !defined(__ENUM_PV_STATUS_H)
13 #include "ENUM_PvStatus.h"
27 void SetValue( uint8 value );
29 void SetPvState( ENUM_PVStatus state );
31 void SetColourB(
bool a );
33 void SetZoneB(
bool a );
35 void SetVirtualState(
bool bVirtual );
37 ENUM_PVStatus GetPvState();
68 static const uint8 POINT_STATUS_PVSTATE_MASK = 0xf;
69 static const uint8 POINT_STATUS_ZONE_MASK = 0x10;
70 static const uint8 POINT_STATUS_COLOUR_MASK = 0x20;
71 static const uint8 POINT_STATUS_VIRTUAL_MASK = 0x40;
75 inline uint8 AM_PointStatus::GetValue()
80 inline void AM_PointStatus::SetPvState( ENUM_PVStatus state )
82 m_value = (m_value & ~POINT_STATUS_PVSTATE_MASK) | state;
85 inline void AM_PointStatus::SetValue( uint8 value )
90 inline void AM_PointStatus::SetColourB(
bool a )
94 m_value |= POINT_STATUS_COLOUR_MASK;
98 m_value &= ~POINT_STATUS_COLOUR_MASK;
102 inline void AM_PointStatus::SetZoneB(
bool a )
106 m_value |= POINT_STATUS_ZONE_MASK;
110 m_value &= ~POINT_STATUS_ZONE_MASK;
114 inline ENUM_PVStatus AM_PointStatus::GetPvState()
116 return (ENUM_PVStatus)(m_value & POINT_STATUS_PVSTATE_MASK);
119 inline bool AM_PointStatus::ZoneB()
121 return m_value & POINT_STATUS_ZONE_MASK;
124 inline bool AM_PointStatus::ColourB()
126 return m_value & POINT_STATUS_COLOUR_MASK;
129 inline bool AM_PointStatus::IsVirtual()
131 return m_value & POINT_STATUS_VIRTUAL_MASK;
Definition: am_pvdata.h:58
Definition: am_pvdata.h:21