|
|
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.
|
| |
|
|
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.
|
| |
|
|
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.
|
| |
|
|
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.
|
| |
|
|
using | tle92466ed::reg::TpMant = detail::Field< uint32_t, 0U, 11U > |
| | FB_DC.TP_MANT: measurement period.
|
| |
|
using | tle92466ed::reg::ToMant = detail::Field< uint32_t, 11U, 11U > |
| | FB_DC.TO_MANT: on-time.
|
| |
|
using | tle92466ed::reg::VbatAvgMant = detail::Field< uint32_t, 0U, 11U > |
| | FB_VBAT.VBAT_AVG_MANT.
|
| |
|
using | tle92466ed::reg::FbExp = detail::Field< uint32_t, 12U, 4U > |
| | FB_VBAT.EXP, FB_I_AVG.EXP.
|
| |
|
using | tle92466ed::reg::DitherQuadCnt = detail::Field< uint32_t, 16U, 2U > |
| | FB_VBAT.DITHER_QUAD_CNT.
|
| |
|
using | tle92466ed::reg::DitherPeriodCnt = detail::Field< uint32_t, 18U, 2U > |
| | FB_VBAT.DITHER_PERIOD_CNT.
|
| |
|
using | tle92466ed::reg::IAvgMant = detail::Field< uint32_t, 0U, 12U > |
| | FB_I_AVG.I_AVG_MANT, signed.
|
| |
|
using | tle92466ed::reg::IMin = detail::Field< uint32_t, 0U, 10U > |
| | FB_IMIN_IMAX.IMIN, signed.
|
| |
|
using | tle92466ed::reg::IMax = detail::Field< uint32_t, 10U, 10U > |
| | FB_IMIN_IMAX.IMAX, signed.
|
| |
|
using | tle92466ed::reg::PMin = detail::Field< uint32_t, 0U, 10U > |
| | FB_PERIOD_MIN_MAX.PMIN.
|
| |
|
using | tle92466ed::reg::PMax = detail::Field< uint32_t, 10U, 10U > |
| | FB_PERIOD_MIN_MAX.PMAX.
|
| |
|
|
using | tle92466ed::reg::VioRaw = detail::Field< uint32_t, 0U, 11U > |
| | VIO, 3.4534 mV per count.
|
| |
|
using | tle92466ed::reg::VddRaw = detail::Field< uint32_t, 11U, 11U > |
| | VDD, 3.4534 mV per count.
|
| |
|
using | tle92466ed::reg::TempRaw = detail::Field< uint32_t, 0U, 11U > |
| | TEMP_VALUE.
|
| |
|
using | tle92466ed::reg::VbatRaw = detail::Field< uint32_t, 11U, 11U > |
| | VBAT, 41.47 V / (2^11 - 1) per count.
|
| |
|
|
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 |
| |
|
|
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).
|
| |
|
|
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.
|
| |
|
|
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.
|
| |
|
|
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).
|
| |
|
|
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.
|
| |
|
|
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.
|
| |
|
|
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".
|
| |
|
|
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.
|
| |
|
|
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).
|
| |
|
|
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.
|
| |
Addresses, fields and reset values.