15#ifndef TLE92466ED_REGISTERS_HPP
16#define TLE92466ED_REGISTERS_HPP
35inline constexpr uint16_t
kChCtrl = 0x0000U;
40inline constexpr uint16_t
kVbatTh = 0x0006U;
41inline constexpr uint16_t
kFbFrz = 0x0007U;
42inline constexpr uint16_t
kFbUpd = 0x0008U;
49inline constexpr uint16_t
kClkDiv = 0x0019U;
51inline constexpr uint16_t
kIcvid = 0x0200U;
53inline constexpr uint16_t
kFbStat = 0x0202U;
65inline constexpr uint16_t
kCtrl = 0x0001U;
66inline constexpr uint16_t
kPeriod = 0x0002U;
72inline constexpr uint16_t
kMode = 0x000CU;
73inline constexpr uint16_t
kTon = 0x000DU;
75inline constexpr uint16_t
kFbDc = 0x0200U;
76inline constexpr uint16_t
kFbVbat = 0x0201U;
77inline constexpr uint16_t
kFbIAvg = 0x0202U;
83inline constexpr std::array<uint16_t, 6>
kChannelBase = {0x0040U, 0x0050U, 0x0060U,
84 0x0070U, 0x0020U, 0x0030U};
166using WdTime = detail::Field<uint16_t, 0U, 11U>;
173inline constexpr uint16_t
kErrOl = 0x0002U;
174inline constexpr uint16_t
kErrOc = 0x0004U;
175inline constexpr uint16_t
kErrSg = 0x0008U;
229inline constexpr uint16_t
kPinEn = 0x0010U;
255using Target = detail::Field<uint16_t, 0U, 15U>;
300using IDiag = detail::Field<uint16_t, 2U, 2U>;
301using OlTh = detail::Field<uint16_t, 4U, 3U>;
311using ChMode = detail::Field<uint16_t, 0U, 4U>;
313using TonMant = detail::Field<uint16_t, 0U, 10U>;
321using TpMant = detail::Field<uint32_t, 0U, 11U>;
322using ToMant = detail::Field<uint32_t, 11U, 11U>;
324using FbExp = detail::Field<uint32_t, 12U, 4U>;
328using IMin = detail::Field<uint32_t, 0U, 10U>;
329using IMax = detail::Field<uint32_t, 10U, 10U>;
330using PMin = detail::Field<uint32_t, 0U, 10U>;
331using PMax = detail::Field<uint32_t, 10U, 10U>;
336using VioRaw = detail::Field<uint32_t, 0U, 11U>;
337using VddRaw = detail::Field<uint32_t, 11U, 11U>;
338using TempRaw = detail::Field<uint32_t, 0U, 11U>;
339using VbatRaw = detail::Field<uint32_t, 11U, 11U>;
369[[nodiscard]]
constexpr uint8_t
FrameCrc(uint32_t frame)
noexcept {
371 for (uint32_t
byte = 0U;
byte < 3U; ++byte) {
372 crc ^= (frame >> (8U * byte)) & 0xFFU;
373 for (uint32_t bit = 0U; bit < 8U; ++bit) {
374 crc = ((crc & 0x80U) != 0U) ? ((crc << 1U) ^
kCrcPolynomial) : (crc << 1U);
378 return static_cast<uint8_t
>(crc ^
kCrcXorOut);
383static_assert(
FrameCrc(0x00'0000U) == 0xF1U);
384static_assert(
FrameCrc(0x00'0200U) == 0x69U);
394[[nodiscard]]
constexpr bool Is22Bit(uint16_t address)
noexcept {
395 return (
static_cast<uint32_t
>(address) >= 0x0202U) &&
396 ((
static_cast<uint32_t
>(address) <= 0x0207U) ||
397 ((
static_cast<uint32_t
>(address) >= 0x0220U) &&
398 (
static_cast<uint32_t
>(address) <= 0x0276U)));
409[[nodiscard]]
constexpr bool IsRegister(uint16_t address)
noexcept {
410 const auto a =
static_cast<uint32_t
>(address);
412 constexpr uint32_t kCentral = 0x03C7'1FFDU;
414 return ((kCentral >> a) & 1U) != 0U;
419 const uint32_t bank = a & 0xFDF0U;
420 const uint32_t offset = a & 0x000FU;
421 const bool is_base = (bank >= 0x0020U) && (bank <= 0x0070U);
423 (a < 0x0200U) && ((offset <= 0x7U) || ((offset >= 0xCU) && (offset <= 0xEU)));
424 const bool feedback = (a >= 0x0200U) && (offset <= 0x6U);
425 return is_base && (control || feedback);
constexpr uint16_t kDiagErrChgr0
DIAG_ERR_CHGR0..2 at 0x000A + group.
Definition tle92466ed_registers.hpp:44
constexpr uint32_t kReplyStatusShift
16-bit reply: status in bits 21..17.
Definition tle92466ed_registers.hpp:351
detail::Field< uint16_t, 0U, 8U > VbatUvTh
VBAT_UV_TH, 162.08 mV per count.
Definition tle92466ed_registers.hpp:154
detail::Field< uint16_t, 0U, 8U > PeriodMant
PERIOD_MANT; 0 stops the controller.
Definition tle92466ed_registers.hpp:271
constexpr uint16_t kErrOl
OL: open load, off-state.
Definition tle92466ed_registers.hpp:173
detail::Field< uint32_t, 16U, 2U > DitherQuadCnt
FB_VBAT.DITHER_QUAD_CNT.
Definition tle92466ed_registers.hpp:325
constexpr uint16_t kGlobalDiag1
GLOBAL_DIAG1: internal supplies, ADC.
Definition tle92466ed_registers.hpp:38
constexpr uint16_t kChConfig
CH_CONFIG: slew, diagnosis, OL limits.
Definition tle92466ed_registers.hpp:71
constexpr uint32_t kOffDiagDisabled
OFF_DIAG_CH = 11B: diagnosis off.
Definition tle92466ed_registers.hpp:305
constexpr uint16_t kLowFreqRangeEn
LOW_FREQ_RANGE_EN: period times 8.
Definition tle92466ed_registers.hpp:273
constexpr uint16_t kPinFaultnFb
FAULTN pin level.
Definition tle92466ed_registers.hpp:231
detail::Field< uint16_t, 0U, 12U > DitherStepSize
STEP_SIZE.
Definition tle92466ed_registers.hpp:292
constexpr uint16_t kAutoLimitDis
AUTO_LIMIT_DIS.
Definition tle92466ed_registers.hpp:256
constexpr uint16_t kDeepDither
DEEP_DITHER.
Definition tle92466ed_registers.hpp:293
constexpr uint16_t kChConfigReset
After reset: 10 V/us, diagnosis on.
Definition tle92466ed_registers.hpp:306
detail::Field< uint16_t, 0U, 8U > IcVersion
VERSION.
Definition tle92466ed_registers.hpp:225
constexpr uint16_t kDiag0PorEvent
POR_EVENT (rw): power-on reset happened.
Definition tle92466ed_registers.hpp:121
constexpr uint16_t kChannelBits
One bit per channel, CH0 at bit 0.
Definition tle92466ed_registers.hpp:161
constexpr uint16_t kGlobalDiag2
GLOBAL_DIAG2: register and OTP ECC.
Definition tle92466ed_registers.hpp:39
constexpr uint16_t kErrFlags
Every flag of one channel.
Definition tle92466ed_registers.hpp:177
constexpr uint16_t kPinEn
EN level.
Definition tle92466ed_registers.hpp:229
constexpr uint16_t kDiag1Vdd2v5Ov
VDD2V5_OV (rw).
Definition tle92466ed_registers.hpp:133
constexpr uint16_t kDiag0SpiWdErr
SPI_WD_ERR (rwh).
Definition tle92466ed_registers.hpp:122
constexpr uint16_t kMask1ClkLow
CLK_LOW_MASK.
Definition tle92466ed_registers.hpp:199
constexpr uint32_t kStatSupNokInt
SUP_NOK_INT.
Definition tle92466ed_registers.hpp:245
constexpr uint16_t kCtrlReset
After reset.
Definition tle92466ed_registers.hpp:266
constexpr uint16_t kWdReload
WD_RELOAD: SPI watchdog reload value.
Definition tle92466ed_registers.hpp:43
constexpr uint16_t kDiag2OtpEccErr
OTP_ECC_ERR (rwh): two clears (4.9.7).
Definition tle92466ed_registers.hpp:147
constexpr uint16_t kFaultMask0
FAULT_MASK0: channel errors, supplies.
Definition tle92466ed_registers.hpp:46
detail::Field< uint32_t, 0U, 11U > TpMant
FB_DC.TP_MANT: measurement period.
Definition tle92466ed_registers.hpp:321
detail::Field< uint32_t, 0U, 11U > VioRaw
VIO, 3.4534 mV per count.
Definition tle92466ed_registers.hpp:336
constexpr uint32_t kStatInitDone
Definition tle92466ed_registers.hpp:248
constexpr uint32_t kStatPorEvent
POR_event.
Definition tle92466ed_registers.hpp:242
constexpr uint32_t kStatWarnGroups
DIAG_WARN_CHGR0..2 summary.
Definition tle92466ed_registers.hpp:236
constexpr uint16_t kPeriod
PERIOD: PWM frequency controller.
Definition tle92466ed_registers.hpp:66
constexpr uint16_t kDiag1RefOv
REF_OV (rwh).
Definition tle92466ed_registers.hpp:135
constexpr uint16_t kWdReloadReset
After reset: one count.
Definition tle92466ed_registers.hpp:167
constexpr uint16_t kSetpoint
SETPOINT: TARGET, AUTO_LIMIT_DIS.
Definition tle92466ed_registers.hpp:64
constexpr uint16_t kOcDiagEn
OC_DIAG_EN (self-clearing, rwh).
Definition tle92466ed_registers.hpp:303
constexpr uint16_t kGlobalConfigReset
Definition tle92466ed_registers.hpp:104
constexpr bool IsRegister(uint16_t address) noexcept
Whether address names a register of the datasheet: a central register of Table 19,...
Definition tle92466ed_registers.hpp:409
detail::Field< uint16_t, 8U, 8U > IcManufacturer
MANUFACTURER.
Definition tle92466ed_registers.hpp:226
constexpr uint16_t kErrOc
OC: overcurrent; two clears (4.9.6, 4.11.2).
Definition tle92466ed_registers.hpp:174
constexpr uint16_t kVbatTh
VBAT_TH: VBAT under/overvoltage codes.
Definition tle92466ed_registers.hpp:40
constexpr uint16_t kErrOte
OTE: channel overtemperature error.
Definition tle92466ed_registers.hpp:176
constexpr uint32_t kWriteAddressMask
A write frame's 7-bit address.
Definition tle92466ed_registers.hpp:346
constexpr uint16_t kChipId0
Definition tle92466ed_registers.hpp:56
constexpr uint16_t kPinStat
PIN_STAT (rh): DRV0/1, EN, FAULTN levels.
Definition tle92466ed_registers.hpp:52
constexpr bool Is22Bit(uint16_t address) noexcept
Whether a read of address is answered with a 22-bit reply (section 5.2.3.4): the central registers fr...
Definition tle92466ed_registers.hpp:394
constexpr uint16_t kErrSg
SG: short to ground, off-state.
Definition tle92466ed_registers.hpp:175
constexpr uint16_t kPinDrv0
DRV0 level.
Definition tle92466ed_registers.hpp:227
detail::Field< uint16_t, 0U, 11U > WdTime
WD_TIME, counts of 2^14 / f_SYS.
Definition tle92466ed_registers.hpp:166
constexpr uint16_t kIntegratorLimitReset
After reset: 1023 and 16.
Definition tle92466ed_registers.hpp:281
constexpr uint16_t kDiag1HvadcErr
Definition tle92466ed_registers.hpp:137
constexpr uint16_t kWarnOtw
OTW: channel overtemperature warning.
Definition tle92466ed_registers.hpp:184
detail::Field< uint16_t, 8U, 3U > PeriodExp
PERIOD_EXP.
Definition tle92466ed_registers.hpp:272
constexpr uint16_t kGlobalConfigVioSel
VIO_SEL: 0 = 3.3 V, 1 = 5.0 V.
Definition tle92466ed_registers.hpp:103
constexpr uint32_t kStatResEvent
RES_event.
Definition tle92466ed_registers.hpp:241
constexpr uint16_t kFaultMask2
FAULT_MASK2: data error, SPI watchdog.
Definition tle92466ed_registers.hpp:48
detail::Field< uint16_t, 0U, 10U > TonMant
TON_MANT.
Definition tle92466ed_registers.hpp:313
constexpr uint16_t kDitherClkDiv
DITHER_CLK_DIV: t_ref_clk, sync.
Definition tle92466ed_registers.hpp:68
constexpr uint16_t kMode
MODE (Config Mode only): CH_MODE.
Definition tle92466ed_registers.hpp:72
constexpr uint16_t kChCtrlPar45
CH_PAR_4_5 (Config Mode only).
Definition tle92466ed_registers.hpp:90
detail::Field< uint16_t, 0U, 9U > PllFbDiv
PLL_FBDIV.
Definition tle92466ed_registers.hpp:208
constexpr uint16_t kFbUpd
FB_UPD (rh): new feedback per channel.
Definition tle92466ed_registers.hpp:42
constexpr std::array< uint16_t, 6 > kChannelBase
Base address of each channel's register bank, CH0 to CH5 (Table 25).
Definition tle92466ed_registers.hpp:83
detail::Field< uint16_t, 14U, 2U > OffDiagCh
OFF_DIAG_CH.
Definition tle92466ed_registers.hpp:304
constexpr uint16_t kDiag0ClkNok
CLK_NOK (rwh).
Definition tle92466ed_registers.hpp:117
constexpr uint16_t kDiag0Flags
The rwh fault flags, cleared by a write of 1 (section 4.1.2).
Definition tle92466ed_registers.hpp:125
constexpr uint16_t kBistDone
SMU_SLF_TST_DONE.
Definition tle92466ed_registers.hpp:217
constexpr uint16_t kDiag0VioUv
VIO_UV (rwh).
Definition tle92466ed_registers.hpp:113
constexpr uint16_t kMask0SupExt
SUP_NOK_EXT_MASK.
Definition tle92466ed_registers.hpp:195
detail::Field< uint16_t, 14U, 2U > FastMeas
FAST_MEAS.
Definition tle92466ed_registers.hpp:294
constexpr uint16_t kCtrl
CTRL: ICC threshold, OLSG warning.
Definition tle92466ed_registers.hpp:65
constexpr uint16_t kDiagWarnReset
After reset: both checks "not possible".
Definition tle92466ed_registers.hpp:188
detail::Field< uint32_t, 11U, 11U > VddRaw
VDD, 3.4534 mV per count.
Definition tle92466ed_registers.hpp:337
constexpr uint16_t kCtrlIntThreshReset
After reset.
Definition tle92466ed_registers.hpp:316
detail::Field< uint16_t, 0U, 8U > MinIntThresh
MIN_INT_THRESH, signed.
Definition tle92466ed_registers.hpp:262
constexpr uint16_t kChCtrlEnMask
EN_CH0..5, bits 5..0.
Definition tle92466ed_registers.hpp:89
constexpr uint16_t kFbStat
FB_STAT (rh, 22 bits): status summary.
Definition tle92466ed_registers.hpp:53
constexpr uint16_t kGlobalConfigCrcEn
CRC_EN: check MOSI frame CRCs.
Definition tle92466ed_registers.hpp:102
constexpr uint16_t kFbIntThresh
FB_INT_THRESH (22 bits).
Definition tle92466ed_registers.hpp:80
detail::Field< uint32_t, 11U, 11U > VbatRaw
VBAT, 41.47 V / (2^11 - 1) per count.
Definition tle92466ed_registers.hpp:339
detail::Field< uint16_t, 10U, 6U > OlsgTimeout
OLSG_TIMEOUT.
Definition tle92466ed_registers.hpp:314
constexpr uint16_t kMask1CotErr
COTERR_MASK.
Definition tle92466ed_registers.hpp:198
constexpr uint16_t kWarnOlsgChkNok
OLSG_WARN_CHK_NOK: cleared by a read.
Definition tle92466ed_registers.hpp:186
detail::Field< uint32_t, 12U, 4U > FbExp
FB_VBAT.EXP, FB_I_AVG.EXP.
Definition tle92466ed_registers.hpp:324
detail::Field< uint32_t, 0U, 10U > IMin
FB_IMIN_IMAX.IMIN, signed.
Definition tle92466ed_registers.hpp:328
detail::Field< uint32_t, 11U, 11U > ToMant
FB_DC.TO_MANT: on-time.
Definition tle92466ed_registers.hpp:322
constexpr uint32_t kStatusFrameError
SPI frame error.
Definition tle92466ed_registers.hpp:353
constexpr uint16_t kDiag0VddOv
VDD_OV (rwh).
Definition tle92466ed_registers.hpp:116
detail::Field< uint16_t, 10U, 4U > DitherExp
EXP of t_ref_clk and TON.
Definition tle92466ed_registers.hpp:287
constexpr uint16_t kOlsgWarnEn
OLSG_WARN_EN.
Definition tle92466ed_registers.hpp:265
constexpr uint16_t kMask0EnPin
EN_PIN_MASK.
Definition tle92466ed_registers.hpp:193
constexpr uint16_t kFbIAvgS16
FB_I_AVG_s16 (22 bits).
Definition tle92466ed_registers.hpp:79
constexpr uint16_t kClkDivReset
After reset: REFDIV 2, FBDIV 56, internal.
Definition tle92466ed_registers.hpp:211
constexpr uint16_t kDiagWarnChgr0
DIAG_WARN_CHGR0..2 at 0x0010 + group.
Definition tle92466ed_registers.hpp:45
detail::Field< uint32_t, 10U, 10U > IMax
FB_IMIN_IMAX.IMAX, signed.
Definition tle92466ed_registers.hpp:329
constexpr uint16_t kBistUerr
SMU_SLF_TST_UERR: uncorrectable errors tested.
Definition tle92466ed_registers.hpp:219
constexpr uint16_t kChCtrlPar03
CH_PAR_0_3 (Config Mode only).
Definition tle92466ed_registers.hpp:91
constexpr uint16_t kGlobalDiag0
GLOBAL_DIAG0: supply, clock, OT, events.
Definition tle92466ed_registers.hpp:37
constexpr uint16_t kMask2SpiWd
SPI_WD_MASK.
Definition tle92466ed_registers.hpp:202
detail::Field< uint32_t, 18U, 2U > DitherPeriodCnt
FB_VBAT.DITHER_PERIOD_CNT.
Definition tle92466ed_registers.hpp:326
detail::Field< uint32_t, 0U, 12U > IAvgMant
FB_I_AVG.I_AVG_MANT, signed.
Definition tle92466ed_registers.hpp:327
constexpr uint16_t kBistEn
SMU_SLF_TST_EN: start the self-test.
Definition tle92466ed_registers.hpp:216
constexpr uint32_t kData16Mask
Data of a 16-bit reply.
Definition tle92466ed_registers.hpp:356
constexpr uint32_t kWriteAddressShift
Write frame: address in bits 23..17.
Definition tle92466ed_registers.hpp:345
constexpr uint32_t kStatCotErr
COTERR.
Definition tle92466ed_registers.hpp:239
detail::Field< uint16_t, 8U, 8U > DitherSteps
STEPS.
Definition tle92466ed_registers.hpp:291
detail::Field< uint16_t, 12U, 4U > PwmCtrlParam
PWM_CTRL_PARAM, the gain KI.
Definition tle92466ed_registers.hpp:274
constexpr uint16_t kDiag1VrIrefOv
VR_IREF_OV (rwh).
Definition tle92466ed_registers.hpp:131
constexpr uint16_t kDitherSetpointSyncEn
DITHER_SETPOINT_SYNC_EN.
Definition tle92466ed_registers.hpp:289
constexpr uint16_t kBistCerr
SMU_SLF_TST_CERR: correctable errors tested.
Definition tle92466ed_registers.hpp:220
constexpr uint16_t kFbIAvg
FB_I_AVG (22 bits): I_AVG_MANT, EXP.
Definition tle92466ed_registers.hpp:77
constexpr uint16_t kVbatThReset
After reset: UV 25 (4.05 V), OV 255.
Definition tle92466ed_registers.hpp:156
constexpr uint32_t kStatMissionBlockers
Faults that keep the chip out of Mission Mode (Figure 4).
Definition tle92466ed_registers.hpp:250
detail::Field< uint32_t, 0U, 10U > PMin
FB_PERIOD_MIN_MAX.PMIN.
Definition tle92466ed_registers.hpp:330
constexpr uint32_t kStatCotWarn
COTWARN.
Definition tle92466ed_registers.hpp:240
constexpr uint16_t kIcvid
ICVID (rh): manufacturer and version.
Definition tle92466ed_registers.hpp:51
constexpr uint16_t kDiag0Reset
Definition tle92466ed_registers.hpp:123
detail::Field< uint16_t, 9U, 5U > OlsgWarnWindow
OLSG_WARN_WINDOW.
Definition tle92466ed_registers.hpp:264
constexpr uint16_t kWarnIReg
I_REG_WARN: ICC current regulation.
Definition tle92466ed_registers.hpp:183
constexpr uint32_t kReplyStatusMask
Five status bits.
Definition tle92466ed_registers.hpp:352
constexpr uint32_t kData22Mask
Data of a 22-bit reply.
Definition tle92466ed_registers.hpp:357
constexpr uint16_t kDiag2OtpVirgin
OTP_VIRGIN (rwh): must always be 0.
Definition tle92466ed_registers.hpp:148
constexpr uint16_t kDiag1Flags
Every flag of GLOBAL_DIAG1.
Definition tle92466ed_registers.hpp:139
constexpr uint32_t kReplyModeShift
Reply mode in bits 23..22.
Definition tle92466ed_registers.hpp:347
constexpr uint32_t kStatSpiWdErr
SPI_WD_ERR.
Definition tle92466ed_registers.hpp:247
detail::Field< uint16_t, 4U, 3U > OlTh
OL_TH, eighths of the setpoint.
Definition tle92466ed_registers.hpp:301
detail::Field< uint16_t, 0U, 2U > SlewRate
SLEWR.
Definition tle92466ed_registers.hpp:299
constexpr uint16_t kMask0Reset
After reset.
Definition tle92466ed_registers.hpp:196
constexpr uint16_t kGlobalConfigWritable
Bits the driver writes; the test bits (V1V5_UV/OV_TEST, OT_TEST, UV_OV_SWAP) stay 0.
Definition tle92466ed_registers.hpp:106
constexpr uint32_t kFrameRw
R/W bit 16: 1 = write.
Definition tle92466ed_registers.hpp:344
constexpr uint16_t kPinDrv1
DRV1 level.
Definition tle92466ed_registers.hpp:228
constexpr uint32_t kStatSupNokExt
SUP_NOK_EXT.
Definition tle92466ed_registers.hpp:244
constexpr uint16_t kChCtrlParMask
CH_PAR_4_5, CH_PAR_0_3, CH_PAR_1_2.
Definition tle92466ed_registers.hpp:94
constexpr uint32_t kStatusCrcError
The chip found a wrong MOSI CRC.
Definition tle92466ed_registers.hpp:354
constexpr uint16_t kFbIminImax
FB_IMIN_IMAX (22 bits).
Definition tle92466ed_registers.hpp:78
constexpr uint16_t kFbDc
FB_DC (22 bits): TP_MANT, TO_MANT.
Definition tle92466ed_registers.hpp:75
constexpr uint16_t kWarnFlags
Every flag of one channel.
Definition tle92466ed_registers.hpp:187
constexpr uint16_t kDiag1VrIrefUv
VR_IREF_UV (rwh).
Definition tle92466ed_registers.hpp:130
constexpr uint16_t kDiag0VbatOv
VBAT_OV (rwh).
Definition tle92466ed_registers.hpp:112
constexpr uint16_t kDiag1Vdd2v5Uv
VDD2V5_UV (rw).
Definition tle92466ed_registers.hpp:132
constexpr uint16_t kMask2DataErr
DATA_ERR_MASK.
Definition tle92466ed_registers.hpp:201
detail::Field< uint16_t, 7U, 6U > OlThFixed
OL_TH_FIXED.
Definition tle92466ed_registers.hpp:302
constexpr uint16_t kMask0SupInt
SUP_NOK_INT_MASK.
Definition tle92466ed_registers.hpp:194
constexpr uint16_t kDiag0VddUv
VDD_UV (rwh).
Definition tle92466ed_registers.hpp:115
constexpr uint32_t kCrcXorOut
The result is XORed with 0xFF.
Definition tle92466ed_registers.hpp:360
constexpr uint16_t kPinFaultn
FAULTN internal: 0 = fault.
Definition tle92466ed_registers.hpp:230
constexpr uint16_t kGlobalConfigClkWdEn
CLK_WD_EN: clock watchdog.
Definition tle92466ed_registers.hpp:100
detail::Field< uint16_t, 10U, 5U > AutoLimValueAbs
AUTO_LIM_VALUE_ABS.
Definition tle92466ed_registers.hpp:280
detail::Field< uint16_t, 0U, 10U > LimValueAbs
LIM_VALUE_ABS.
Definition tle92466ed_registers.hpp:279
constexpr uint16_t kDitherPwmSyncEn
DITHER_PWM_SYNC_EN.
Definition tle92466ed_registers.hpp:288
constexpr uint16_t kChCtrlPar12
CH_PAR_1_2 (Config Mode only).
Definition tle92466ed_registers.hpp:92
constexpr uint16_t kDiag0VioOv
VIO_OV (rwh).
Definition tle92466ed_registers.hpp:114
constexpr uint16_t kDitherStep
DITHER_STEP: STEPS, FLAT.
Definition tle92466ed_registers.hpp:69
detail::Field< uint16_t, 0U, 9U > IntThresh
INT_THRESH.
Definition tle92466ed_registers.hpp:315
constexpr uint32_t kChModeMeasurement
CH_MODE = CH: free-running measurement.
Definition tle92466ed_registers.hpp:312
constexpr uint16_t kDiag0VbatUv
VBAT_UV (rwh).
Definition tle92466ed_registers.hpp:111
detail::Field< uint16_t, 8U, 8U > VbatOvTh
VBAT_OV_TH, 162.08 mV per count.
Definition tle92466ed_registers.hpp:155
constexpr uint32_t kStatErrGroups
DIAG_ERR_CHGR0..2 summary.
Definition tle92466ed_registers.hpp:246
constexpr uint16_t kDiag1VpreOv
VPRE_OV (rwh).
Definition tle92466ed_registers.hpp:136
detail::Field< uint32_t, 0U, 11U > TempRaw
TEMP_VALUE.
Definition tle92466ed_registers.hpp:338
constexpr uint16_t kCtrlIntThresh
CTRL_INT_THRESH: ICC start threshold.
Definition tle92466ed_registers.hpp:74
constexpr uint16_t kDiag2Flags
Every flag of GLOBAL_DIAG2.
Definition tle92466ed_registers.hpp:149
detail::Field< uint16_t, 9U, 6U > PllRefDiv
PLL_REFDIV.
Definition tle92466ed_registers.hpp:209
constexpr uint16_t kDiag1RwhFlags
The rwh flags, cleared by a write of 1; the two rw flags (VDD2V5) are cleared by a 0.
Definition tle92466ed_registers.hpp:141
constexpr uint16_t kFbPeriodMinMax
Definition tle92466ed_registers.hpp:81
constexpr uint16_t kChannelGroups
Definition tle92466ed_registers.hpp:59
constexpr uint16_t kChCtrlOpMode
OP_MODE: 0 Config Mode, 1 Mission Mode.
Definition tle92466ed_registers.hpp:93
constexpr uint16_t kDitherCtrl
DITHER_CTRL: STEP_SIZE, fast feedback.
Definition tle92466ed_registers.hpp:70
constexpr uint32_t kCrcInit
Initial value.
Definition tle92466ed_registers.hpp:359
constexpr uint32_t kTargetSaturation
Higher TARGET values are saturated.
Definition tle92466ed_registers.hpp:257
constexpr uint16_t kDiag1RefUv
REF_UV (rwh).
Definition tle92466ed_registers.hpp:134
constexpr uint32_t kCrcPolynomial
SAE J1850: x^8 + x^4 + x^3 + x^2 + 1.
Definition tle92466ed_registers.hpp:358
constexpr uint16_t kGlobalConfigSpiWdEn
SPI_WD_EN: SPI watchdog.
Definition tle92466ed_registers.hpp:101
detail::Field< uint32_t, 10U, 10U > PMax
FB_PERIOD_MIN_MAX.PMAX.
Definition tle92466ed_registers.hpp:331
constexpr uint16_t kDiag2RegEccErr
REG_ECC_ERR (rwh).
Definition tle92466ed_registers.hpp:146
constexpr uint32_t kStatClkNok
CLK_NOK.
Definition tle92466ed_registers.hpp:238
constexpr uint16_t kWarnOlsg
OLSG_WARN.
Definition tle92466ed_registers.hpp:185
detail::Field< uint16_t, 0U, 8U > DitherFlat
FLAT.
Definition tle92466ed_registers.hpp:290
constexpr uint16_t kGlobalConfig
GLOBAL_CONFIG (rw, Config Mode only).
Definition tle92466ed_registers.hpp:36
detail::Field< uint32_t, 0U, 11U > VbatAvgMant
FB_VBAT.VBAT_AVG_MANT.
Definition tle92466ed_registers.hpp:323
constexpr uint16_t kClkDivExtClk
EXT_CLK: 1 = clock from the CLK pin.
Definition tle92466ed_registers.hpp:210
constexpr uint16_t kBistFail
SMU_SLF_TST_FAIL.
Definition tle92466ed_registers.hpp:218
constexpr uint16_t kIntegratorLimit
INTEGRATOR_LIMIT: ICC limits.
Definition tle92466ed_registers.hpp:67
constexpr uint16_t kErrOlsg
OLSG: open load or short to ground, on-state.
Definition tle92466ed_registers.hpp:172
constexpr uint16_t kChCtrlWritable
Every bit that is not reserved.
Definition tle92466ed_registers.hpp:95
detail::Field< uint16_t, 2U, 2U > IDiag
I_DIAG.
Definition tle92466ed_registers.hpp:300
constexpr uint16_t kClkDiv
CLK_DIV (Config Mode only): PLL, source.
Definition tle92466ed_registers.hpp:49
constexpr uint16_t kDiag0CotErr
COTERR (rwh).
Definition tle92466ed_registers.hpp:118
constexpr uint32_t kReplyModeCritical
10B: critical fault frame.
Definition tle92466ed_registers.hpp:350
constexpr uint16_t kChCtrl
CH_CTRL (rw): enables, pairs, OP_MODE.
Definition tle92466ed_registers.hpp:35
constexpr uint16_t kSffBist
SFF_BIST (Config Mode only): self-test.
Definition tle92466ed_registers.hpp:50
constexpr uint16_t kDiag0ResEvent
RES_EVENT (rw): RESN reset happened.
Definition tle92466ed_registers.hpp:120
constexpr uint16_t kPwmPeriodCalcMode
PWM_PERIOD_CALC_MODE.
Definition tle92466ed_registers.hpp:263
constexpr uint16_t kWarnPwmReg
PWM_REG_WARN: ICC PWM regulation.
Definition tle92466ed_registers.hpp:182
constexpr uint32_t kStatusWriteReadOnly
Write to a read-only register.
Definition tle92466ed_registers.hpp:355
detail::Field< uint16_t, 0U, 4U > ChMode
CH_MODE.
Definition tle92466ed_registers.hpp:311
constexpr uint32_t kStatDataErr
DATA_err: OTP ECC, OTP virgin, HVADC.
Definition tle92466ed_registers.hpp:243
constexpr uint16_t kFaultMask1
FAULT_MASK1: warnings, OT, clock.
Definition tle92466ed_registers.hpp:47
detail::Field< uint16_t, 0U, 10U > DitherMant
MANT of t_ref_clk.
Definition tle92466ed_registers.hpp:286
constexpr uint16_t kFbFrz
FB_FRZ: freeze the feedback of a channel.
Definition tle92466ed_registers.hpp:41
constexpr uint16_t kMask1Reset
After reset.
Definition tle92466ed_registers.hpp:200
constexpr uint32_t kStatChkNokGroups
OLSG_WARN_CHK_NOK summary.
Definition tle92466ed_registers.hpp:237
constexpr uint16_t kFbVbat
FB_VBAT (22 bits): VBAT, EXP, counters.
Definition tle92466ed_registers.hpp:76
constexpr uint32_t kReplyMode22
01B: 22-bit reply frame.
Definition tle92466ed_registers.hpp:349
constexpr uint16_t kDiag0CotWarn
COTWARN (rwh).
Definition tle92466ed_registers.hpp:119
constexpr uint16_t kFbVoltage1
FB_VOLTAGE1 (rh, 22 bits): VIO, VDD.
Definition tle92466ed_registers.hpp:54
constexpr uint16_t kFbVoltage2
FB_VOLTAGE2 (rh, 22 bits): VBAT, temp.
Definition tle92466ed_registers.hpp:55
detail::Field< uint16_t, 0U, 15U > Target
TARGET, 2 A / (2^15 - 1) per count.
Definition tle92466ed_registers.hpp:255
constexpr uint8_t FrameCrc(uint32_t frame) noexcept
CRC-8 SAE J1850 of a frame's lower 24 bits, in the chip's byte order: bits 7..0 first,...
Definition tle92466ed_registers.hpp:369
constexpr uint16_t kTon
TON: on-time, OLSG time-out.
Definition tle92466ed_registers.hpp:73
constexpr uint32_t kReplyMode16
00B: 16-bit reply frame.
Definition tle92466ed_registers.hpp:348
constexpr uint16_t kMask2Reset
After reset.
Definition tle92466ed_registers.hpp:203
constexpr uint16_t kMask1CotWarn
COTWARN_MASK.
Definition tle92466ed_registers.hpp:197
The TLE92466ED register map.
Definition tle92466ed_registers.hpp:25
Compile-time helpers of the TLE92466ED driver: typed integer literals, exact hook matching,...