|
APCI-3660 API
1719
|
Functions | |
| int | i_APCI3660_SetIncChronoMode (uint8_t boardId, uint32_t dw_Mode) |
| int | i_APCI3660_GetIncChronoMode (uint8_t boardId, uint32_t *pdw_Mode) |
| int | i_APCI3660_InitIncCounter (uint8_t boardId, uint32_t dw_Counter, uint32_t dw_Index, uint32_t dw_Mode, uint32_t dw_Gate, uint32_t dw_Min, uint32_t dw_Max) |
| int | i_APCI3660_StartIncChrono (uint8_t boardId, uint32_t dw_Mask) |
| int | i_APCI3660_ReadIncCounter (uint8_t boardId, uint32_t dw_Counter, uint32_t *pdw_Value) |
| int | i_APCI3660_StopIncChrono (uint8_t boardId, uint32_t dw_Mask) |
| int | i_APCI3660_ReleaseIncCounter (uint8_t boardId, uint32_t dw_Counter) |
| int i_APCI3660_SetIncChronoMode | ( | uint8_t | boardId, |
| uint32_t | dw_Mode | ||
| ) |
Set Chrono / Incremental counter
| [in] | boardId | Target board index |
| [in] | dw_Mode |
|
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -2 | The dw_Mode parameter is wrong |
| -1000 | The size returned by the driver is wrong |
| int i_APCI3660_GetIncChronoMode | ( | uint8_t | boardId, |
| uint32_t * | pdw_Mode | ||
| ) |
Get Chrono / Incremental counter mode
| [in] | boardId | Target board index |
| [out] | pdw_Mode |
|
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -1000 | The size returned by the driver is wrong |
| int i_APCI3660_InitIncCounter | ( | uint8_t | boardId, |
| uint32_t | dw_Counter, | ||
| uint32_t | dw_Index, | ||
| uint32_t | dw_Mode, | ||
| uint32_t | dw_Gate, | ||
| uint32_t | dw_Min, | ||
| uint32_t | dw_Max | ||
| ) |
Set Chrono / Incremental counter
| [in] | boardId | Target board index |
| [in] | dw_Counter | Counter to use (0 or 1) |
| [in] | dw_Index | Index (0 -> index is not used or 1 -> index reset counter to 0) |
| [in] | dw_Mode |
|
| [in] | dw_Gate |
|
| [in] | dw_Min | Beginning with this value the gate is on |
| [in] | dw_Max | After this value the gate is off |
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -2 | The dw_Counter parameter is wrong |
| -3 | The dw_Index parameter is wrong |
| -4 | The dw_Mode parameter is wrong |
| -5 | The dw_Latch parameter is wrong |
| -6 | The board is configured for Chronos instead of Incremental counter (See i_APCI3660_SetIncChronoMode function) |
| -7 | The Incremental counter is already initialized |
| -1000 | The size returned by the driver is wrong |
| int i_APCI3660_StartIncChrono | ( | uint8_t | boardId, |
| uint32_t | dw_Mask | ||
| ) |
Starts Chronos / Incremental counters
| [in] | boardId | Target board index |
| [in] | dw_Mask | Mask of counters to start
|
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -2 | The dw_Mask parameter is wrong |
| -3 | The dw_Counter parameter is wrong |
| -1000 | The size returned by the driver is wrong |
| int i_APCI3660_ReadIncCounter | ( | uint8_t | boardId, |
| uint32_t | dw_Counter, | ||
| uint32_t * | pdw_Value | ||
| ) |
Read incremental counters
| [in] | boardId | Target board index |
| [in] | dw_Counter | Counter to read (0 or 1) |
| [out] | pdw_Value | Counter value |
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -2 | The dw_Mask parameter is wrong |
| -3 | The dw_Counter parameter is wrong |
| -1000 | The size returned by the driver is wrong |
| int i_APCI3660_StopIncChrono | ( | uint8_t | boardId, |
| uint32_t | dw_Mask | ||
| ) |
Stops Chronos / Incremental counters
| [in] | boardId | Target board index |
| [in] | dw_Mask | Mask of counters to stop
|
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -2 | The dw_Mask parameter is wrong |
| -1000 | The size returned by the driver is wrong |
| int i_APCI3660_ReleaseIncCounter | ( | uint8_t | boardId, |
| uint32_t | dw_Counter | ||
| ) |
Release Chrono / Incremental counter
| [in] | boardId | Target board index |
| [in] | dw_Counter | Counter to release (0 to (1 or 3)) |
| 0 | No error |
| -1 | The boardId parameter is wrong |
| -2 | The dw_Counter parameter is wrong |
| -3 | The selected counter is still running |
| -1000 | The size returned by the driver is wrong |