|
1 | 1 | /*********************************************************************************************************************** |
2 | 2 | * * |
3 | | -* libscopehal v0.1 * |
| 3 | +* libscopehal * |
4 | 4 | * * |
5 | | -* Copyright (c) 2012-2021 Andrew D. Zonenberg and contributors * |
| 5 | +* Copyright (c) 2012-2024 Andrew D. Zonenberg and contributors * |
6 | 6 | * All rights reserved. * |
7 | 7 | * * |
8 | 8 | * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * |
|
31 | 31 | @file |
32 | 32 | @author Andrew D. Zonenberg |
33 | 33 | @brief Declaration of TwoLevelTrigger |
| 34 | + @ingroup triggers |
34 | 35 | */ |
35 | 36 | #ifndef TwoLevelTrigger_h |
36 | 37 | #define TwoLevelTrigger_h |
37 | 38 |
|
38 | 39 | /** |
39 | 40 | @brief Base class for all triggers that have two thresholds rather than one |
| 41 | +
|
| 42 | + @ingroup triggers |
40 | 43 | */ |
41 | 44 | class TwoLevelTrigger : public Trigger |
42 | 45 | { |
43 | 46 | public: |
44 | 47 | TwoLevelTrigger(Oscilloscope* scope); |
45 | 48 | virtual ~TwoLevelTrigger(); |
46 | 49 |
|
47 | | - //Upper bound of range is the base class "trigger level" |
| 50 | + /** |
| 51 | + @brief Gets the upper of the two trigger levels |
| 52 | +
|
| 53 | + This is the base class "trigger level. |
| 54 | + */ |
48 | 55 | float GetUpperBound() |
49 | 56 | { return GetLevel(); } |
50 | 57 |
|
51 | | - void SetUpperBound(float f) |
52 | | - { SetLevel(f); } |
| 58 | + /** |
| 59 | + @brief Sets the upper trigger level |
| 60 | +
|
| 61 | + This is the base class "trigger level. |
53 | 62 |
|
54 | | - //Lower bound |
| 63 | + @param level Trigger level |
| 64 | + */ |
| 65 | + void SetUpperBound(float level) |
| 66 | + { SetLevel(level); } |
| 67 | + |
| 68 | + ///@brief Gets the lower of the two trigger levels |
55 | 69 | float GetLowerBound() |
56 | 70 | { return m_parameters[m_lowername].GetFloatVal(); } |
57 | 71 |
|
| 72 | + /** |
| 73 | + @brief Sets the lower trigger level |
| 74 | +
|
| 75 | + @param level Trigger level |
| 76 | + */ |
58 | 77 | void SetLowerBound(float level) |
59 | 78 | { m_parameters[m_lowername].SetFloatVal(level); } |
60 | 79 |
|
61 | 80 | protected: |
| 81 | + |
| 82 | + ///@brief Name of the "lower threshold" parameter |
62 | 83 | std::string m_lowername; |
63 | 84 | }; |
64 | 85 |
|
|
0 commit comments