Commit 8969a24d40f1c08f64cc68e94e41bf23b112036a
Committed by
David Gräff
1 parent
0e6d658a
Add some readmes to some directories
Showing
5 changed files
with
53 additions
and
1 deletions
CMakeLists.txt
| ... | ... | @@ -35,7 +35,7 @@ if("${CMAKE_SYSTEM}" MATCHES "Linux") |
| 35 | 35 | endif() |
| 36 | 36 | |
| 37 | 37 | # Add auxiliary files to the project, so that these files appear in VisualStudio/QtCreator |
| 38 | -file(GLOB_RECURSE MDFILES "docs/*.md") | |
| 38 | +file(GLOB_RECURSE MDFILES "docs/*.md" "openhantek/*.md") | |
| 39 | 39 | add_custom_target(readme SOURCES readme.md ${MDFILES}) |
| 40 | 40 | |
| 41 | 41 | # Add "cppcheck" command | ... | ... |
openhantek/src/hantekdso/readme.md
0 → 100644
| 1 | +# Content | |
| 2 | +This directory contains the heart of OpenHantek, the `HantekDSOControl` class | |
| 3 | +and all model definitions. | |
| 4 | + | |
| 5 | +## HantekDSOControl | |
| 6 | +The `HantekDSOControl` class manages all device settings (gain, offsets, channels, etc) | |
| 7 | +and outputs `DSOSamples` via `getLastSamples()`. Observers are notified of a new set of | |
| 8 | +available samples via the signal `samplesAvailable()`. | |
| 9 | +Current device settings are stored in the `controlsettings` field and retriveable with the | |
| 10 | +corresponding getter `getDeviceSettings()`. | |
| 11 | + | |
| 12 | +`HantekDSOControl` may only contain state fields to realize the fetch samples / modify settings loop. | |
| 13 | + | |
| 14 | +## Model | |
| 15 | +A model needs a `ControlSpecification`, which | |
| 16 | +describes what specific Hantek protocol commands are to be used. All known | |
| 17 | +models are specified in the subdirectory `models`. | |
| 18 | + | |
| 19 | +# Namespace | |
| 20 | +Relevant classes in here are in the `DSO` namespace. | |
| 21 | + | |
| 22 | +# Dependency | |
| 23 | +* Files in this directory depend on structs in the `usb` folder. | |
| 24 | +* Files in this directory depend on structs in the `hantekprotocol` folder. | ... | ... |
openhantek/src/hantekprotocol/readme.md
0 → 100644
| 1 | +# Content | |
| 2 | +This directory contains all Enums, Structs, Bit- and Byte values | |
| 3 | +that together composes the Hantek protocol (in different model variants). | |
| 4 | + | |
| 5 | +# Namespace | |
| 6 | +Everything in here needs to be in the `Hantek` namespace. | |
| 7 | + | |
| 8 | +# Dependency | |
| 9 | +Files in this directory may depend on structs in the `usb` folder, because | |
| 10 | +the Hantek protocol is only defined for USB devices and some | |
| 11 | +data structures may depend on USB specific handling. | ... | ... |
openhantek/src/post/readme.md
0 → 100644
| 1 | +# Content | |
| 2 | +This directory contains post processing algorithms, namely | |
| 3 | + | |
| 4 | +* SoftwareTrigger: Determines a steady point, is used by GraphGenerator, | |
| 5 | +* GraphGenerator: Applies all user settings (gain, offset, trigger point) and produces vertices, | |
| 6 | +* MathChannelGenerator: Creates a math channel on top of the pysical channels | |
| 7 | + | |
| 8 | +# Dependency | |
| 9 | +* Files in this directory depend on structs in the `hantekprotocol` folder. | |
| 10 | +* Classes in here probably depend on the user settings (../viewsetting.h, ../scopesetting.h) | ... | ... |
openhantek/src/usb/readme.md
0 → 100644