pub struct PS5000ALoader {Show 84 fields
pub ps5000aApplyFix: Result<unsafe extern "C" fn(u32, u16), Error>,
pub ps5000aOpenUnit: Result<unsafe extern "C" fn(*mut i16, *mut i8, u32) -> u32, Error>,
pub ps5000aOpenUnitAsync: Result<unsafe extern "C" fn(*mut i16, *mut i8, u32) -> u32, Error>,
pub ps5000aOpenUnitProgress: Result<unsafe extern "C" fn(*mut i16, *mut i16, *mut i16) -> u32, Error>,
pub ps5000aGetUnitInfo: Result<unsafe extern "C" fn(i16, *mut i8, i16, *mut i16, u32) -> u32, Error>,
pub ps5000aFlashLed: Result<unsafe extern "C" fn(i16, i16) -> u32, Error>,
pub ps5000aIsLedFlashing: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>,
pub ps5000aCloseUnit: Result<unsafe extern "C" fn(i16) -> u32, Error>,
pub ps5000aMemorySegments: Result<unsafe extern "C" fn(i16, u32, *mut i32) -> u32, Error>,
pub ps5000aSetChannel: Result<unsafe extern "C" fn(i16, u32, i16, u32, u32, f32) -> u32, Error>,
pub ps5000aSetDigitalPort: Result<unsafe extern "C" fn(i16, u32, i16, i16) -> u32, Error>,
pub ps5000aSetBandwidthFilter: Result<unsafe extern "C" fn(i16, u32, u32) -> u32, Error>,
pub ps5000aGetTimebase: Result<unsafe extern "C" fn(i16, u32, i32, *mut i32, *mut i32, u32) -> u32, Error>,
pub ps5000aGetTimebase2: Result<unsafe extern "C" fn(i16, u32, i32, *mut f32, *mut i32, u32) -> u32, Error>,
pub ps5000aNearestSampleIntervalStateless: Result<unsafe extern "C" fn(i16, u32, f64, u32, u16, *mut u32, *mut f64) -> u32, Error>,
pub ps5000aGetMinimumTimebaseStateless: Result<unsafe extern "C" fn(i16, u32, *mut u32, *mut f64, u32) -> u32, Error>,
pub ps5000aChannelCombinationsStateless: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, u32, u32, i16) -> u32, Error>,
pub ps5000aSetSigGenArbitrary: Result<unsafe extern "C" fn(i16, i32, u32, u32, u32, u32, u32, *mut i16, i32, u32, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>,
pub ps5000aSetSigGenBuiltIn: Result<unsafe extern "C" fn(i16, i32, u32, u32, f32, f32, f32, f32, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>,
pub ps5000aSetSigGenBuiltInV2: Result<unsafe extern "C" fn(i16, i32, u32, u32, f64, f64, f64, f64, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>,
pub ps5000aSetSigGenPropertiesArbitrary: Result<unsafe extern "C" fn(i16, u32, u32, u32, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>,
pub ps5000aSetSigGenPropertiesBuiltIn: Result<unsafe extern "C" fn(i16, f64, f64, f64, f64, u32, u32, u32, u32, u32, i16) -> u32, Error>,
pub ps5000aSigGenFrequencyToPhase: Result<unsafe extern "C" fn(i16, f64, u32, u32, *mut u32) -> u32, Error>,
pub ps5000aSigGenArbitraryMinMaxValues: Result<unsafe extern "C" fn(i16, *mut i16, *mut i16, *mut u32, *mut u32) -> u32, Error>,
pub ps5000aSigGenSoftwareControl: Result<unsafe extern "C" fn(i16, i16) -> u32, Error>,
pub ps5000aSetEts: Result<unsafe extern "C" fn(i16, u32, i16, i16, *mut i32) -> u32, Error>,
pub ps5000aSetTriggerChannelProperties: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerChannelProperties, i16, i16, i32) -> u32, Error>,
pub ps5000aSetTriggerChannelPropertiesV2: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerChannelPropertiesV2, i16, i16) -> u32, Error>,
pub ps5000aSetAutoTriggerMicroSeconds: Result<unsafe extern "C" fn(i16, u64) -> u32, Error>,
pub ps5000aSetTriggerChannelConditions: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerConditions, i16) -> u32, Error>,
pub ps5000aSetTriggerChannelConditionsV2: Result<unsafe extern "C" fn(i16, *mut tPS5000ACondition, i16, u32) -> u32, Error>,
pub ps5000aSetTriggerChannelDirections: Result<unsafe extern "C" fn(i16, u32, u32, u32, u32, u32, u32) -> u32, Error>,
pub ps5000aSetTriggerChannelDirectionsV2: Result<unsafe extern "C" fn(i16, *mut tPS5000ADirection, u16) -> u32, Error>,
pub ps5000aSetSimpleTrigger: Result<unsafe extern "C" fn(i16, i16, u32, i16, u32, u32, i16) -> u32, Error>,
pub ps5000aSetTriggerDigitalPortProperties: Result<unsafe extern "C" fn(i16, *mut tPS5000ADigitalChannelDirections, i16) -> u32, Error>,
pub ps5000aSetPulseWidthDigitalPortProperties: Result<unsafe extern "C" fn(i16, *mut tPS5000ADigitalChannelDirections, i16) -> u32, Error>,
pub ps5000aSetTriggerDelay: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>,
pub ps5000aSetPulseWidthQualifier: Result<unsafe extern "C" fn(i16, *mut tPS5000APwqConditions, i16, u32, u32, u32, u32) -> u32, Error>,
pub ps5000aSetPulseWidthQualifierProperties: Result<unsafe extern "C" fn(i16, u32, u32, u32) -> u32, Error>,
pub ps5000aSetPulseWidthQualifierConditions: Result<unsafe extern "C" fn(i16, *mut tPS5000ACondition, i16, u32) -> u32, Error>,
pub ps5000aSetPulseWidthQualifierDirections: Result<unsafe extern "C" fn(i16, *mut tPS5000ADirection, i16) -> u32, Error>,
pub ps5000aIsTriggerOrPulseWidthQualifierEnabled: Result<unsafe extern "C" fn(i16, *mut i16, *mut i16) -> u32, Error>,
pub ps5000aGetTriggerTimeOffset: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, *mut u32, u32) -> u32, Error>,
pub ps5000aGetTriggerTimeOffset64: Result<unsafe extern "C" fn(i16, *mut i64, *mut u32, u32) -> u32, Error>,
pub ps5000aGetValuesTriggerTimeOffsetBulk: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, *mut u32, u32, u32) -> u32, Error>,
pub ps5000aGetValuesTriggerTimeOffsetBulk64: Result<unsafe extern "C" fn(i16, *mut i64, *mut u32, u32, u32) -> u32, Error>,
pub ps5000aSetDataBuffers: Result<unsafe extern "C" fn(i16, u32, *mut i16, *mut i16, i32, u32, u32) -> u32, Error>,
pub ps5000aSetDataBuffer: Result<unsafe extern "C" fn(i16, u32, *mut i16, i32, u32, u32) -> u32, Error>,
pub ps5000aSetUnscaledDataBuffers: Result<unsafe extern "C" fn(i16, u32, *mut i8, *mut i8, i32, u32, u32) -> u32, Error>,
pub ps5000aSetEtsTimeBuffer: Result<unsafe extern "C" fn(i16, *mut i64, i32) -> u32, Error>,
pub ps5000aSetEtsTimeBuffers: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, i32) -> u32, Error>,
pub ps5000aIsReady: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>,
pub ps5000aRunBlock: Result<unsafe extern "C" fn(i16, i32, i32, u32, *mut i32, u32, Option<extern "C" fn(i16, u32, *mut c_void)>, *mut c_void) -> u32, Error>,
pub ps5000aRunStreaming: Result<unsafe extern "C" fn(i16, *mut u32, u32, u32, u32, i16, u32, u32, u32) -> u32, Error>,
pub ps5000aGetStreamingLatestValues: Result<unsafe extern "C" fn(i16, Option<unsafe extern "C" fn(i16, i32, u32, i16, u32, i16, i16, *mut c_void)>, *mut c_void) -> u32, Error>,
pub ps5000aNoOfStreamingValues: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>,
pub ps5000aGetMaxDownSampleRatio: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32) -> u32, Error>,
pub ps5000aGetValues: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32, u32, *mut i16) -> u32, Error>,
pub ps5000aGetValuesAsync: Result<unsafe extern "C" fn(i16, u32, u32, u32, u32, u32, *mut c_void, *mut c_void) -> u32, Error>,
pub ps5000aGetValuesBulk: Result<unsafe extern "C" fn(i16, *mut u32, u32, u32, u32, u32, *mut i16) -> u32, Error>,
pub ps5000aGetValuesOverlapped: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32, u32, *mut i16) -> u32, Error>,
pub ps5000aGetValuesOverlappedBulk: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32, u32, u32, *mut i16) -> u32, Error>,
pub ps5000aTriggerWithinPreTriggerSamples: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>,
pub ps5000aGetTriggerInfoBulk: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerInfo, u32, u32) -> u32, Error>,
pub ps5000aEnumerateUnits: Result<unsafe extern "C" fn(*mut i16, *mut i8, *mut i16) -> u32, Error>,
pub ps5000aGetChannelInformation: Result<unsafe extern "C" fn(i16, u32, i32, *mut i32, *mut i32, i32) -> u32, Error>,
pub ps5000aMaximumValue: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>,
pub ps5000aMinimumValue: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>,
pub ps5000aGetAnalogueOffset: Result<unsafe extern "C" fn(i16, u32, u32, *mut f32, *mut f32) -> u32, Error>,
pub ps5000aGetMaxSegments: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>,
pub ps5000aChangePowerSource: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>,
pub ps5000aCurrentPowerSource: Result<unsafe extern "C" fn(i16) -> u32, Error>,
pub ps5000aStop: Result<unsafe extern "C" fn(i16) -> u32, Error>,
pub ps5000aPingUnit: Result<unsafe extern "C" fn(i16) -> u32, Error>,
pub ps5000aSetNoOfCaptures: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>,
pub ps5000aGetNoOfCaptures: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>,
pub ps5000aGetNoOfProcessedCaptures: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>,
pub ps5000aSetDeviceResolution: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>,
pub ps5000aGetDeviceResolution: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>,
pub ps5000aQueryOutputEdgeDetect: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>,
pub ps5000aSetOutputEdgeDetect: Result<unsafe extern "C" fn(i16, i16) -> u32, Error>,
pub ps5000aGetScalingValues: Result<unsafe extern "C" fn(i16, *mut tPS5000AScalingFactors, i16) -> u32, Error>,
pub ps5000aCheckForUpdate: Result<unsafe extern "C" fn(i16, *mut tPicoVersion, *mut tPicoVersion, *mut u16) -> u32, Error>,
pub ps5000aStartFirmwareUpdate: Result<unsafe extern "C" fn(i16, Option<extern "C" fn(i16, u16)>) -> u32, Error>,
/* private fields */
}
Fields§
§ps5000aApplyFix: Result<unsafe extern "C" fn(u32, u16), Error>
§ps5000aOpenUnit: Result<unsafe extern "C" fn(*mut i16, *mut i8, u32) -> u32, Error>
§ps5000aOpenUnitAsync: Result<unsafe extern "C" fn(*mut i16, *mut i8, u32) -> u32, Error>
§ps5000aOpenUnitProgress: Result<unsafe extern "C" fn(*mut i16, *mut i16, *mut i16) -> u32, Error>
§ps5000aGetUnitInfo: Result<unsafe extern "C" fn(i16, *mut i8, i16, *mut i16, u32) -> u32, Error>
§ps5000aFlashLed: Result<unsafe extern "C" fn(i16, i16) -> u32, Error>
§ps5000aIsLedFlashing: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>
§ps5000aCloseUnit: Result<unsafe extern "C" fn(i16) -> u32, Error>
§ps5000aMemorySegments: Result<unsafe extern "C" fn(i16, u32, *mut i32) -> u32, Error>
§ps5000aSetChannel: Result<unsafe extern "C" fn(i16, u32, i16, u32, u32, f32) -> u32, Error>
§ps5000aSetDigitalPort: Result<unsafe extern "C" fn(i16, u32, i16, i16) -> u32, Error>
§ps5000aSetBandwidthFilter: Result<unsafe extern "C" fn(i16, u32, u32) -> u32, Error>
§ps5000aGetTimebase: Result<unsafe extern "C" fn(i16, u32, i32, *mut i32, *mut i32, u32) -> u32, Error>
§ps5000aGetTimebase2: Result<unsafe extern "C" fn(i16, u32, i32, *mut f32, *mut i32, u32) -> u32, Error>
§ps5000aNearestSampleIntervalStateless: Result<unsafe extern "C" fn(i16, u32, f64, u32, u16, *mut u32, *mut f64) -> u32, Error>
§ps5000aGetMinimumTimebaseStateless: Result<unsafe extern "C" fn(i16, u32, *mut u32, *mut f64, u32) -> u32, Error>
§ps5000aChannelCombinationsStateless: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, u32, u32, i16) -> u32, Error>
§ps5000aSetSigGenArbitrary: Result<unsafe extern "C" fn(i16, i32, u32, u32, u32, u32, u32, *mut i16, i32, u32, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>
§ps5000aSetSigGenBuiltIn: Result<unsafe extern "C" fn(i16, i32, u32, u32, f32, f32, f32, f32, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>
§ps5000aSetSigGenBuiltInV2: Result<unsafe extern "C" fn(i16, i32, u32, u32, f64, f64, f64, f64, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>
§ps5000aSetSigGenPropertiesArbitrary: Result<unsafe extern "C" fn(i16, u32, u32, u32, u32, u32, u32, u32, u32, u32, i16) -> u32, Error>
§ps5000aSetSigGenPropertiesBuiltIn: Result<unsafe extern "C" fn(i16, f64, f64, f64, f64, u32, u32, u32, u32, u32, i16) -> u32, Error>
§ps5000aSigGenFrequencyToPhase: Result<unsafe extern "C" fn(i16, f64, u32, u32, *mut u32) -> u32, Error>
§ps5000aSigGenArbitraryMinMaxValues: Result<unsafe extern "C" fn(i16, *mut i16, *mut i16, *mut u32, *mut u32) -> u32, Error>
§ps5000aSigGenSoftwareControl: Result<unsafe extern "C" fn(i16, i16) -> u32, Error>
§ps5000aSetEts: Result<unsafe extern "C" fn(i16, u32, i16, i16, *mut i32) -> u32, Error>
§ps5000aSetTriggerChannelProperties: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerChannelProperties, i16, i16, i32) -> u32, Error>
§ps5000aSetTriggerChannelPropertiesV2: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerChannelPropertiesV2, i16, i16) -> u32, Error>
§ps5000aSetAutoTriggerMicroSeconds: Result<unsafe extern "C" fn(i16, u64) -> u32, Error>
§ps5000aSetTriggerChannelConditions: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerConditions, i16) -> u32, Error>
§ps5000aSetTriggerChannelConditionsV2: Result<unsafe extern "C" fn(i16, *mut tPS5000ACondition, i16, u32) -> u32, Error>
§ps5000aSetTriggerChannelDirections: Result<unsafe extern "C" fn(i16, u32, u32, u32, u32, u32, u32) -> u32, Error>
§ps5000aSetTriggerChannelDirectionsV2: Result<unsafe extern "C" fn(i16, *mut tPS5000ADirection, u16) -> u32, Error>
§ps5000aSetSimpleTrigger: Result<unsafe extern "C" fn(i16, i16, u32, i16, u32, u32, i16) -> u32, Error>
§ps5000aSetTriggerDigitalPortProperties: Result<unsafe extern "C" fn(i16, *mut tPS5000ADigitalChannelDirections, i16) -> u32, Error>
§ps5000aSetPulseWidthDigitalPortProperties: Result<unsafe extern "C" fn(i16, *mut tPS5000ADigitalChannelDirections, i16) -> u32, Error>
§ps5000aSetTriggerDelay: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>
§ps5000aSetPulseWidthQualifier: Result<unsafe extern "C" fn(i16, *mut tPS5000APwqConditions, i16, u32, u32, u32, u32) -> u32, Error>
§ps5000aSetPulseWidthQualifierProperties: Result<unsafe extern "C" fn(i16, u32, u32, u32) -> u32, Error>
§ps5000aSetPulseWidthQualifierConditions: Result<unsafe extern "C" fn(i16, *mut tPS5000ACondition, i16, u32) -> u32, Error>
§ps5000aSetPulseWidthQualifierDirections: Result<unsafe extern "C" fn(i16, *mut tPS5000ADirection, i16) -> u32, Error>
§ps5000aIsTriggerOrPulseWidthQualifierEnabled: Result<unsafe extern "C" fn(i16, *mut i16, *mut i16) -> u32, Error>
§ps5000aGetTriggerTimeOffset: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, *mut u32, u32) -> u32, Error>
§ps5000aGetTriggerTimeOffset64: Result<unsafe extern "C" fn(i16, *mut i64, *mut u32, u32) -> u32, Error>
§ps5000aGetValuesTriggerTimeOffsetBulk: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, *mut u32, u32, u32) -> u32, Error>
§ps5000aGetValuesTriggerTimeOffsetBulk64: Result<unsafe extern "C" fn(i16, *mut i64, *mut u32, u32, u32) -> u32, Error>
§ps5000aSetDataBuffers: Result<unsafe extern "C" fn(i16, u32, *mut i16, *mut i16, i32, u32, u32) -> u32, Error>
§ps5000aSetDataBuffer: Result<unsafe extern "C" fn(i16, u32, *mut i16, i32, u32, u32) -> u32, Error>
§ps5000aSetUnscaledDataBuffers: Result<unsafe extern "C" fn(i16, u32, *mut i8, *mut i8, i32, u32, u32) -> u32, Error>
§ps5000aSetEtsTimeBuffer: Result<unsafe extern "C" fn(i16, *mut i64, i32) -> u32, Error>
§ps5000aSetEtsTimeBuffers: Result<unsafe extern "C" fn(i16, *mut u32, *mut u32, i32) -> u32, Error>
§ps5000aIsReady: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>
§ps5000aRunBlock: Result<unsafe extern "C" fn(i16, i32, i32, u32, *mut i32, u32, Option<extern "C" fn(i16, u32, *mut c_void)>, *mut c_void) -> u32, Error>
§ps5000aRunStreaming: Result<unsafe extern "C" fn(i16, *mut u32, u32, u32, u32, i16, u32, u32, u32) -> u32, Error>
§ps5000aGetStreamingLatestValues: Result<unsafe extern "C" fn(i16, Option<unsafe extern "C" fn(i16, i32, u32, i16, u32, i16, i16, *mut c_void)>, *mut c_void) -> u32, Error>
§ps5000aNoOfStreamingValues: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>
§ps5000aGetMaxDownSampleRatio: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32) -> u32, Error>
§ps5000aGetValues: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32, u32, *mut i16) -> u32, Error>
§ps5000aGetValuesAsync: Result<unsafe extern "C" fn(i16, u32, u32, u32, u32, u32, *mut c_void, *mut c_void) -> u32, Error>
§ps5000aGetValuesBulk: Result<unsafe extern "C" fn(i16, *mut u32, u32, u32, u32, u32, *mut i16) -> u32, Error>
§ps5000aGetValuesOverlapped: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32, u32, *mut i16) -> u32, Error>
§ps5000aGetValuesOverlappedBulk: Result<unsafe extern "C" fn(i16, u32, *mut u32, u32, u32, u32, u32, *mut i16) -> u32, Error>
§ps5000aTriggerWithinPreTriggerSamples: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>
§ps5000aGetTriggerInfoBulk: Result<unsafe extern "C" fn(i16, *mut tPS5000ATriggerInfo, u32, u32) -> u32, Error>
§ps5000aEnumerateUnits: Result<unsafe extern "C" fn(*mut i16, *mut i8, *mut i16) -> u32, Error>
§ps5000aGetChannelInformation: Result<unsafe extern "C" fn(i16, u32, i32, *mut i32, *mut i32, i32) -> u32, Error>
§ps5000aMaximumValue: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>
§ps5000aMinimumValue: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>
§ps5000aGetAnalogueOffset: Result<unsafe extern "C" fn(i16, u32, u32, *mut f32, *mut f32) -> u32, Error>
§ps5000aGetMaxSegments: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>
§ps5000aChangePowerSource: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>
§ps5000aCurrentPowerSource: Result<unsafe extern "C" fn(i16) -> u32, Error>
§ps5000aStop: Result<unsafe extern "C" fn(i16) -> u32, Error>
§ps5000aPingUnit: Result<unsafe extern "C" fn(i16) -> u32, Error>
§ps5000aSetNoOfCaptures: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>
§ps5000aGetNoOfCaptures: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>
§ps5000aGetNoOfProcessedCaptures: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>
§ps5000aSetDeviceResolution: Result<unsafe extern "C" fn(i16, u32) -> u32, Error>
§ps5000aGetDeviceResolution: Result<unsafe extern "C" fn(i16, *mut u32) -> u32, Error>
§ps5000aQueryOutputEdgeDetect: Result<unsafe extern "C" fn(i16, *mut i16) -> u32, Error>
§ps5000aSetOutputEdgeDetect: Result<unsafe extern "C" fn(i16, i16) -> u32, Error>
§ps5000aGetScalingValues: Result<unsafe extern "C" fn(i16, *mut tPS5000AScalingFactors, i16) -> u32, Error>
§ps5000aCheckForUpdate: Result<unsafe extern "C" fn(i16, *mut tPicoVersion, *mut tPicoVersion, *mut u16) -> u32, Error>
§ps5000aStartFirmwareUpdate: Result<unsafe extern "C" fn(i16, Option<extern "C" fn(i16, u16)>) -> u32, Error>
Implementations§
Source§impl PS5000ALoader
impl PS5000ALoader
pub unsafe fn new<P>(path: P) -> Result<PS5000ALoader, Error>
pub unsafe fn ps5000aApplyFix(&self, a: u32, b: u16)
pub unsafe fn ps5000aOpenUnit( &self, handle: *mut i16, serial: *mut i8, resolution: u32, ) -> u32
pub unsafe fn ps5000aOpenUnitAsync( &self, status: *mut i16, serial: *mut i8, resolution: u32, ) -> u32
pub unsafe fn ps5000aOpenUnitProgress( &self, handle: *mut i16, progressPercent: *mut i16, complete: *mut i16, ) -> u32
pub unsafe fn ps5000aGetUnitInfo( &self, handle: i16, string: *mut i8, stringLength: i16, requiredSize: *mut i16, info: u32, ) -> u32
pub unsafe fn ps5000aFlashLed(&self, handle: i16, start: i16) -> u32
pub unsafe fn ps5000aIsLedFlashing(&self, handle: i16, status: *mut i16) -> u32
pub unsafe fn ps5000aCloseUnit(&self, handle: i16) -> u32
pub unsafe fn ps5000aMemorySegments( &self, handle: i16, nSegments: u32, nMaxSamples: *mut i32, ) -> u32
pub unsafe fn ps5000aSetChannel( &self, handle: i16, channel: u32, enabled: i16, type_: u32, range: u32, analogOffset: f32, ) -> u32
pub unsafe fn ps5000aSetDigitalPort( &self, handle: i16, port: u32, enabled: i16, logicLevel: i16, ) -> u32
pub unsafe fn ps5000aSetBandwidthFilter( &self, handle: i16, channel: u32, bandwidth: u32, ) -> u32
pub unsafe fn ps5000aGetTimebase( &self, handle: i16, timebase: u32, noSamples: i32, timeIntervalNanoseconds: *mut i32, maxSamples: *mut i32, segmentIndex: u32, ) -> u32
pub unsafe fn ps5000aGetTimebase2( &self, handle: i16, timebase: u32, noSamples: i32, timeIntervalNanoseconds: *mut f32, maxSamples: *mut i32, segmentIndex: u32, ) -> u32
pub unsafe fn ps5000aNearestSampleIntervalStateless( &self, handle: i16, enabledChannelOrPortFlags: u32, timeIntervalRequested: f64, resolution: u32, useEts: u16, timebase: *mut u32, timeIntervalAvailable: *mut f64, ) -> u32
pub unsafe fn ps5000aGetMinimumTimebaseStateless( &self, handle: i16, enabledChannelOrPortFlags: u32, timebase: *mut u32, timeInterval: *mut f64, resolution: u32, ) -> u32
pub unsafe fn ps5000aChannelCombinationsStateless( &self, handle: i16, channelOrPortFlagsCombinations: *mut u32, nChannelCombinations: *mut u32, resolution: u32, timebase: u32, hasDcPowerSupplyConnected: i16, ) -> u32
pub unsafe fn ps5000aSetSigGenArbitrary( &self, handle: i16, offsetVoltage: i32, pkToPk: u32, startDeltaPhase: u32, stopDeltaPhase: u32, deltaPhaseIncrement: u32, dwellCount: u32, arbitraryWaveform: *mut i16, arbitraryWaveformSize: i32, sweepType: u32, operation: u32, indexMode: u32, shots: u32, sweeps: u32, triggerType: u32, triggerSource: u32, extInThreshold: i16, ) -> u32
pub unsafe fn ps5000aSetSigGenBuiltIn( &self, handle: i16, offsetVoltage: i32, pkToPk: u32, waveType: u32, startFrequency: f32, stopFrequency: f32, increment: f32, dwellTime: f32, sweepType: u32, operation: u32, shots: u32, sweeps: u32, triggerType: u32, triggerSource: u32, extInThreshold: i16, ) -> u32
pub unsafe fn ps5000aSetSigGenBuiltInV2( &self, handle: i16, offsetVoltage: i32, pkToPk: u32, waveType: u32, startFrequency: f64, stopFrequency: f64, increment: f64, dwellTime: f64, sweepType: u32, operation: u32, shots: u32, sweeps: u32, triggerType: u32, triggerSource: u32, extInThreshold: i16, ) -> u32
pub unsafe fn ps5000aSetSigGenPropertiesArbitrary( &self, handle: i16, startDeltaPhase: u32, stopDeltaPhase: u32, deltaPhaseIncrement: u32, dwellCount: u32, sweepType: u32, shots: u32, sweeps: u32, triggerType: u32, triggerSource: u32, extInThreshold: i16, ) -> u32
pub unsafe fn ps5000aSetSigGenPropertiesBuiltIn( &self, handle: i16, startFrequency: f64, stopFrequency: f64, increment: f64, dwellTime: f64, sweepType: u32, shots: u32, sweeps: u32, triggerType: u32, triggerSource: u32, extInThreshold: i16, ) -> u32
pub unsafe fn ps5000aSigGenFrequencyToPhase( &self, handle: i16, frequency: f64, indexMode: u32, bufferLength: u32, phase: *mut u32, ) -> u32
pub unsafe fn ps5000aSigGenArbitraryMinMaxValues( &self, handle: i16, minArbitraryWaveformValue: *mut i16, maxArbitraryWaveformValue: *mut i16, minArbitraryWaveformSize: *mut u32, maxArbitraryWaveformSize: *mut u32, ) -> u32
pub unsafe fn ps5000aSigGenSoftwareControl( &self, handle: i16, state: i16, ) -> u32
pub unsafe fn ps5000aSetEts( &self, handle: i16, mode: u32, etsCycles: i16, etsInterleave: i16, sampleTimePicoseconds: *mut i32, ) -> u32
pub unsafe fn ps5000aSetTriggerChannelProperties( &self, handle: i16, channelProperties: *mut tPS5000ATriggerChannelProperties, nChannelProperties: i16, auxOutputEnable: i16, autoTriggerMilliseconds: i32, ) -> u32
pub unsafe fn ps5000aSetTriggerChannelPropertiesV2( &self, handle: i16, channelProperties: *mut tPS5000ATriggerChannelPropertiesV2, nChannelProperties: i16, auxOutputEnable: i16, ) -> u32
pub unsafe fn ps5000aSetAutoTriggerMicroSeconds( &self, handle: i16, autoTriggerMicroseconds: u64, ) -> u32
pub unsafe fn ps5000aSetTriggerChannelConditions( &self, handle: i16, conditions: *mut tPS5000ATriggerConditions, nConditions: i16, ) -> u32
pub unsafe fn ps5000aSetTriggerChannelConditionsV2( &self, handle: i16, conditions: *mut tPS5000ACondition, nConditions: i16, info: u32, ) -> u32
pub unsafe fn ps5000aSetTriggerChannelDirections( &self, handle: i16, channelA: u32, channelB: u32, channelC: u32, channelD: u32, ext: u32, aux: u32, ) -> u32
pub unsafe fn ps5000aSetTriggerChannelDirectionsV2( &self, handle: i16, directions: *mut tPS5000ADirection, nDirections: u16, ) -> u32
pub unsafe fn ps5000aSetSimpleTrigger( &self, handle: i16, enable: i16, channel: u32, threshold: i16, direction: u32, delay: u32, autoTrigger_ms: i16, ) -> u32
pub unsafe fn ps5000aSetTriggerDigitalPortProperties( &self, handle: i16, directions: *mut tPS5000ADigitalChannelDirections, nDirections: i16, ) -> u32
pub unsafe fn ps5000aSetPulseWidthDigitalPortProperties( &self, handle: i16, directions: *mut tPS5000ADigitalChannelDirections, nDirections: i16, ) -> u32
pub unsafe fn ps5000aSetTriggerDelay(&self, handle: i16, delay: u32) -> u32
pub unsafe fn ps5000aSetPulseWidthQualifier( &self, handle: i16, conditions: *mut tPS5000APwqConditions, nConditions: i16, direction: u32, lower: u32, upper: u32, type_: u32, ) -> u32
pub unsafe fn ps5000aSetPulseWidthQualifierProperties( &self, handle: i16, lower: u32, upper: u32, type_: u32, ) -> u32
pub unsafe fn ps5000aSetPulseWidthQualifierConditions( &self, handle: i16, conditions: *mut tPS5000ACondition, nConditions: i16, info: u32, ) -> u32
pub unsafe fn ps5000aSetPulseWidthQualifierDirections( &self, handle: i16, directions: *mut tPS5000ADirection, nDirections: i16, ) -> u32
pub unsafe fn ps5000aIsTriggerOrPulseWidthQualifierEnabled( &self, handle: i16, triggerEnabled: *mut i16, pulseWidthQualifierEnabled: *mut i16, ) -> u32
pub unsafe fn ps5000aGetTriggerTimeOffset( &self, handle: i16, timeUpper: *mut u32, timeLower: *mut u32, timeUnits: *mut u32, segmentIndex: u32, ) -> u32
pub unsafe fn ps5000aGetTriggerTimeOffset64( &self, handle: i16, time: *mut i64, timeUnits: *mut u32, segmentIndex: u32, ) -> u32
pub unsafe fn ps5000aGetValuesTriggerTimeOffsetBulk( &self, handle: i16, timesUpper: *mut u32, timesLower: *mut u32, timeUnits: *mut u32, fromSegmentIndex: u32, toSegmentIndex: u32, ) -> u32
pub unsafe fn ps5000aGetValuesTriggerTimeOffsetBulk64( &self, handle: i16, times: *mut i64, timeUnits: *mut u32, fromSegmentIndex: u32, toSegmentIndex: u32, ) -> u32
pub unsafe fn ps5000aSetDataBuffers( &self, handle: i16, source: u32, bufferMax: *mut i16, bufferMin: *mut i16, bufferLth: i32, segmentIndex: u32, mode: u32, ) -> u32
pub unsafe fn ps5000aSetDataBuffer( &self, handle: i16, source: u32, buffer: *mut i16, bufferLth: i32, segmentIndex: u32, mode: u32, ) -> u32
pub unsafe fn ps5000aSetUnscaledDataBuffers( &self, handle: i16, source: u32, bufferMax: *mut i8, bufferMin: *mut i8, bufferLth: i32, segmentIndex: u32, mode: u32, ) -> u32
pub unsafe fn ps5000aSetEtsTimeBuffer( &self, handle: i16, buffer: *mut i64, bufferLth: i32, ) -> u32
pub unsafe fn ps5000aSetEtsTimeBuffers( &self, handle: i16, timeUpper: *mut u32, timeLower: *mut u32, bufferLth: i32, ) -> u32
pub unsafe fn ps5000aIsReady(&self, handle: i16, ready: *mut i16) -> u32
pub unsafe fn ps5000aRunBlock( &self, handle: i16, noOfPreTriggerSamples: i32, noOfPostTriggerSamples: i32, timebase: u32, timeIndisposedMs: *mut i32, segmentIndex: u32, lpReady: Option<extern "C" fn(i16, u32, *mut c_void)>, pParameter: *mut c_void, ) -> u32
pub unsafe fn ps5000aRunStreaming( &self, handle: i16, sampleInterval: *mut u32, sampleIntervalTimeUnits: u32, maxPreTriggerSamples: u32, maxPostTriggerSamples: u32, autoStop: i16, downSampleRatio: u32, downSampleRatioMode: u32, overviewBufferSize: u32, ) -> u32
pub unsafe fn ps5000aGetStreamingLatestValues( &self, handle: i16, lpPs5000aReady: Option<unsafe extern "C" fn(i16, i32, u32, i16, u32, i16, i16, *mut c_void)>, pParameter: *mut c_void, ) -> u32
pub unsafe fn ps5000aNoOfStreamingValues( &self, handle: i16, noOfValues: *mut u32, ) -> u32
pub unsafe fn ps5000aGetMaxDownSampleRatio( &self, handle: i16, noOfUnaggreatedSamples: u32, maxDownSampleRatio: *mut u32, downSampleRatioMode: u32, segmentIndex: u32, ) -> u32
pub unsafe fn ps5000aGetValues( &self, handle: i16, startIndex: u32, noOfSamples: *mut u32, downSampleRatio: u32, downSampleRatioMode: u32, segmentIndex: u32, overflow: *mut i16, ) -> u32
pub unsafe fn ps5000aGetValuesAsync( &self, handle: i16, startIndex: u32, noOfSamples: u32, downSampleRatio: u32, downSampleRatioMode: u32, segmentIndex: u32, lpDataReady: *mut c_void, pParameter: *mut c_void, ) -> u32
pub unsafe fn ps5000aGetValuesBulk( &self, handle: i16, noOfSamples: *mut u32, fromSegmentIndex: u32, toSegmentIndex: u32, downSampleRatio: u32, downSampleRatioMode: u32, overflow: *mut i16, ) -> u32
pub unsafe fn ps5000aGetValuesOverlapped( &self, handle: i16, startIndex: u32, noOfSamples: *mut u32, downSampleRatio: u32, downSampleRatioMode: u32, segmentIndex: u32, overflow: *mut i16, ) -> u32
pub unsafe fn ps5000aGetValuesOverlappedBulk( &self, handle: i16, startIndex: u32, noOfSamples: *mut u32, downSampleRatio: u32, downSampleRatioMode: u32, fromSegmentIndex: u32, toSegmentIndex: u32, overflow: *mut i16, ) -> u32
pub unsafe fn ps5000aTriggerWithinPreTriggerSamples( &self, handle: i16, state: u32, ) -> u32
pub unsafe fn ps5000aGetTriggerInfoBulk( &self, handle: i16, triggerInfo: *mut tPS5000ATriggerInfo, fromSegmentIndex: u32, toSegmentIndex: u32, ) -> u32
pub unsafe fn ps5000aEnumerateUnits( &self, count: *mut i16, serials: *mut i8, serialLth: *mut i16, ) -> u32
pub unsafe fn ps5000aGetChannelInformation( &self, handle: i16, info: u32, probe: i32, ranges: *mut i32, length: *mut i32, channels: i32, ) -> u32
pub unsafe fn ps5000aMaximumValue(&self, handle: i16, value: *mut i16) -> u32
pub unsafe fn ps5000aMinimumValue(&self, handle: i16, value: *mut i16) -> u32
pub unsafe fn ps5000aGetAnalogueOffset( &self, handle: i16, range: u32, coupling: u32, maximumVoltage: *mut f32, minimumVoltage: *mut f32, ) -> u32
pub unsafe fn ps5000aGetMaxSegments( &self, handle: i16, maxSegments: *mut u32, ) -> u32
pub unsafe fn ps5000aChangePowerSource( &self, handle: i16, powerState: u32, ) -> u32
pub unsafe fn ps5000aCurrentPowerSource(&self, handle: i16) -> u32
pub unsafe fn ps5000aStop(&self, handle: i16) -> u32
pub unsafe fn ps5000aPingUnit(&self, handle: i16) -> u32
pub unsafe fn ps5000aSetNoOfCaptures(&self, handle: i16, nCaptures: u32) -> u32
pub unsafe fn ps5000aGetNoOfCaptures( &self, handle: i16, nCaptures: *mut u32, ) -> u32
pub unsafe fn ps5000aGetNoOfProcessedCaptures( &self, handle: i16, nProcessedCaptures: *mut u32, ) -> u32
pub unsafe fn ps5000aSetDeviceResolution( &self, handle: i16, resolution: u32, ) -> u32
pub unsafe fn ps5000aGetDeviceResolution( &self, handle: i16, resolution: *mut u32, ) -> u32
pub unsafe fn ps5000aQueryOutputEdgeDetect( &self, handle: i16, state: *mut i16, ) -> u32
pub unsafe fn ps5000aSetOutputEdgeDetect(&self, handle: i16, state: i16) -> u32
pub unsafe fn ps5000aGetScalingValues( &self, handle: i16, scalingValues: *mut tPS5000AScalingFactors, nChannels: i16, ) -> u32
pub unsafe fn ps5000aCheckForUpdate( &self, handle: i16, current: *mut tPicoVersion, update: *mut tPicoVersion, updateRequired: *mut u16, ) -> u32
pub unsafe fn ps5000aStartFirmwareUpdate( &self, handle: i16, progress: Option<extern "C" fn(i16, u16)>, ) -> u32
Auto Trait Implementations§
impl Freeze for PS5000ALoader
impl !RefUnwindSafe for PS5000ALoader
impl Send for PS5000ALoader
impl Sync for PS5000ALoader
impl Unpin for PS5000ALoader
impl !UnwindSafe for PS5000ALoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more