Int Lib API
danger
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...
Macros
##define INT_VER_MAJ 2 #define INT_VER_MIN 6 #define INT_VER_BUILD 0 #define GPIO_EDGE_RISING 1 Defines for Interrupt Edge Detect. More...
#define GPIO_EDGE_FALLING 2 #define GPIO_LEVEL_HIGH (GPIO_EDGE_RISING | 4) Defines for Interrupt Level Detect. More...
#define GPIO_LEVEL_LOW (GPIO_EDGE_FALLING| 4)
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) |
Detailed Description
Header file for the Interrupt Library.
- Copyright
- Copyright (c) 2013 Toradex AG
- Author
- andy.kiser
- Rev
- 2863
- Date
- 2015-06-26 17:18:52 +0200 (Fr, 26 Jun 2015)
- Target Platforms:
- PXAxxx, Txx
Macro Definition Documentation
#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 |
Enumeration Type Documentation
enum tegraIrqNumbers |
Tegra IRQ numbers.
Function Documentation
LPVOID CreateStaticMappingCompat | ( | DWORD | dwPhysBase, |
DWORD | dwSize | ||
) |
Win CE 5.0/6.0/7.0 compatible version of CreateStaticMapping()
- Parameters
[in] dwPhysBase Physical Base [in] dwSize Size
- Return values
Virtual address
BOOL FreeIntChainHandlerCompat | ( | HANDLE | hInstance | ) |
Win CE 5.0/6.0/7.0 compatible version of FreeIntChainHandler()
- Parameters
[in] hInstance Instance Handle
- Return values
True Success False Failure
DWORD GetGPIOIrq | ( | DWORD | dwGpio | ) |
Get the IRQ for a specific GPIO Pin
- Parameters
[in] dwGpio GPIO Pin Number
- Return values
IRQ Number
void InterruptDisableCompat | ( | DWORD | idInt | ) |
Win CE 5.0/6.0/7.0 compatible version of InterruptDisable()
- Parameters
[in] idInt Interrupt ID
void InterruptDoneCompat | ( | DWORD | idInt | ) |
Win CE 5.0/6.0/7.0 compatible version of Interrupt()
- Parameters
[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()
- Parameters
[in] idInt Interrupt ID [in] hEvent Event Handle [in] pvData Pointer to data buffer [in] cbData Size of data buffer
- Return values
True Success False Failure
void INTGetLibVersion | ( | DWORD * | pVerMaj, |
DWORD * | pVerMin, | ||
DWORD * | pBuild | ||
) |
Outputs library version
- Parameters
[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()
- Parameters
[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
- Return values
True Success False Failure
HANDLE LoadIntChainHandlerCompat | ( | LPCWSTR | lpFilename, |
LPCWSTR | lpszFunctionName, | ||
BYTE | bIRQ | ||
) |
Win CE 5.0/6.0/7.0 compatible version of LoadIntChainHandler()
- Parameters
[in] lpFilename Pointer to Filename [in] lpszFunctionName Function Name String [in] bIRQ IRQ Number
- Return values
HANDLE Instance Handle
BOOL ReleaseSysIntr | ( | DWORD | dwSysIntr | ) |
Release the specified system interrupt
- Parameters
[in] dwSysIntr System Interrupt Number
- Return values
True Success False Failure
DWORD RequestSysInterrupt | ( | DWORD | dwIrq | ) |
Get the System Interrupt Number for the specified IRQ
- Parameters
[in] dwIRQ IRQ Number
- Return values
System Interrupt Number
BOOL SetGPIOIrqEdge | ( | DWORD | dwGpio, |
DWORD | dwEdge | ||
) |
Set the GPIO Interrupt Edge Detect
- Parameters
[in] dwGpio GPIO Pin Number [in] dwEdge GPIO_EDGE_RISING or GPIO_EDGE_FALLING
- Return values
True Success False Failure