|
TLE92466ED Driver 2.0.0
API reference
|
SETPOINT register bit definitions (per channel) More...
Functions | |
| constexpr uint16_t | CalculateTarget (uint16_t current_ma, bool parallel_mode=false) noexcept |
| Calculate setpoint value for desired current. | |
| constexpr uint16_t | CalculateTargetUa (uint32_t current_ua, bool parallel_mode=false) noexcept |
| Calculate setpoint value for a desired current in microamperes. | |
| constexpr uint16_t | CalculateCurrent (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) | |
SETPOINT register bit definitions (per channel)
15-bit current setpoint with auto-limit disable.
Current Calculation:
Current Capability (per datasheet):
* Bit 15 : AUTO_LIMIT_DIS - Auto-limit disable * Bits 14-0 : TARGET - Current setpoint value *
|
constexprnoexcept |
Calculate current from setpoint value.
| target | Setpoint register value |
| parallel_mode | true if channel is in parallel mode |
|
constexprnoexcept |
Calculate setpoint value for desired current.
| current_ma | Desired current in milliamperes (0-2000 single, 0-4000 parallel) |
| parallel_mode | true if channel is in parallel mode |
|
constexprnoexcept |
Calculate setpoint value for a desired current in microamperes.
TARGET is 15-bit: one LSB is 2000 mA / 32767 ≈ 61 µA (single) or 122 µA (parallel). The mA overload throws that resolution away, which matters for proportional valves whose flow moves 1–2 slpm per mA. Rounds to nearest, saturates at MAX_TARGET.
| current_ua | Desired current in µA (0–2 000 000 single, 0–4 000 000 parallel). |
|
constexpr |
Disable auto-limit.
|
constexpr |
Default (0A)
|
constexpr |
Maximum safe target value (datasheet saturates above 0x6000)
|
constexpr |
Target current mask.