|
PF1550 Driver 0.1.0
API reference
|
Interrupt map of the PF1550: which register and bit holds each source, and helpers over the events ServiceInterrupts() returns.
More...
#include <array>#include <cstddef>#include <cstdint>#include "pf1550_detail.hpp"#include "pf1550_registers.hpp"#include "pf1550_types.hpp"Go to the source code of this file.
Classes | |
| struct | pf1550::IrqLocation |
| Where one interrupt source lives. More... | |
Namespaces | |
| namespace | pf1550 |
The PF1550 driver: everything it declares lives here; internals in detail. | |
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. | |
Interrupt map of the PF1550: which register and bit holds each source, and helpers over the events ServiceInterrupts() returns.