libtiepie-hw
1.1.10
|
Functions for controlling the signal type of a generator. More...
Functions | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_get_signal_types (tiepie_hw_handle handle) |
Get the supported signal types of a specified generator. More... | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_get_signal_type (tiepie_hw_handle handle) |
Get the currently selected signal type of a specified generator. More... | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_set_signal_type (tiepie_hw_handle handle, uint32_t value) |
Set the signal type of a specified generator. More... | |
Functions for controlling the signal type of a generator.
The generator supports several standard signal types. Use tiepie_hw_generator_get_signal_types() to find the supported signal types.
By default signal type is set to: Sine (TIEPIE_HW_ST_SINE).
TIEPIE_HW_API uint32_t tiepie_hw_generator_get_signal_types | ( | tiepie_hw_handle | handle | ) |
Get the supported signal types of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API uint32_t tiepie_hw_generator_get_signal_type | ( | tiepie_hw_handle | handle | ) |
Get the currently selected signal type of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API uint32_t tiepie_hw_generator_set_signal_type | ( | tiepie_hw_handle | handle, |
uint32_t | value | ||
) |
Set the signal type of a specified generator.
[in] | handle | A device handle identifying the generator. |
[in] | value | The requested signal type, a TIEPIE_HW_ST_* value. |
TIEPIE_HW_STATUS_INVALID_VALUE | The requested signal type is invalid. |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |