xPCI-1710 API
|
Functions | |
_INT_ | i_PCI1710_InitTimer (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, BYTE_ b_TimerMode, DWORD_ dw_ReloadValue, BYTE_ b_InputClockSelection, BYTE_ b_InputClockLevel, BYTE_ b_OutputLevel, BYTE_ b_HardwareGateLevel) |
_INT_ | i_PCI1710_EnableTimer (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, BYTE_ b_InterruptEnable) |
_INT_ | i_PCI1710_DisableTimer (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr) |
_INT_ | i_PCI1710_ReadTimerValue (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, PDWORD_ pdw_Value) |
_INT_ | i_PCI1710_ReadAllTimerValue (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, DWORD pdw_Values[3]) |
_INT_ | i_PCI1710_GetTimerOutputLevel (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, PBYTE_ pb_Value) |
_INT_ | i_PCI1710_GetTimerProgressStatus (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, PBYTE_ pb_Status) |
_INT_ | i_PCI1710_GetTimerProgressStatusEx (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, PBYTE_ pb_Status) |
_INT_ | i_PCI1710_WriteTimerValue (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_TimerNbr, DWORD_ dw_Value) |
_INT_ i_PCI1710_InitTimer | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
BYTE_ | b_TimerMode, | ||
DWORD_ | dw_ReloadValue, | ||
BYTE_ | b_InputClockSelection, | ||
BYTE_ | b_InputClockLevel, | ||
BYTE_ | b_OutputLevel, | ||
BYTE_ | b_HardwareGateLevel | ||
) |
Initialize the 82c54 timer
[in] | h_DeviceHandle | Handle of the board | ||||||||||||||
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) | ||||||||||||||
[in] | b_TimerNbr | Number of the timer (0 to 2) | ||||||||||||||
[in] | b_TimerMode | Mode in which the timer is to be initialized
| ||||||||||||||
[in] | dw_ReloadValue | Reload value of the timer (0 to 4 294 967 295) | ||||||||||||||
[in] | b_InputClockSelection | Select the clock to be used (0 -> PCI bus clock, 1 -> external clock, 2 -> internal 10MHz clock) For timer 0 only PCI bus clock and internal 10 MHz clock are available (0 and 2) | ||||||||||||||
[in] | b_InputClockLevel | Level of the clock (0 -> active at low level, 1 -> active at high level (input iverted)) | ||||||||||||||
[in] | b_OutputLevel | Selection of the output clock level (0 -> active at low, 1 -> active at high (output inverted)) | ||||||||||||||
[in] | b_HardwareGateLevel | Selection of the hardware gate level (0 -> active at low (inverted), 1 -> active at high) If the external gate is not used, must be set to 0. |
_INT_ i_PCI1710_EnableTimer | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
BYTE_ | b_InterruptEnable | ||
) |
Enable and start the 82c54 timer
[in] | h_DeviceHandle | Handle of the board | ||||||||
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) | ||||||||
[in] | b_TimerNbr | Number of the timer (0 to 2) | ||||||||
[in] | b_InterruptEnable | Enable interrupt flag (0 -> interrupt disabled, 1 -> interrupt enabled) The mask given to the user interrupt routine is determinated as follow :
|
_INT_ i_PCI1710_DisableTimer | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr | ||
) |
Stop and release the 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[in] | b_TimerNbr | Number of the timer (0 to 2) |
_INT_ i_PCI1710_ReadTimerValue | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
PDWORD_ | pdw_Value | ||
) |
Read the current value of a given 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[in] | b_TimerNbr | Number of the timer (0 to 2) |
[out] | pdw_Value | Value of the timer |
_INT_ i_PCI1710_ReadAllTimerValue | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
DWORD | pdw_Values[3] | ||
) |
Read the values of the three 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[out] | pdw_Values | Array containing the three current values of the timers (0 -> timer 0 etc) The array must be allocated before to call this function. |
_INT_ i_PCI1710_GetTimerOutputLevel | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
PBYTE_ | pb_Value | ||
) |
Return the output level of a given 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[in] | b_TimerNbr | Number of the timer (0 to 2) |
[out] | pb_Value | Level of the output (0 -> low, 1 -> high) |
_INT_ i_PCI1710_GetTimerProgressStatus | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
PBYTE_ | pb_Status | ||
) |
Return the status of the timer value for a given 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[in] | b_TimerNbr | Number of the timer (0 to 2) |
[out] | pb_Status | Status of the timer (1 -> timer value is 0, 0 -> timer value differs from 0 (i.e. timer runs or is initialized)) |
_INT_ i_PCI1710_GetTimerProgressStatusEx | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
PBYTE_ | pb_Status | ||
) |
Return the status of a given 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[in] | b_TimerNbr | Number of the timer (0 to 2) |
[out] | pb_Status | Status of the timer (0 -> stopped, 1 -> running) |
_INT_ i_PCI1710_WriteTimerValue | ( | HANDLE | h_DeviceHandle, |
BYTE_ | b_ModuleNbr, | ||
BYTE_ | b_TimerNbr, | ||
DWORD_ | dw_Value | ||
) |
Write the value of a given 82c54 timer
[in] | h_DeviceHandle | Handle of the board |
[in] | b_ModuleNbr | Number of the module in which the timer is located (0 to 3) |
[in] | b_TimerNbr | Number of the timer (0 to 2) |
[in] | dw_Value | value to be written |