|
TLE92466ED Driver 0.1.0
API reference
|
TLE92466ED register map: addresses, bit fields, reset values and the frame CRC (datasheet section 5.3). More...
Go to the source code of this file.
Namespaces | |
| namespace | tle92466ed |
The TLE92466ED driver: everything it declares lives here; internals in detail. | |
| namespace | tle92466ed::reg |
| The TLE92466ED register map. | |
Functions | |
| constexpr uint8_t | tle92466ed::reg::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, then 15..8, then 23..16 (section 5.1.2). | |
| constexpr bool | tle92466ed::reg::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 from FB_STAT (0x0202) on and every channel feedback register. The datasheet draws each of them with a bits 21..16 row and a six-digit reset value. | |
| constexpr bool | tle92466ed::reg::IsRegister (uint16_t address) noexcept |
Whether address names a register of the datasheet: a central register of Table 19, or a channel register of Table 24 at a base of Table 25. | |
Variables | |
Central registers (section 5.3.2, Table 19) | |
| constexpr uint16_t | tle92466ed::reg::kChCtrl = 0x0000U |
| CH_CTRL (rw): enables, pairs, OP_MODE. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfig = 0x0002U |
| GLOBAL_CONFIG (rw, Config Mode only). | |
| constexpr uint16_t | tle92466ed::reg::kGlobalDiag0 = 0x0003U |
| GLOBAL_DIAG0: supply, clock, OT, events. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalDiag1 = 0x0004U |
| GLOBAL_DIAG1: internal supplies, ADC. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalDiag2 = 0x0005U |
| GLOBAL_DIAG2: register and OTP ECC. | |
| constexpr uint16_t | tle92466ed::reg::kVbatTh = 0x0006U |
| VBAT_TH: VBAT under/overvoltage codes. | |
| constexpr uint16_t | tle92466ed::reg::kFbFrz = 0x0007U |
| FB_FRZ: freeze the feedback of a channel. | |
| constexpr uint16_t | tle92466ed::reg::kFbUpd = 0x0008U |
| FB_UPD (rh): new feedback per channel. | |
| constexpr uint16_t | tle92466ed::reg::kWdReload = 0x0009U |
| WD_RELOAD: SPI watchdog reload value. | |
| constexpr uint16_t | tle92466ed::reg::kDiagErrChgr0 = 0x000AU |
| DIAG_ERR_CHGR0..2 at 0x000A + group. | |
| constexpr uint16_t | tle92466ed::reg::kDiagWarnChgr0 = 0x0010U |
| DIAG_WARN_CHGR0..2 at 0x0010 + group. | |
| constexpr uint16_t | tle92466ed::reg::kFaultMask0 = 0x0016U |
| FAULT_MASK0: channel errors, supplies. | |
| constexpr uint16_t | tle92466ed::reg::kFaultMask1 = 0x0017U |
| FAULT_MASK1: warnings, OT, clock. | |
| constexpr uint16_t | tle92466ed::reg::kFaultMask2 = 0x0018U |
| FAULT_MASK2: data error, SPI watchdog. | |
| constexpr uint16_t | tle92466ed::reg::kClkDiv = 0x0019U |
| CLK_DIV (Config Mode only): PLL, source. | |
| constexpr uint16_t | tle92466ed::reg::kSffBist = 0x003FU |
| SFF_BIST (Config Mode only): self-test. | |
| constexpr uint16_t | tle92466ed::reg::kIcvid = 0x0200U |
| ICVID (rh): manufacturer and version. | |
| constexpr uint16_t | tle92466ed::reg::kPinStat = 0x0201U |
| PIN_STAT (rh): DRV0/1, EN, FAULTN levels. | |
| constexpr uint16_t | tle92466ed::reg::kFbStat = 0x0202U |
| FB_STAT (rh, 22 bits): status summary. | |
| constexpr uint16_t | tle92466ed::reg::kFbVoltage1 = 0x0203U |
| FB_VOLTAGE1 (rh, 22 bits): VIO, VDD. | |
| constexpr uint16_t | tle92466ed::reg::kFbVoltage2 = 0x0204U |
| FB_VOLTAGE2 (rh, 22 bits): VBAT, temp. | |
| constexpr uint16_t | tle92466ed::reg::kChipId0 = 0x0205U |
| constexpr uint16_t | tle92466ed::reg::kChannelGroups = 3U |
Channel registers: offsets from the channel's base (section 5.3.3, Table 24) | |
| constexpr uint16_t | tle92466ed::reg::kSetpoint = 0x0000U |
| SETPOINT: TARGET, AUTO_LIMIT_DIS. | |
| constexpr uint16_t | tle92466ed::reg::kCtrl = 0x0001U |
| CTRL: ICC threshold, OLSG warning. | |
| constexpr uint16_t | tle92466ed::reg::kPeriod = 0x0002U |
| PERIOD: PWM frequency controller. | |
| constexpr uint16_t | tle92466ed::reg::kIntegratorLimit = 0x0003U |
| INTEGRATOR_LIMIT: ICC limits. | |
| constexpr uint16_t | tle92466ed::reg::kDitherClkDiv = 0x0004U |
| DITHER_CLK_DIV: t_ref_clk, sync. | |
| constexpr uint16_t | tle92466ed::reg::kDitherStep = 0x0005U |
| DITHER_STEP: STEPS, FLAT. | |
| constexpr uint16_t | tle92466ed::reg::kDitherCtrl = 0x0006U |
| DITHER_CTRL: STEP_SIZE, fast feedback. | |
| constexpr uint16_t | tle92466ed::reg::kChConfig = 0x0007U |
| CH_CONFIG: slew, diagnosis, OL limits. | |
| constexpr uint16_t | tle92466ed::reg::kMode = 0x000CU |
| MODE (Config Mode only): CH_MODE. | |
| constexpr uint16_t | tle92466ed::reg::kTon = 0x000DU |
| TON: on-time, OLSG time-out. | |
| constexpr uint16_t | tle92466ed::reg::kCtrlIntThresh = 0x000EU |
| CTRL_INT_THRESH: ICC start threshold. | |
| constexpr uint16_t | tle92466ed::reg::kFbDc = 0x0200U |
| FB_DC (22 bits): TP_MANT, TO_MANT. | |
| constexpr uint16_t | tle92466ed::reg::kFbVbat = 0x0201U |
| FB_VBAT (22 bits): VBAT, EXP, counters. | |
| constexpr uint16_t | tle92466ed::reg::kFbIAvg = 0x0202U |
| FB_I_AVG (22 bits): I_AVG_MANT, EXP. | |
| constexpr uint16_t | tle92466ed::reg::kFbIminImax = 0x0203U |
| FB_IMIN_IMAX (22 bits). | |
| constexpr uint16_t | tle92466ed::reg::kFbIAvgS16 = 0x0204U |
| FB_I_AVG_s16 (22 bits). | |
| constexpr uint16_t | tle92466ed::reg::kFbIntThresh = 0x0205U |
| FB_INT_THRESH (22 bits). | |
| constexpr uint16_t | tle92466ed::reg::kFbPeriodMinMax = 0x0206U |
| constexpr std::array< uint16_t, 6 > | tle92466ed::reg::kChannelBase |
| Base address of each channel's register bank, CH0 to CH5 (Table 25). | |
CH_CTRL (section 5.3.2.3); reset value 0x0000 | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlEnMask = 0x003FU |
| EN_CH0..5, bits 5..0. | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlPar45 = 0x1000U |
| CH_PAR_4_5 (Config Mode only). | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlPar03 = 0x2000U |
| CH_PAR_0_3 (Config Mode only). | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlPar12 = 0x4000U |
| CH_PAR_1_2 (Config Mode only). | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlOpMode = 0x8000U |
| OP_MODE: 0 Config Mode, 1 Mission Mode. | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlParMask = 0x7000U |
| CH_PAR_4_5, CH_PAR_0_3, CH_PAR_1_2. | |
| constexpr uint16_t | tle92466ed::reg::kChCtrlWritable = 0xF03FU |
| Every bit that is not reserved. | |
GLOBAL_CONFIG (section 5.3.2.4); reset value 0x4005 | |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfigClkWdEn = 0x0001U |
| CLK_WD_EN: clock watchdog. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfigSpiWdEn = 0x0002U |
| SPI_WD_EN: SPI watchdog. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfigCrcEn = 0x0004U |
| CRC_EN: check MOSI frame CRCs. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfigVioSel = 0x4000U |
| VIO_SEL: 0 = 3.3 V, 1 = 5.0 V. | |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfigReset = 0x4005U |
| constexpr uint16_t | tle92466ed::reg::kGlobalConfigWritable = 0x4007U |
| Bits the driver writes; the test bits (V1V5_UV/OV_TEST, OT_TEST, UV_OV_SWAP) stay 0. | |
GLOBAL_DIAG0 (section 5.3.2.5); reset value 0x0600 | |
| constexpr uint16_t | tle92466ed::reg::kDiag0VbatUv = 0x0001U |
| VBAT_UV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0VbatOv = 0x0002U |
| VBAT_OV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0VioUv = 0x0004U |
| VIO_UV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0VioOv = 0x0008U |
| VIO_OV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0VddUv = 0x0010U |
| VDD_UV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0VddOv = 0x0020U |
| VDD_OV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0ClkNok = 0x0040U |
| CLK_NOK (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0CotErr = 0x0080U |
| COTERR (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0CotWarn = 0x0100U |
| COTWARN (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0ResEvent = 0x0200U |
| RES_EVENT (rw): RESN reset happened. | |
| constexpr uint16_t | tle92466ed::reg::kDiag0PorEvent = 0x0400U |
| POR_EVENT (rw): power-on reset happened. | |
| constexpr uint16_t | tle92466ed::reg::kDiag0SpiWdErr = 0x4000U |
| SPI_WD_ERR (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag0Reset = 0x0600U |
| constexpr uint16_t | tle92466ed::reg::kDiag0Flags = 0x41FFU |
| The rwh fault flags, cleared by a write of 1 (section 4.1.2). | |
GLOBAL_DIAG1 (section 5.3.2.6); reset value 0x0000 | |
| constexpr uint16_t | tle92466ed::reg::kDiag1VrIrefUv = 0x0001U |
| VR_IREF_UV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1VrIrefOv = 0x0002U |
| VR_IREF_OV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1Vdd2v5Uv = 0x0004U |
| VDD2V5_UV (rw). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1Vdd2v5Ov = 0x0008U |
| VDD2V5_OV (rw). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1RefUv = 0x0010U |
| REF_UV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1RefOv = 0x0020U |
| REF_OV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1VpreOv = 0x0040U |
| VPRE_OV (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag1HvadcErr = 0x8000U |
| constexpr uint16_t | tle92466ed::reg::kDiag1Flags = 0x807FU |
| Every flag of GLOBAL_DIAG1. | |
| constexpr uint16_t | tle92466ed::reg::kDiag1RwhFlags = 0x8073U |
| The rwh flags, cleared by a write of 1; the two rw flags (VDD2V5) are cleared by a 0. | |
GLOBAL_DIAG2 (section 5.3.2.7, Table 21); reset value 0x0000 (bit 0 undefined) | |
| constexpr uint16_t | tle92466ed::reg::kDiag2RegEccErr = 0x0002U |
| REG_ECC_ERR (rwh). | |
| constexpr uint16_t | tle92466ed::reg::kDiag2OtpEccErr = 0x0008U |
| OTP_ECC_ERR (rwh): two clears (4.9.7). | |
| constexpr uint16_t | tle92466ed::reg::kDiag2OtpVirgin = 0x0010U |
| OTP_VIRGIN (rwh): must always be 0. | |
| constexpr uint16_t | tle92466ed::reg::kDiag2Flags = 0x001AU |
| Every flag of GLOBAL_DIAG2. | |
FB_FRZ, FB_UPD (sections 5.3.2.9, 5.3.2.10); reset values 0x0000 | |
| constexpr uint16_t | tle92466ed::reg::kChannelBits = 0x003FU |
| One bit per channel, CH0 at bit 0. | |
DIAG_ERR_CHGR, per channel byte (section 5.3.2.12); reset value 0x0000 | |
| constexpr uint16_t | tle92466ed::reg::kErrOlsg = 0x0001U |
| OLSG: open load or short to ground, on-state. | |
| constexpr uint16_t | tle92466ed::reg::kErrOl = 0x0002U |
| OL: open load, off-state. | |
| constexpr uint16_t | tle92466ed::reg::kErrOc = 0x0004U |
| OC: overcurrent; two clears (4.9.6, 4.11.2). | |
| constexpr uint16_t | tle92466ed::reg::kErrSg = 0x0008U |
| SG: short to ground, off-state. | |
| constexpr uint16_t | tle92466ed::reg::kErrOte = 0x0010U |
| OTE: channel overtemperature error. | |
| constexpr uint16_t | tle92466ed::reg::kErrFlags = 0x001FU |
| Every flag of one channel. | |
DIAG_WARN_CHGR, per channel byte (section 5.3.2.13); reset value 0x1010 | |
| constexpr uint16_t | tle92466ed::reg::kWarnPwmReg = 0x0001U |
| PWM_REG_WARN: ICC PWM regulation. | |
| constexpr uint16_t | tle92466ed::reg::kWarnIReg = 0x0002U |
| I_REG_WARN: ICC current regulation. | |
| constexpr uint16_t | tle92466ed::reg::kWarnOtw = 0x0004U |
| OTW: channel overtemperature warning. | |
| constexpr uint16_t | tle92466ed::reg::kWarnOlsg = 0x0008U |
| OLSG_WARN. | |
| constexpr uint16_t | tle92466ed::reg::kWarnOlsgChkNok = 0x0010U |
| OLSG_WARN_CHK_NOK: cleared by a read. | |
| constexpr uint16_t | tle92466ed::reg::kWarnFlags = 0x001FU |
| Every flag of one channel. | |
| constexpr uint16_t | tle92466ed::reg::kDiagWarnReset = 0x1010U |
| After reset: both checks "not possible". | |
FAULT_MASK0..2 (sections 5.3.2.14 to 5.3.2.16) | |
| constexpr uint16_t | tle92466ed::reg::kMask0EnPin = 0x2000U |
| EN_PIN_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask0SupInt = 0x4000U |
| SUP_NOK_INT_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask0SupExt = 0x8000U |
| SUP_NOK_EXT_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask0Reset = 0xC03FU |
| After reset. | |
| constexpr uint16_t | tle92466ed::reg::kMask1CotWarn = 0x1000U |
| COTWARN_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask1CotErr = 0x2000U |
| COTERR_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask1ClkLow = 0x4000U |
| CLK_LOW_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask1Reset = 0x703FU |
| After reset. | |
| constexpr uint16_t | tle92466ed::reg::kMask2DataErr = 0x4000U |
| DATA_ERR_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask2SpiWd = 0x8000U |
| SPI_WD_MASK. | |
| constexpr uint16_t | tle92466ed::reg::kMask2Reset = 0xC000U |
| After reset. | |
SFF_BIST (section 5.3.2.18); reset value 0x0000 | |
| constexpr uint16_t | tle92466ed::reg::kBistEn = 0x0001U |
| SMU_SLF_TST_EN: start the self-test. | |
| constexpr uint16_t | tle92466ed::reg::kBistDone = 0x0002U |
| SMU_SLF_TST_DONE. | |
| constexpr uint16_t | tle92466ed::reg::kBistFail = 0x0004U |
| SMU_SLF_TST_FAIL. | |
| constexpr uint16_t | tle92466ed::reg::kBistUerr = 0x0008U |
| SMU_SLF_TST_UERR: uncorrectable errors tested. | |
| constexpr uint16_t | tle92466ed::reg::kBistCerr = 0x0010U |
| SMU_SLF_TST_CERR: correctable errors tested. | |
FB_STAT (section 5.3.2.21, Table 23), 22 bits | |
| constexpr uint32_t | tle92466ed::reg::kStatWarnGroups = 0x000007U |
| DIAG_WARN_CHGR0..2 summary. | |
| constexpr uint32_t | tle92466ed::reg::kStatChkNokGroups = 0x000038U |
| OLSG_WARN_CHK_NOK summary. | |
| constexpr uint32_t | tle92466ed::reg::kStatClkNok = 0x000040U |
| CLK_NOK. | |
| constexpr uint32_t | tle92466ed::reg::kStatCotErr = 0x000080U |
| COTERR. | |
| constexpr uint32_t | tle92466ed::reg::kStatCotWarn = 0x000100U |
| COTWARN. | |
| constexpr uint32_t | tle92466ed::reg::kStatResEvent = 0x000200U |
| RES_event. | |
| constexpr uint32_t | tle92466ed::reg::kStatPorEvent = 0x000400U |
| POR_event. | |
| constexpr uint32_t | tle92466ed::reg::kStatDataErr = 0x000800U |
| DATA_err: OTP ECC, OTP virgin, HVADC. | |
| constexpr uint32_t | tle92466ed::reg::kStatSupNokExt = 0x001000U |
| SUP_NOK_EXT. | |
| constexpr uint32_t | tle92466ed::reg::kStatSupNokInt = 0x002000U |
| SUP_NOK_INT. | |
| constexpr uint32_t | tle92466ed::reg::kStatErrGroups = 0x01C000U |
| DIAG_ERR_CHGR0..2 summary. | |
| constexpr uint32_t | tle92466ed::reg::kStatSpiWdErr = 0x100000U |
| SPI_WD_ERR. | |
| constexpr uint32_t | tle92466ed::reg::kStatInitDone = 0x200000U |
| constexpr uint32_t | tle92466ed::reg::kStatMissionBlockers = 0x1031C0U |
| Faults that keep the chip out of Mission Mode (Figure 4). | |
SPI frames (section 5.2.3) | |
| constexpr uint32_t | tle92466ed::reg::kFrameRw = 0x0001'0000U |
| R/W bit 16: 1 = write. | |
| constexpr uint32_t | tle92466ed::reg::kWriteAddressShift = 17U |
| Write frame: address in bits 23..17. | |
| constexpr uint32_t | tle92466ed::reg::kWriteAddressMask = 0x7FU |
| A write frame's 7-bit address. | |
| constexpr uint32_t | tle92466ed::reg::kReplyModeShift = 22U |
| Reply mode in bits 23..22. | |
| constexpr uint32_t | tle92466ed::reg::kReplyMode16 = 0U |
| 00B: 16-bit reply frame. | |
| constexpr uint32_t | tle92466ed::reg::kReplyMode22 = 1U |
| 01B: 22-bit reply frame. | |
| constexpr uint32_t | tle92466ed::reg::kReplyModeCritical = 2U |
| 10B: critical fault frame. | |
| constexpr uint32_t | tle92466ed::reg::kReplyStatusShift = 17U |
| 16-bit reply: status in bits 21..17. | |
| constexpr uint32_t | tle92466ed::reg::kReplyStatusMask = 0x1FU |
| Five status bits. | |
| constexpr uint32_t | tle92466ed::reg::kStatusFrameError = 1U |
| SPI frame error. | |
| constexpr uint32_t | tle92466ed::reg::kStatusCrcError = 2U |
| The chip found a wrong MOSI CRC. | |
| constexpr uint32_t | tle92466ed::reg::kStatusWriteReadOnly = 3U |
| Write to a read-only register. | |
| constexpr uint32_t | tle92466ed::reg::kData16Mask = 0x0000'FFFFU |
| Data of a 16-bit reply. | |
| constexpr uint32_t | tle92466ed::reg::kData22Mask = 0x003F'FFFFU |
| Data of a 22-bit reply. | |
| constexpr uint32_t | tle92466ed::reg::kCrcPolynomial = 0x1DU |
| SAE J1850: x^8 + x^4 + x^3 + x^2 + 1. | |
| constexpr uint32_t | tle92466ed::reg::kCrcInit = 0xFFU |
| Initial value. | |
| constexpr uint32_t | tle92466ed::reg::kCrcXorOut = 0xFFU |
| The result is XORed with 0xFF. | |
VBAT_TH (section 5.3.2.8); reset value 0xFF19 | |
| using | tle92466ed::reg::VbatUvTh = detail::Field< uint16_t, 0U, 8U > |
| VBAT_UV_TH, 162.08 mV per count. | |
| using | tle92466ed::reg::VbatOvTh = detail::Field< uint16_t, 8U, 8U > |
| VBAT_OV_TH, 162.08 mV per count. | |
| constexpr uint16_t | tle92466ed::reg::kVbatThReset = 0xFF19U |
| After reset: UV 25 (4.05 V), OV 255. | |
WD_RELOAD (section 5.3.2.11); reset value 0x0001 | |
| using | tle92466ed::reg::WdTime = detail::Field< uint16_t, 0U, 11U > |
| WD_TIME, counts of 2^14 / f_SYS. | |
| constexpr uint16_t | tle92466ed::reg::kWdReloadReset = 0x0001U |
| After reset: one count. | |
CLK_DIV (section 5.3.2.17); reset value 0x0438 | |
| using | tle92466ed::reg::PllFbDiv = detail::Field< uint16_t, 0U, 9U > |
| PLL_FBDIV. | |
| using | tle92466ed::reg::PllRefDiv = detail::Field< uint16_t, 9U, 6U > |
| PLL_REFDIV. | |
| constexpr uint16_t | tle92466ed::reg::kClkDivExtClk = 0x8000U |
| EXT_CLK: 1 = clock from the CLK pin. | |
| constexpr uint16_t | tle92466ed::reg::kClkDivReset = 0x0438U |
| After reset: REFDIV 2, FBDIV 56, internal. | |
ICVID, PIN_STAT (sections 5.3.2.19, 5.3.2.20) | |
| using | tle92466ed::reg::IcVersion = detail::Field< uint16_t, 0U, 8U > |
| VERSION. | |
| using | tle92466ed::reg::IcManufacturer = detail::Field< uint16_t, 8U, 8U > |
| MANUFACTURER. | |
| constexpr uint16_t | tle92466ed::reg::kPinDrv0 = 0x0001U |
| DRV0 level. | |
| constexpr uint16_t | tle92466ed::reg::kPinDrv1 = 0x0002U |
| DRV1 level. | |
| constexpr uint16_t | tle92466ed::reg::kPinEn = 0x0010U |
| EN level. | |
| constexpr uint16_t | tle92466ed::reg::kPinFaultn = 0x0020U |
| FAULTN internal: 0 = fault. | |
| constexpr uint16_t | tle92466ed::reg::kPinFaultnFb = 0x0040U |
| FAULTN pin level. | |
SETPOINT (section 5.3.3.3) | |
| using | tle92466ed::reg::Target = detail::Field< uint16_t, 0U, 15U > |
| TARGET, 2 A / (2^15 - 1) per count. | |
| constexpr uint16_t | tle92466ed::reg::kAutoLimitDis = 0x8000U |
| AUTO_LIMIT_DIS. | |
| constexpr uint32_t | tle92466ed::reg::kTargetSaturation = 0x6000U |
| Higher TARGET values are saturated. | |
CTRL (section 5.3.3.4); reset value 0x4600 | |
| using | tle92466ed::reg::MinIntThresh = detail::Field< uint16_t, 0U, 8U > |
| MIN_INT_THRESH, signed. | |
| using | tle92466ed::reg::OlsgWarnWindow = detail::Field< uint16_t, 9U, 5U > |
| OLSG_WARN_WINDOW. | |
| constexpr uint16_t | tle92466ed::reg::kPwmPeriodCalcMode = 0x0100U |
| PWM_PERIOD_CALC_MODE. | |
| constexpr uint16_t | tle92466ed::reg::kOlsgWarnEn = 0x4000U |
| OLSG_WARN_EN. | |
| constexpr uint16_t | tle92466ed::reg::kCtrlReset = 0x4600U |
| After reset. | |
PERIOD (section 5.3.3.5); reset value 0x0000 | |
| using | tle92466ed::reg::PeriodMant = detail::Field< uint16_t, 0U, 8U > |
| PERIOD_MANT; 0 stops the controller. | |
| using | tle92466ed::reg::PeriodExp = detail::Field< uint16_t, 8U, 3U > |
| PERIOD_EXP. | |
| using | tle92466ed::reg::PwmCtrlParam = detail::Field< uint16_t, 12U, 4U > |
| PWM_CTRL_PARAM, the gain KI. | |
| constexpr uint16_t | tle92466ed::reg::kLowFreqRangeEn = 0x0800U |
| LOW_FREQ_RANGE_EN: period times 8. | |
INTEGRATOR_LIMIT (section 5.3.3.6); reset value 0x43FF | |
| using | tle92466ed::reg::LimValueAbs = detail::Field< uint16_t, 0U, 10U > |
| LIM_VALUE_ABS. | |
| using | tle92466ed::reg::AutoLimValueAbs = detail::Field< uint16_t, 10U, 5U > |
| AUTO_LIM_VALUE_ABS. | |
| constexpr uint16_t | tle92466ed::reg::kIntegratorLimitReset = 0x43FFU |
| After reset: 1023 and 16. | |
DITHER_CLK_DIV, DITHER_STEP, DITHER_CTRL (sections 5.3.3.7 to 5.3.3.9) | |
| using | tle92466ed::reg::DitherMant = detail::Field< uint16_t, 0U, 10U > |
| MANT of t_ref_clk. | |
| using | tle92466ed::reg::DitherExp = detail::Field< uint16_t, 10U, 4U > |
| EXP of t_ref_clk and TON. | |
| using | tle92466ed::reg::DitherFlat = detail::Field< uint16_t, 0U, 8U > |
| FLAT. | |
| using | tle92466ed::reg::DitherSteps = detail::Field< uint16_t, 8U, 8U > |
| STEPS. | |
| using | tle92466ed::reg::DitherStepSize = detail::Field< uint16_t, 0U, 12U > |
| STEP_SIZE. | |
| using | tle92466ed::reg::FastMeas = detail::Field< uint16_t, 14U, 2U > |
| FAST_MEAS. | |
| constexpr uint16_t | tle92466ed::reg::kDitherPwmSyncEn = 0x4000U |
| DITHER_PWM_SYNC_EN. | |
| constexpr uint16_t | tle92466ed::reg::kDitherSetpointSyncEn = 0x8000U |
| DITHER_SETPOINT_SYNC_EN. | |
| constexpr uint16_t | tle92466ed::reg::kDeepDither = 0x2000U |
| DEEP_DITHER. | |
CH_CONFIG (section 5.3.3.10); reset value 0x0003 | |
| using | tle92466ed::reg::SlewRate = detail::Field< uint16_t, 0U, 2U > |
| SLEWR. | |
| using | tle92466ed::reg::IDiag = detail::Field< uint16_t, 2U, 2U > |
| I_DIAG. | |
| using | tle92466ed::reg::OlTh = detail::Field< uint16_t, 4U, 3U > |
| OL_TH, eighths of the setpoint. | |
| using | tle92466ed::reg::OlThFixed = detail::Field< uint16_t, 7U, 6U > |
| OL_TH_FIXED. | |
| using | tle92466ed::reg::OffDiagCh = detail::Field< uint16_t, 14U, 2U > |
| OFF_DIAG_CH. | |
| constexpr uint16_t | tle92466ed::reg::kOcDiagEn = 0x2000U |
| OC_DIAG_EN (self-clearing, rwh). | |
| constexpr uint32_t | tle92466ed::reg::kOffDiagDisabled = 3U |
| OFF_DIAG_CH = 11B: diagnosis off. | |
| constexpr uint16_t | tle92466ed::reg::kChConfigReset = 0x0003U |
| After reset: 10 V/us, diagnosis on. | |
MODE, TON, CTRL_INT_THRESH (sections 5.3.3.11 to 5.3.3.13) | |
| using | tle92466ed::reg::ChMode = detail::Field< uint16_t, 0U, 4U > |
| CH_MODE. | |
| using | tle92466ed::reg::TonMant = detail::Field< uint16_t, 0U, 10U > |
| TON_MANT. | |
| using | tle92466ed::reg::OlsgTimeout = detail::Field< uint16_t, 10U, 6U > |
| OLSG_TIMEOUT. | |
| using | tle92466ed::reg::IntThresh = detail::Field< uint16_t, 0U, 9U > |
| INT_THRESH. | |
| constexpr uint32_t | tle92466ed::reg::kChModeMeasurement = 0xCU |
| CH_MODE = CH: free-running measurement. | |
| constexpr uint16_t | tle92466ed::reg::kCtrlIntThreshReset = 0x0003U |
| After reset. | |
TLE92466ED register map: addresses, bit fields, reset values and the frame CRC (datasheet section 5.3).
Registers hold 16 bits; the feedback and status registers at offset 0x200 and above answer with 22 bits (section 5.2.3.4). Central registers sit at fixed addresses (Table 19); each channel has a bank of control registers at its base address and a bank of read-only feedback registers at the base plus 0x200 (Tables 24 and 25). A write frame carries a 7-bit address (section 5.2.3.1), so only the registers below 0x80 are writable; a read frame carries the full 16-bit address (section 5.2.3.2).