How mccdaq/daqhats works
daqhats is a Raspberry Pi library for discovering MCC DAQ HATs and reading or controlling five board families through C and Python APIs. A typical workflow discovers boards, opens a board-specific interface, then performs measurements, scans, or output/control operations. The graph also preserves the documented board-management and firmware-update tools. Source excerpts are partial, so some internal transport and tool-to-library relationships are omitted where the evidence does not establish them.
Main entry points: hats.py Board discovery · daqhats.h Shared C API · mcc128.c MCC 128 driver · mcc134.c MCC 134 driver
Components 27
Python API
- Board discovery
daqhats/hats.py - MCC 118 Python
daqhats/mcc118.py - MCC 128 Python
daqhats/mcc128.py - MCC 134 Python
daqhats/mcc134.py - MCC 152 Python
daqhats/mcc152.py - MCC 172 Python
daqhats/mcc172.py
C Board APIs
- Shared C API
include/daqhats.h - MCC 118 API
include/mcc118.h - MCC 128 API
include/mcc128.h - MCC 134 API
include/mcc134.h - MCC 152 API
include/mcc152.h - MCC 172 API
include/mcc172.h - MCC 118 driver
lib/mcc118.c - MCC 128 driver
lib/mcc128.c - MCC 134 driver
lib/mcc134.c - MCC 152 driver
lib/mcc152.c - MCC 172 driver
lib/mcc172.c
Shared Internals
- System utilities
lib/util.c - GPIO control
lib/gpio.h - JSON parser
lib/cJSON.c - NIST conversions
lib/nist.c
Board Utilities
- DAQ HAT Manager
tools/applications/daqhats_manager.c - Board listing
tools/daqhats_list_boards.c - MCC 118 updater
tools/mcc118_firmware_update.c - MCC 128 updater
tools/mcc128_firmware_update.c - MCC 172 updater
tools/mcc172_firmware_update.c
Other components
- Application user
Connections 45
- Application user → Board discovery: discovers boards
README.md - Application user → MCC 118 Python: uses board API
README.md - Application user → MCC 128 Python: uses board API
- Application user → MCC 134 Python: uses board API
- Application user → MCC 152 Python: uses board API
- Application user → MCC 172 Python: uses board API
- Board discovery → MCC 118 Python: selects board
daqhats/mcc118.py - Board discovery → MCC 128 Python: selects board
daqhats/mcc128.py - Board discovery → MCC 134 Python: selects board
daqhats/mcc134.py - Board discovery → MCC 152 Python: selects board
daqhats/mcc152.py - Board discovery → MCC 172 Python: selects board
daqhats/mcc172.py - MCC 118 Python → Board discovery: imports shared API
daqhats/mcc118.py - MCC 128 Python → Board discovery: imports shared API
daqhats/mcc128.py - MCC 134 Python → Board discovery: imports shared API
daqhats/mcc134.py - MCC 152 Python → Board discovery: imports shared API
daqhats/mcc152.py - MCC 172 Python → Board discovery: imports shared API
daqhats/mcc172.py - MCC 118 driver → System utilities: uses utilities
lib/mcc118.c - MCC 128 driver → System utilities: uses utilities
lib/mcc128.c - MCC 134 driver → System utilities: uses utilities
lib/mcc134.c - MCC 172 driver → System utilities: uses utilities
lib/mcc172.c - MCC 118 driver → JSON parser: parses calibration
lib/mcc118.c - MCC 128 driver → JSON parser: parses calibration
lib/mcc128.c - MCC 134 driver → JSON parser: parses calibration
lib/mcc134.c - MCC 172 driver → JSON parser: parses calibration
lib/mcc172.c - MCC 134 driver → NIST conversions: uses conversions
lib/mcc134.c - MCC 128 driver → GPIO control: uses GPIO
lib/mcc128.c - MCC 172 driver → GPIO control: uses GPIO
lib/mcc172.c - MCC 118 driver → MCC 118 API: implements API
- MCC 128 driver → MCC 128 API: implements API
- MCC 134 driver → MCC 134 API: implements API
- MCC 152 driver → MCC 152 API: implements API
- MCC 172 driver → MCC 172 API: implements API
- Shared C API → MCC 118 API: includes declarations
include/daqhats.h - Shared C API → MCC 128 API: includes declarations
include/daqhats.h - Shared C API → MCC 134 API: includes declarations
include/daqhats.h - Shared C API → MCC 152 API: includes declarations
include/daqhats.h - Shared C API → MCC 172 API: includes declarations
include/daqhats.h - Application user → DAQ HAT Manager: manages stack
README.md - Application user → Board listing: lists boards
README.md - Application user → MCC 118 updater: updates firmware
README.md - Application user → MCC 128 updater: updates firmware
README.md - Application user → MCC 172 updater: updates firmware
README.md - MCC 118 updater → MCC 118 API: calls device API
tools/mcc118_firmware_update.c - MCC 128 updater → MCC 128 API: calls device API
- MCC 172 updater → MCC 172 API: calls device API