Attention: this is a legacy library and thus not supported by Toradex anymore. We recommend that you use the new libraries for all Toradex modules. Please see the Toradex CE Libraries and Code Samples for up-to-date information.
Header file for the Interrupt Library. More...
Functions |
|
HANDLE | LoadIntChainHandlerCompat (LPCWSTR lpFilename, LPCWSTR lpszFunctionName, BYTE bIRQ) |
BOOL | FreeIntChainHandlerCompat (HANDLE hInstance) |
BOOL | InterruptInitializeCompat (DWORD idInt, HANDLE hEvent, LPVOID pvData, DWORD cbData) |
void | InterruptDisableCompat (DWORD idInt) |
void | InterruptDoneCompat (DWORD idInt) |
LPVOID | CreateStaticMappingCompat (DWORD dwPhysBase, DWORD dwSize) |
BOOL | KernelLibIoControlCompat (HANDLE hModule, DWORD dwIoControlCode, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned) |
DWORD | GetGPIOIrq (DWORD dwGpio) |
BOOL | SetGPIOIrqEdge (DWORD dwGpio, DWORD dwEdge) |
DWORD | RequestSysInterrupt (DWORD dwIrq) |
BOOL | ReleaseSysIntr (DWORD dwSysIntr) |
void | INTGetLibVersion (DWORD *pVerMaj, DWORD *pVerMin, DWORD *pBuild) |
Header file for the Interrupt Library.
#define GPIO_EDGE_FALLING 2 |
#define GPIO_EDGE_RISING 1 |
Defines for Interrupt Edge Detect.
#define GPIO_LEVEL_HIGH (GPIO_EDGE_RISING | 4) |
Defines for Interrupt Level Detect.
#define GPIO_LEVEL_LOW (GPIO_EDGE_FALLING | 4) |
#define INT_VER_BUILD 0 |
#define INT_VER_MAJ 2 |
#define INT_VER_MIN 6 |
enum tegraIrqNumbers |
Tegra IRQ numbers.
LPVOID CreateStaticMappingCompat | ( | DWORD | dwPhysBase, |
DWORD | dwSize | ||
) |
Win CE 5.0/6.0/7.0 compatible version of CreateStaticMapping()
[in] | dwPhysBase | Physical Base |
[in] | dwSize | Size |
Virtual | address |
BOOL FreeIntChainHandlerCompat | ( | HANDLE | hInstance | ) |
Win CE 5.0/6.0/7.0 compatible version of FreeIntChainHandler()
[in] | hInstance | Instance Handle |
True | Success |
False | Failure |
DWORD GetGPIOIrq | ( | DWORD | dwGpio | ) |
Get the IRQ for a specific GPIO Pin
[in] | dwGpio | GPIO Pin Number |
IRQ | Number |
void InterruptDisableCompat | ( | DWORD | idInt | ) |
Win CE 5.0/6.0/7.0 compatible version of InterruptDisable()
[in] | idInt | Interrupt ID |
void InterruptDoneCompat | ( | DWORD | idInt | ) |
Win CE 5.0/6.0/7.0 compatible version of Interrupt()
[in] | idInt | Interrupt ID |
BOOL InterruptInitializeCompat | ( | DWORD | idInt, |
HANDLE | hEvent, | ||
LPVOID | pvData, | ||
DWORD | cbData | ||
) |
Win CE 5.0/6.0/7.0 compatible version of InterruptInitialize()
[in] | idInt | Interrupt ID |
[in] | hEvent | Event Handle |
[in] | pvData | Pointer to data buffer |
[in] | cbData | Size of data buffer |
True | Success |
False | Failure |
void INTGetLibVersion | ( | DWORD * | pVerMaj, |
DWORD * | pVerMin, | ||
DWORD * | pBuild | ||
) |
Outputs library version
[out] | verMaj | Major version number. Set this parameter to NULL if not required |
[out] | verMin | Minor version number. Set this parameter to NULL if not required |
[out] | build | Build number. Set this parameter to NULL if not required |
BOOL KernelLibIoControlCompat | ( | HANDLE | hModule, |
DWORD | dwIoControlCode, | ||
LPVOID | lpInBuf, | ||
DWORD | nInBufSize, | ||
LPVOID | lpOutBuf, | ||
DWORD | nOutBufSize, | ||
LPDWORD | lpBytesReturned | ||
) |
Win CE 5.0/6.0/7.0 compatible version of KernelLibIoControl()
[in] | hModule | Module Handle returned by LoadIntChainHandlerCompat() |
[in] | dwIoControlCode | IO Control Code |
[in] | lpInBuf | Pointer to Input Buffer |
[in] | nInBufSize | Input Buffer Size in bytes |
[in] | lpOutBuf | Pointer to Output Buffer |
[in] | nOutBufSize | Output Buffer Size |
[out] | lpBytesReturned | Number of bytes returned |
True | Success |
False | Failure |
HANDLE LoadIntChainHandlerCompat | ( | LPCWSTR | lpFilename, |
LPCWSTR | lpszFunctionName, | ||
BYTE | bIRQ | ||
) |
Win CE 5.0/6.0/7.0 compatible version of LoadIntChainHandler()
[in] | lpFilename | Pointer to Filename |
[in] | lpszFunctionName | Function Name String |
[in] | bIRQ | IRQ Number |
HANDLE | Instance Handle |
BOOL ReleaseSysIntr | ( | DWORD | dwSysIntr | ) |
Release the specified system interrupt
[in] | dwSysIntr | System Interrupt Number |
True | Success |
False | Failure |
DWORD RequestSysInterrupt | ( | DWORD | dwIrq | ) |
Get the System Interrupt Number for the specified IRQ
[in] | dwIRQ | IRQ Number |
System | Interrupt Number |
BOOL SetGPIOIrqEdge | ( | DWORD | dwGpio, |
DWORD | dwEdge | ||
) |
Set the GPIO Interrupt Edge Detect
[in] | dwGpio | GPIO Pin Number |
[in] | dwEdge | GPIO_EDGE_RISING or GPIO_EDGE_FALLING |
True | Success |
False | Failure |