libtiepie-hw
1.1.4
|
Functions to control the input coupling of an oscilloscope channel. More...
Functions | |
TIEPIE_HW_API uint64_t | tiepie_hw_oscilloscope_channel_get_couplings (tiepie_hw_handle handle, uint16_t ch) |
Get the supported coupling kinds of a specified channel. More... | |
TIEPIE_HW_API uint64_t | tiepie_hw_oscilloscope_channel_get_coupling (tiepie_hw_handle handle, uint16_t ch) |
Get the currently set coupling of a specified channel. More... | |
TIEPIE_HW_API uint64_t | tiepie_hw_oscilloscope_channel_set_coupling (tiepie_hw_handle handle, uint16_t ch, uint64_t coupling) |
Set the coupling of a specified channel. More... | |
Functions to control the input coupling of an oscilloscope channel.
By default the input coupling of a channel is set to: Volt DC (TIEPIE_HW_CK_DCV).
TIEPIE_HW_API uint64_t tiepie_hw_oscilloscope_channel_get_couplings | ( | tiepie_hw_handle | handle, |
uint16_t | ch | ||
) |
Get the supported coupling kinds of a specified 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_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 uint64_t tiepie_hw_oscilloscope_channel_get_coupling | ( | tiepie_hw_handle | handle, |
uint16_t | ch | ||
) |
Get the currently set coupling of a specified 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_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 uint64_t tiepie_hw_oscilloscope_channel_set_coupling | ( | tiepie_hw_handle | handle, |
uint16_t | ch, | ||
uint64_t | coupling | ||
) |
Set the coupling of a specified 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 . |
[in] | coupling | The required coupling, a TIEPIE_HW_CK_* value. |
TIEPIE_HW_STATUS_INVALID_VALUE | The requested coupling kind is invalid. |
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 |