LibTiePie
0.4.2
Library for interfacing TiePie engineering instruments
|
This section contains all resolution related functions. More...
Functions | |
uint32_t | ScpGetResolutions (TpDeviceHandle_t hDevice, uint8_t *pList, uint32_t dwLength) |
Get an array with the supported resolutions of the specified device. | |
uint8_t | ScpGetResolution (TpDeviceHandle_t hDevice) |
Get the current resolution. | |
uint8_t | ScpSetResolution (TpDeviceHandle_t hDevice, uint8_t byResolution) |
Set the resolution. | |
bool8_t | ScpIsResolutionEnhanced (TpDeviceHandle_t hDevice) |
Check whether the currently selected resolution is enhanced or a native resolution of the hardware. | |
This section contains all resolution related functions.
The resolution determines how accurate the amplitude of a signal can be measured. The higher the resolution, the more accurate the input signal can be reconstructed.
Devices can support multiple resolutions, use ScpGetResolutions() to determine the available resolutions for a device.
Besides native hardware resolutions, also enhanced resolutions can be available for a device. Use ScpIsResolutionEnhanced() to determine whether the current resolution is a native hardware resolution or an enhanced resolution.
By default the resolution is set to: 12 bits for the Handyscope HS5.
uint8_t ScpGetResolution | ( | TpDeviceHandle_t | hDevice | ) |
Get the current resolution.
hDevice | A device handle. |
uint32_t ScpGetResolutions | ( | TpDeviceHandle_t | hDevice, |
uint8_t * | pList, | ||
uint32_t | dwLength | ||
) |
Get an array with the supported resolutions of the specified device.
The caller must assure that the array is available and that enough memory is allocated.
Example:
hDevice | A device handle. |
pList | Pointer to array to contain the supported resolutions, or NULL . |
dwLength | Number of elements in array. |
bool8_t ScpIsResolutionEnhanced | ( | TpDeviceHandle_t | hDevice | ) |
Check whether the currently selected resolution is enhanced or a native resolution of the hardware.
hDevice | A device handle. |
uint8_t ScpSetResolution | ( | TpDeviceHandle_t | hDevice, |
uint8_t | byResolution | ||
) |
Set the resolution.
hDevice | A device handle. |
byResolution | The required resolution, in bits. |