public override void setUnderlyingValue(int raw)
 {
     rawVal = raw;
     val = (sfrPIR1Bits) raw;
 }
 public bool hasBit(sfrPIR1Bits toCheck)
 {
     return (((int)val) | ((int)(toCheck)) ) != 0;
 }