set_level()#

BK85XXB.set_level(
mode: LoadMode,
value: float,
channel: int,
curr_limit: float | None,
) → None[source]#

Set the operating level on channel in the units appropriate for mode.

Parameters:
  • mode – Active load mode — caller passes it explicitly so the driver doesn’t need to track state. Units: CC → amperes, CV → volts, CP → watts, CR → ohms.

  • value – Operating level in mode’s units.

  • channel – Target channel (1-indexed).

  • curr_limit – Optional current limit; only meaningful in CV mode. Drivers may ignore it in other modes.