TLE92466ED Driver 2.0.0
API reference
Loading...
Searching...
No Matches
Functions | Variables
tle92466ed::TON Namespace Reference

TON register bit definitions. More...

Functions

constexpr uint16_t Build (uint16_t ton_mant, uint8_t olsg_timeout) noexcept
 Pack TON_MANT + OLSG_TIMEOUT into the raw register value.
 

Variables

constexpr uint16_t TON_MANT_MASK = 0x03FFu
 10-bit mantissa mask
 
constexpr uint16_t OLSG_TIMEOUT_SHIFT = 10u
 OLSG timeout shift.
 
constexpr uint16_t OLSG_TIMEOUT_MASK = 0xFC00u
 6-bit OLSG timeout mask
 
constexpr uint16_t DEFAULT = 0x0000
 POR default.
 

Detailed Description

TON register bit definitions.

Per datasheet \u00a75.3.3.12 p.96. Provides: bits 9:0 TON_MANT On-time mantissa (exponent comes from DITHER_CLK_DIV.EXP, NOT PERIOD.EXP). bits 15:10 OLSG_TIMEOUT Open-load / short-to-ground check timeout.

Used in DIRECT_DRIVE_SPI mode to control constant on-time without dither. Formula: t_ON = TON_MANT * 2^EXP / fSYS (EXP from per-channel dither clock).

Function Documentation

◆ Build()

constexpr uint16_t tle92466ed::TON::Build ( uint16_t  ton_mant,
uint8_t  olsg_timeout 
)
constexprnoexcept

Pack TON_MANT + OLSG_TIMEOUT into the raw register value.

Variable Documentation

◆ DEFAULT

constexpr uint16_t tle92466ed::TON::DEFAULT = 0x0000
constexpr

POR default.

◆ OLSG_TIMEOUT_MASK

constexpr uint16_t tle92466ed::TON::OLSG_TIMEOUT_MASK = 0xFC00u
constexpr

6-bit OLSG timeout mask

◆ OLSG_TIMEOUT_SHIFT

constexpr uint16_t tle92466ed::TON::OLSG_TIMEOUT_SHIFT = 10u
constexpr

OLSG timeout shift.

◆ TON_MANT_MASK

constexpr uint16_t tle92466ed::TON::TON_MANT_MASK = 0x03FFu
constexpr

10-bit mantissa mask