CycloneTechnology/ChaMP

View on GitHub
champ-ipmi/src/main/scala/com/cyclone/ipmi/protocol/sdr/EventMask.scala

Summary

Maintainability
A
0 mins
Test Coverage
package com.cyclone.ipmi.protocol.sdr

/**
  * Mask that indicates which offsets are asserted or de-asserted by a sensor when getting sensor events
  * (discrete or threshold) (via Get Sensor Event Status command).
  *
  * Compare with [[ReadingMask]].
  */
case class EventMask(
  assertionOffsetBits: EventBits,
  deassertionOffsetBits: EventBits
)

object EventMask {
  val empty = EventMask(EventBits.empty, EventBits.empty)
}