# digitaldevices/dddvb architecture

> Architecture diagram of the GitHub repository digitaldevices/dddvb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/digitaldevices/dddvb
- Repository: https://github.com/digitaldevices/dddvb

## Overview

DDBridge is a Linux driver package for Digital Devices DVB demodulator and modulator cards, accompanied by command-line utilities and a DVB client library. The product workflow is: applications request tuning, transport-stream, conditional-access, or modulation operations through DVB device interfaces and driver ioctls; the driver configures board I/O and tuner/front-end hardware, then exposes DVB services and stream handling. The source excerpts show selected driver, client, and tool relationships; other capabilities are represented from the README and source index, so some subsystem links are intentionally omitted.

Main entry points: [`ddbridge/ddbridge-core.c`](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-core.c) (Device core), [`lib/src/libdddvb.h`](https://github.com/digitaldevices/dddvb/blob/master/lib/src/libdddvb.h) (DVB client library), [`ddbridge/ddbridge-modulator.c`](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-modulator.c) (Modulator), [`frontends/stv090x.c`](https://github.com/digitaldevices/dddvb/blob/master/frontends/stv090x.c) (STV090x demodulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_driver["Bridge driver"]
  node_ddbridge_core["Device core<br/>[ddbridge-core.c]"]
  node_board_model["Board model<br/>[ddbridge.h]"]
  node_register_io["Register I/O<br/>[ddbridge-io.h]"]
  node_register_map["Register map<br/>[ddbridge-regs.h]"]
  node_driver_ioctl["Driver ioctls<br/>[ddbridge-ioctl.h]"]
  node_mci_protocol["MCI protocol<br/>[ddbridge-mci.h]"]
  node_modulator["Modulator"]
end

subgraph group_dvb["DVB services"]
  node_dvb_frontend["Frontend API<br/>[dvb_frontend.c]"]
  node_dvb_demux["Demux<br/>[dvb_demux.c]"]
  node_dvb_ca["Conditional access<br/>[dvb_ca_en50221.c]"]
  node_dvb_net["DVB networking<br/>[dvb_net.c]"]
  node_frontend_abi["Frontend definitions<br/>[frontend.h]"]
end

subgraph group_frontends["Tuner hardware"]
  node_drxk["DRXK demodulator<br/>[drxk_hard.c]"]
  node_drxk_maps["DRXK register maps<br/>[drxk_map.h]"]
  node_stv090x["STV090x demodulator<br/>[stv090x.c]"]
  node_stv090x_regs["STV090x registers<br/>[stv090x_reg.h]"]
  node_stv6110x["STV6110x tuner<br/>[stv6110x.h]"]
end

subgraph group_client["Client library"]
  node_dddvb_library["DVB client library<br/>[libdddvb.h]"]
  node_dvb_tuning["Tuning and stats<br/>[dvb.c]"]
  node_ca_client["CAM handling<br/>[ca.c]"]
end

subgraph group_tools["Device utilities"]
  node_zap_tool["DVB zap tool<br/>[ddzap.c]"]
  node_modtest_tool["Modulator utility<br/>[modtest.c]"]
  node_device_info["Device inspector<br/>[ddinfo.c]"]
  node_octonet_flash["OctoNet flash<br/>[flash.c]"]
end

node_operator(("Application user"))

node_operator -->|"runs"| node_zap_tool
node_operator -->|"runs"| node_modtest_tool
node_operator -->|"runs"| node_device_info
node_ddbridge_core -->|"uses definitions"| node_board_model
node_ddbridge_core -->|"uses I/O"| node_register_io
node_ddbridge_core -->|"uses commands"| node_driver_ioctl
node_ddbridge_core -->|"connects frontend"| node_dvb_demux
node_modulator -->|"uses definitions"| node_board_model
node_modulator -->|"writes registers"| node_register_io
node_modulator -->|"uses commands"| node_driver_ioctl
node_drxk -->|"uses maps"| node_drxk_maps
node_stv090x -->|"uses registers"| node_stv090x_regs
node_stv090x -->|"references tuner"| node_stv6110x
node_dvb_tuning -->|"uses API"| node_dddvb_library
node_ca_client -->|"uses API"| node_dddvb_library
node_zap_tool -->|"uses API"| node_dddvb_library
node_modtest_tool -->|"uses protocol"| node_mci_protocol
node_device_info -->|"uses commands"| node_driver_ioctl
node_dddvb_library -.->|"controls tuning"| node_dvb_frontend
node_ca_client -.->|"uses CA interface"| node_dvb_ca
node_ddbridge_core -.->|"attaches hardware"| node_drxk
node_ddbridge_core -.->|"attaches hardware"| node_stv090x
node_operator -->|"runs"| node_octonet_flash

click node_ddbridge_core "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-core.c"
click node_board_model "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge.h"
click node_register_io "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-io.h"
click node_register_map "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-regs.h"
click node_driver_ioctl "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-ioctl.h"
click node_mci_protocol "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-mci.h"
click node_modulator "https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-modulator.c"
click node_dvb_frontend "https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_frontend.c"
click node_dvb_demux "https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_demux.c"
click node_dvb_ca "https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_ca_en50221.c"
click node_dvb_net "https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_net.c"
click node_frontend_abi "https://github.com/digitaldevices/dddvb/blob/master/include/linux/dvb/frontend.h"
click node_drxk "https://github.com/digitaldevices/dddvb/blob/master/frontends/drxk_hard.c"
click node_drxk_maps "https://github.com/digitaldevices/dddvb/blob/master/frontends/drxk_map.h"
click node_stv090x "https://github.com/digitaldevices/dddvb/blob/master/frontends/stv090x.c"
click node_stv090x_regs "https://github.com/digitaldevices/dddvb/blob/master/frontends/stv090x_reg.h"
click node_stv6110x "https://github.com/digitaldevices/dddvb/blob/master/frontends/stv6110x.h"
click node_dddvb_library "https://github.com/digitaldevices/dddvb/blob/master/lib/src/libdddvb.h"
click node_dvb_tuning "https://github.com/digitaldevices/dddvb/blob/master/lib/src/dvb.c"
click node_ca_client "https://github.com/digitaldevices/dddvb/blob/master/lib/src/ca.c"
click node_zap_tool "https://github.com/digitaldevices/dddvb/blob/master/lib/ddzap.c"
click node_modtest_tool "https://github.com/digitaldevices/dddvb/blob/master/apps/modtest.c"
click node_device_info "https://github.com/digitaldevices/dddvb/blob/master/apps/ddinfo.c"
click node_octonet_flash "https://github.com/digitaldevices/dddvb/blob/master/apps/octonet/flash.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ddbridge_core,node_board_model,node_register_io,node_register_map,node_driver_ioctl,node_mci_protocol,node_modulator,node_operator toneBlue
class node_dvb_frontend,node_dvb_demux,node_dvb_ca,node_dvb_net,node_frontend_abi toneAmber
class node_drxk,node_drxk_maps,node_stv090x,node_stv090x_regs,node_stv6110x toneMint
class node_dddvb_library,node_dvb_tuning,node_ca_client toneRose
class node_zap_tool,node_modtest_tool,node_device_info,node_octonet_flash toneIndigo
```

## Components

### Bridge driver

- [Device core](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-core.c): `ddbridge/ddbridge-core.c`
- [Board model](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge.h): `ddbridge/ddbridge.h`
- [Register I/O](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-io.h): `ddbridge/ddbridge-io.h`
- [Register map](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-regs.h): `ddbridge/ddbridge-regs.h`
- [Driver ioctls](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-ioctl.h): `ddbridge/ddbridge-ioctl.h`
- [MCI protocol](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-mci.h): `ddbridge/ddbridge-mci.h`
- [Modulator](https://github.com/digitaldevices/dddvb/blob/master/ddbridge/ddbridge-modulator.c): `ddbridge/ddbridge-modulator.c`

### DVB services

- [Frontend API](https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_frontend.c): `dvb-core/dvb_frontend.c`
- [Demux](https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_demux.c): `dvb-core/dvb_demux.c`
- [Conditional access](https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_ca_en50221.c): `dvb-core/dvb_ca_en50221.c`
- [DVB networking](https://github.com/digitaldevices/dddvb/blob/master/dvb-core/dvb_net.c): `dvb-core/dvb_net.c`
- [Frontend definitions](https://github.com/digitaldevices/dddvb/blob/master/include/linux/dvb/frontend.h): `include/linux/dvb/frontend.h`

### Tuner hardware

- [DRXK demodulator](https://github.com/digitaldevices/dddvb/blob/master/frontends/drxk_hard.c): `frontends/drxk_hard.c`
- [DRXK register maps](https://github.com/digitaldevices/dddvb/blob/master/frontends/drxk_map.h): `frontends/drxk_map.h`
- [STV090x demodulator](https://github.com/digitaldevices/dddvb/blob/master/frontends/stv090x.c): `frontends/stv090x.c`
- [STV090x registers](https://github.com/digitaldevices/dddvb/blob/master/frontends/stv090x_reg.h): `frontends/stv090x_reg.h`
- [STV6110x tuner](https://github.com/digitaldevices/dddvb/blob/master/frontends/stv6110x.h): `frontends/stv6110x.h`

### Client library

- [DVB client library](https://github.com/digitaldevices/dddvb/blob/master/lib/src/libdddvb.h): `lib/src/libdddvb.h`
- [Tuning and stats](https://github.com/digitaldevices/dddvb/blob/master/lib/src/dvb.c): `lib/src/dvb.c`
- [CAM handling](https://github.com/digitaldevices/dddvb/blob/master/lib/src/ca.c): `lib/src/ca.c`

### Device utilities

- [DVB zap tool](https://github.com/digitaldevices/dddvb/blob/master/lib/ddzap.c): `lib/ddzap.c`
- [Modulator utility](https://github.com/digitaldevices/dddvb/blob/master/apps/modtest.c): `apps/modtest.c`
- [Device inspector](https://github.com/digitaldevices/dddvb/blob/master/apps/ddinfo.c): `apps/ddinfo.c`
- [OctoNet flash](https://github.com/digitaldevices/dddvb/blob/master/apps/octonet/flash.c): `apps/octonet/flash.c`

### Other components

- **Application user**

## Connections

- Application user → DVB zap tool: runs (evidence: `lib/ddzap.c`)
- Application user → Modulator utility: runs (evidence: `apps/modtest.c`)
- Application user → Device inspector: runs (evidence: `apps/ddinfo.c`)
- Device core → Board model: uses definitions (evidence: `ddbridge/ddbridge-core.c`)
- Device core → Register I/O: uses I/O (evidence: `ddbridge/ddbridge-core.c`)
- Device core → Driver ioctls: uses commands (evidence: `ddbridge/ddbridge-core.c`)
- Device core → Demux: connects frontend (evidence: `ddbridge/ddbridge-core.c`)
- Modulator → Board model: uses definitions (evidence: `ddbridge/ddbridge-modulator.c`)
- Modulator → Register I/O: writes registers (evidence: `ddbridge/ddbridge-modulator.c`)
- Modulator → Driver ioctls: uses commands (evidence: `ddbridge/ddbridge-modulator.c`)
- DRXK demodulator → DRXK register maps: uses maps (evidence: `frontends/drxk_hard.c`)
- STV090x demodulator → STV090x registers: uses registers (evidence: `frontends/stv090x.c`)
- STV090x demodulator → STV6110x tuner: references tuner (evidence: `frontends/stv090x.c`)
- Tuning and stats → DVB client library: uses API (evidence: `lib/src/dvb.c`)
- CAM handling → DVB client library: uses API (evidence: `lib/src/ca.c`)
- DVB zap tool → DVB client library: uses API (evidence: `lib/ddzap.c`)
- Modulator utility → MCI protocol: uses protocol (evidence: `apps/modtest.c`)
- Device inspector → Driver ioctls: uses commands (evidence: `apps/ddinfo.c`)
- DVB client library → Frontend API: controls tuning
- CAM handling → Conditional access: uses CA interface
- Device core → DRXK demodulator: attaches hardware
- Device core → STV090x demodulator: attaches hardware
- Application user → OctoNet flash: runs
