modm API documentation
modm::platform::CompBase Class Reference
Inheritance diagram for modm::platform::CompBase:
modm::platform::Comp1 modm::platform::Comp2 modm::platform::Comp3 modm::platform::Comp4 modm::platform::Comp5 modm::platform::Comp6 modm::platform::Comp7

Public Types

enum  Polarity { NonInverted = 0b0 << 15, Inverted = 0b1 << 15 }
 
enum  Hysteresis {
  NoHysteresis = 0b000 << COMP_CSR_HYST_Pos, Hysteresis10mV = 0b001 << COMP_CSR_HYST_Pos, Hysteresis20mV = 0b010 << COMP_CSR_HYST_Pos, Hysteresis30mV = 0b011 << COMP_CSR_HYST_Pos,
  Hysteresis40mV = 0b100 << COMP_CSR_HYST_Pos, Hysteresis50mV = 0b101 << COMP_CSR_HYST_Pos, Hysteresis60mV = 0b110 << COMP_CSR_HYST_Pos, Hysteresis70mV = 0b111 << COMP_CSR_HYST_Pos,
  LowHysteresis = Hysteresis10mV, MediumHysteresis = Hysteresis40mV, HighHysteresis = Hysteresis70mV
}
 

Static Protected Attributes

static constexpr uint32_t PolarityMask = 0b1 << 15
 
static constexpr uint32_t HysteresisMask = COMP_CSR_HYST_Msk
 

The documentation for this class was generated from the following file: