static void ReadModifyWriteCBUS(byte Offset, byte Mask, byte Value) { byte Temp = ReadByteCBUS(Offset); Temp &= ~Mask; Temp |= (Value & Mask); WriteByteCBUS(Offset, Temp); }
void ReadModifyWriteCBUS(uint8_t Offset, uint8_t Mask, uint8_t Value) { uint8_t Temp = 0; Temp = ReadByteCBUS(Offset); Temp &= ~Mask; Temp |= (Value & Mask); WriteByteCBUS(Offset, Temp); }
void ReadModifyWriteCBUS(byte Offset, byte Mask, byte Value) { byte Temp; EXIT_ON_CABLE_DISCONNECTION_V; Temp = ReadByteCBUS(Offset); Temp &= ~Mask; Temp |= (Value & Mask); WriteByteCBUS(Offset, Temp); }