TLE92466ED Driver 0.1.0-preview
Modern C++23 driver for Infineon TLE92466ED Six-Channel Low-Side Solenoid Driver
Loading...
Searching...
No Matches
TLE92466ED::SETPOINT Namespace Reference

SETPOINT register bit definitions (per channel) More...

Functions

constexpr uint16_t calculate_target (uint16_t current_ma, bool parallel_mode=false) noexcept
 Calculate setpoint value for desired current.
 
constexpr uint16_t calculate_current (uint16_t target, bool parallel_mode=false) noexcept
 Calculate current from setpoint value.
 

Variables

constexpr uint16_t TARGET_MASK = 0x7FFF
 Target current mask.
 
constexpr uint16_t AUTO_LIMIT_DIS = (1 << 15)
 Disable auto-limit.
 
constexpr uint16_t DEFAULT = 0x0000
 Default (0A)
 
constexpr uint16_t MAX_TARGET = 0x6000
 Maximum safe target value (datasheet saturates above 0x6000)
 

Detailed Description

SETPOINT register bit definitions (per channel)

15-bit current setpoint with auto-limit disable.

Current Calculation:

  • Single mode: I_set = 2A * TARGET / 32767
  • Parallel mode: I_set = 4A * TARGET / 32767

Current Capability (per datasheet):

  • Single channel:
    • Typical continuous: ~1.5 A
    • Absolute maximum (register scale): 2.0 A
  • Parallel channels (paired):
    • Typical continuous: ~2.7 A
    • Absolute maximum (register scale): 4.0 A
Warning
The driver uses the full register scale (2A/4A) as maximum setpoint values, but the device will naturally limit to its thermal/electrical capacity (~1.5A single, ~2.7A parallel). Setting higher values may result in current regulation at the device limit rather than setpoint.
Bit Map:
* Bit 15    : AUTO_LIMIT_DIS - Auto-limit disable
* Bits 14-0 : TARGET - Current setpoint value
* 

Function Documentation

◆ calculate_current()

constexpr uint16_t TLE92466ED::SETPOINT::calculate_current ( uint16_t target,
bool parallel_mode = false )
constexprnoexcept

Calculate current from setpoint value.

Parameters
targetSetpoint register value
parallel_modetrue if channel is in parallel mode
Returns
Current in milliamperes

◆ calculate_target()

constexpr uint16_t TLE92466ED::SETPOINT::calculate_target ( uint16_t current_ma,
bool parallel_mode = false )
constexprnoexcept

Calculate setpoint value for desired current.

Parameters
current_maDesired current in milliamperes (0-2000 single, 0-4000 parallel)
parallel_modetrue if channel is in parallel mode
Returns
Setpoint register value

Variable Documentation

◆ AUTO_LIMIT_DIS

constexpr uint16_t TLE92466ED::SETPOINT::AUTO_LIMIT_DIS = (1 << 15)
constexpr

Disable auto-limit.

◆ DEFAULT

constexpr uint16_t TLE92466ED::SETPOINT::DEFAULT = 0x0000
constexpr

Default (0A)

◆ MAX_TARGET

constexpr uint16_t TLE92466ED::SETPOINT::MAX_TARGET = 0x6000
constexpr

Maximum safe target value (datasheet saturates above 0x6000)

◆ TARGET_MASK

constexpr uint16_t TLE92466ED::SETPOINT::TARGET_MASK = 0x7FFF
constexpr

Target current mask.