libtiepie-hw
1.2.1
|
Functions to control the frequency of a demo signal. More...
Functions | |
TIEPIE_HW_API tiepie_hw_bool | tiepie_hw_oscilloscope_channel_demo_has_frequency (tiepie_hw_handle handle, uint16_t ch) |
Check whether the currently selected demo signal type supports setting the frequency. More... | |
TIEPIE_HW_API double | tiepie_hw_oscilloscope_channel_demo_get_frequency (tiepie_hw_handle handle, uint16_t ch) |
Get the currently selected demo signal frequency of a specified demo oscilloscope channel. More... | |
TIEPIE_HW_API double | tiepie_hw_oscilloscope_channel_demo_set_frequency (tiepie_hw_handle handle, uint16_t ch, double value) |
Set the demo signal frequency of a specified demo oscilloscope channel, in Hz. More... | |
Functions to control the frequency of a demo signal.
Several of the demo signal types support setting the signal frequency, but others don't. Use tiepie_hw_oscilloscope_channel_demo_has_frequency() to find out whether the selected demo signal type supports setting the frequency.
TIEPIE_HW_API tiepie_hw_bool tiepie_hw_oscilloscope_channel_demo_has_frequency | ( | tiepie_hw_handle | handle, |
uint16_t | ch | ||
) |
Check whether the currently selected demo signal type supports setting the frequency.
[in] | handle | A device handle identifying the oscilloscope. |
[in] | ch | The channel number identifying the channel, 0 to tiepie_hw_oscilloscope_get_channel_count() - 1 . |
TIEPIE_HW_STATUS_INVALID_CHANNEL | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API double tiepie_hw_oscilloscope_channel_demo_get_frequency | ( | tiepie_hw_handle | handle, |
uint16_t | ch | ||
) |
Get the currently selected demo signal frequency of a specified demo oscilloscope channel.
[in] | handle | A device handle identifying the oscilloscope. |
[in] | ch | The channel number identifying the channel, 0 to tiepie_hw_oscilloscope_get_channel_count() - 1 . |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The currently selected demo signal type does not support getting the demo signal frequency. |
TIEPIE_HW_STATUS_INVALID_CHANNEL | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API double tiepie_hw_oscilloscope_channel_demo_set_frequency | ( | tiepie_hw_handle | handle, |
uint16_t | ch, | ||
double | value | ||
) |
Set the demo signal frequency of a specified demo oscilloscope channel, in Hz.
[in] | handle | A device handle identifying the oscilloscope. |
[in] | ch | The channel number identifying the channel, 0 to tiepie_hw_oscilloscope_get_channel_count() - 1 . |
[in] | value | The requested demo signal frequency, in Hz. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The currently selected demo signal type does not support setting the demo signal frequency. |
TIEPIE_HW_STATUS_INVALID_VALUE | The requested signal frequency is not valid. |
TIEPIE_HW_STATUS_INVALID_CHANNEL | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid oscilloscope handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |