|
PF1550 Driver 0.1.0
API reference
|
Source locations, masks and fault classification. More...
Classes | |
| struct | pf1550::IrqLocation |
| Where one interrupt source lives. More... | |
Functions | |
| constexpr uint8_t | pf1550::CategoryBitsOf (IrqGroup group) noexcept |
| constexpr IrqLocation | pf1550::LocationOf (IrqSource source) noexcept |
| constexpr bool | pf1550::Has (const InterruptEvents &events, IrqSource source) noexcept |
| constexpr bool | pf1550::IsFaultSource (IrqSource source) noexcept |
| constexpr bool | pf1550::HasFault (const std::array< uint8_t, kIrqGroups > &status) noexcept |
| constexpr uint8_t | pf1550::MaskByteFor (const IrqMask &mask, IrqGroup group) noexcept |
| template<std::size_t N> | |
| constexpr IrqMask | pf1550::UnmaskOnly (const std::array< IrqSource, N > &sources) noexcept |
Variables | |
| constexpr std::array< IrqLocation, kIrqSourceCount > | pf1550::kIrqLocations |
The location of every source, indexed by IrqSource (Tables 90 to 110 and 150). | |
| constexpr std::array< uint8_t, kIrqGroups > | pf1550::kIrqStatRegs |
The status register of each group, indexed by IrqGroup. | |
| constexpr std::array< uint8_t, kIrqGroups > | pf1550::kIrqMaskRegs |
| The mask register of each group. | |
| constexpr std::array< uint8_t, kIrqGroups > | pf1550::kIrqSenseRegs |
The sense register of each group (the charger's is CHG_INT_OK). | |
| constexpr std::array< uint8_t, kIrqGroups > | pf1550::kIrqDefinedBits |
| The bits that carry a source in each group; the others are reserved and preserved. | |
| constexpr uint8_t | pf1550::kCategoryCharger = 1U << 0 |
| INT_CATEGORY bit of a group's summary (the three SW groups share bits 1 to 3 by rail). | |
| constexpr uint8_t | pf1550::kCategorySw = 0x0E |
| SW1_INT, SW2_INT and SW3_INT. | |
| constexpr uint8_t | pf1550::kCategoryLdo = 1U << 4 |
| LDO_INT. | |
| constexpr uint8_t | pf1550::kCategoryOnkey = 1U << 5 |
| ONKEY_INT. | |
| constexpr uint8_t | pf1550::kCategoryTemp = 1U << 6 |
| TEMP_INT. | |
| constexpr uint8_t | pf1550::kCategoryMisc = 1U << 7 |
| MISC_INT. | |
Source locations, masks and fault classification.
|
constexprnoexcept |
The INT_CATEGORY bits that summarise a group.
| group | The group. |
|
constexprnoexcept |
Whether a source is set in the events (the status bytes as read, before the clear).
| events | What ServiceInterrupts() returned. |
| source | The source. |
|
constexprnoexcept |
Whether any fault-class source is set.
| status | One status byte per group. |
|
constexprnoexcept |
Whether a source reports a fault of a rail or of the die: a current limit, an LDO fault, 125 C or a system overvoltage.
| source | The source. |
|
constexprnoexcept |
The location of a source.
| source | The source. |
Charger, bit 0 for a value that is not an enumerator. The mask byte of a group.
| mask | The mask. |
| group | The group. |
mask.
|
constexprnoexcept |
A mask that unmasks exactly the sources in the list and masks every other.
| sources | The sources to unmask. |
|
inlineconstexpr |
The bits that carry a source in each group; the others are reserved and preserved.
|
inlineconstexpr |
The location of every source, indexed by IrqSource (Tables 90 to 110 and 150).
|
inlineconstexpr |
The mask register of each group.
|
inlineconstexpr |
The sense register of each group (the charger's is CHG_INT_OK).
|
inlineconstexpr |
The status register of each group, indexed by IrqGroup.