|
APCI-3660 API
1717
|
Functions | |
| uint8_t | i_APCI3660_InitAnalogOutputChannel (PDEVICE_DATA deviceData, uint8_t channel, uint8_t samplingClockSelection, uint8_t speedMode) |
| uint8_t | i_APCI3660_ReleaseAnalogOutputChannel (PDEVICE_DATA deviceData, uint8_t channel) |
| uint8_t | i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun (PDEVICE_DATA deviceData, uint8_t channel, uint32_t onePeriodBufferSize, uint32_t *valueArray) |
| uint8_t | i_APCI3660_StartAnalogOutputSignalGenerator (PDEVICE_DATA deviceData, uint8_t channel) |
| uint8_t | i_APCI3660_StopAnalogOutputSignalGenerator (PDEVICE_DATA deviceData, uint8_t channel) |
| uint8_t i_APCI3660_InitAnalogOutputChannel | ( | PDEVICE_DATA | deviceData, |
| uint8_t | channel, | ||
| uint8_t | samplingClockSelection, | ||
| uint8_t | speedMode | ||
| ) |
Init analog output channel
| [in] | deviceData | Target board PCI device structure |
| [in] | channel | Output channel to init |
| [in] | samplingClockSelection | Sampling clock selection (PCI3660_SAMPLING_CLOCK1 or PCI3660_SAMPLING_CLOCK2) |
| [in] | speedMode | Speed mode selection
|
| 0 | No error |
| -2 | The channel is wrong |
| -3 | The samplingClockSelection is wrong |
| -4 | The speedMode is wrong |
| -5 | The board has not been initialized |
| -6 | An error occurred while calling i_APCI3660_CheckSpeedMode |
| -7 | The channel is already initialized |
| -8 | An error occurred while calling i_APCI3660_GetBoardInitialisation |
| uint8_t i_APCI3660_ReleaseAnalogOutputChannel | ( | PDEVICE_DATA | deviceData, |
| uint8_t | channel | ||
| ) |
Release analog output channel
| [in] | deviceData | Target board PCI device structure |
| [in] | channel | Channel to release (0 or 1) |
| 0 | No error |
| -2 | The channel is wrong |
| -3 | The channel has not been initialized |
| uint8_t i_APCI3660_InitAnalogOutputSignalGeneratorFreeRun | ( | PDEVICE_DATA | deviceData, |
| uint8_t | channel, | ||
| uint32_t | onePeriodBufferSize, | ||
| uint32_t * | valueArray | ||
| ) |
Init analog output signal generator in free run mode
| [in] | deviceData | Target board PCI device structure |
| [in] | channel | Channel used (0 or 1) |
| [in] | onePeriodBufferSize | number of values to write, must be greater than 256 |
| [in] | valueArray | buffer with values |
| 0 | No error |
| -2 | The channel is wrong |
| -3 | The channel has not been initialized |
| -4 | The signal generator is running |
| -5 | dw_NbrOfValues must be lower as 256 |
| -6 | Not enough place in the on board RAM |
| -7 | A cycle acquisition is running |
| -8 | A signal generator is running |
| -9 | Buffer allocation failed not enough memory |
| -10 | Buffer allocation failed address is null |
| -12 | Error while initializing the Buffer |
| -13 | Free buffer Error |
| uint8_t i_APCI3660_StartAnalogOutputSignalGenerator | ( | PDEVICE_DATA | deviceData, |
| uint8_t | channel | ||
| ) |
Start analog output signal generator
| [in] | deviceData | Target board PCI device structure |
| [in] | channel | Channel used |
| 0 | No error |
| -2 | The channel is wrong |
| -3 | The channel has not been initialized |
| -4 | The signal generator is already started for this channel |
| uint8_t i_APCI3660_StopAnalogOutputSignalGenerator | ( | PDEVICE_DATA | deviceData, |
| uint8_t | channel | ||
| ) |
Stop analog output signal generator
| [in] | deviceData | Target board PCI device structure |
| [in] | channel | Channel used |
| 0 | No error |
| -2 | The channel is wrong |
| -3 | The signal generator is not started |