# `ExCEP.Cluster.ControlClient`

High-level Business Channel (TCP 9902) Cluster -> Gateway service client.

Covers all CSG CEP TS2.2 Section 8 downlink operations:
- Model discovery (`get_model/3`)
- Subscriptions (`subscribe/4`, `get_subscriptions/4`)
- Data & Parameter reads (`read_data/4`, `read_parameters/4`)
- Remote Control & Regulation: Select / Execute / Cancel / Direct / full `sbo_control/6`
- Parameter/Setting Preset / Activate / Cancel / full `update_parameters/6`
- Topology, Message files, and Historical data queries

# `activate_parameters`

# `cancel_parameters`

# `direct_control`

Executes a direct control command (`:yk_direct` or `:yt_direct`).

# `get_history`

# `get_message_files`

# `get_model`

# `get_subscriptions`

# `get_topo_files`

# `preset_parameters`

# `read_data`

# `read_parameters`

# `sbo_control`

```elixir
@spec sbo_control(
  GenServer.server(),
  String.t(),
  String.t(),
  String.t(),
  :yk | :yt,
  term(),
  keyword()
) :: {:ok, ExCEP.Codec.DataAsdu.t()} | {:error, term()}
```

Executes a complete Select-Before-Operate (SBO) sequence:
1. `select` (`:yk_select` or `:yt_select`)
2. `execute` (`:yk_execute` or `:yt_execute`)

# `send_control`

```elixir
@spec send_control(
  GenServer.server(),
  String.t(),
  String.t(),
  String.t(),
  ExCEP.Common.Types.ctrl_type(),
  term(),
  keyword()
) :: {:ok, ExCEP.Codec.DataAsdu.t()} | {:error, term()}
```

# `subscribe`

# `update_parameters`

Performs a full two-phase Preset -> Activate parameter update.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
