加入收藏
举报
02-14 20:02
#0
文件名称:
osal_irq-h.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
6.08 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# osal\_irq.h
## **Overview**
**Related Modules:**
[OSAL](OSAL.md)
**Description:**
Declares interrupt request \(IRQ\) interfaces and common IRQ trigger modes.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Typedefs









Typedef Name


Description


OsalIRQHandle) (uint32_t irqId, void *dev)


typedef uint32_t(* 


Defines an IRQ type.



## Enumerations









Enumeration Name


Description


OSAL_IRQ_TRIGGER_MODE {   OSAL_IRQF_TRIGGER_NONE = 0, OSAL_IRQF_TRIGGER_RISING = 1, OSAL_IRQF_TRIGGER_FALLING = 2, OSAL_IRQF_TRIGGER_HIGH = 4,   OSAL_IRQF_TRIGGER_LOW = 8 }


Enumerates interrupt trigger modes.



## Functions


















Function Name


Description


OsalRegisterIrq (uint32_t irqId, uint32_t config, OsalIRQHandle handle, const char *name, void *dev)


int32_t 


Registers an IRQ.


OsalUnregisterIrq (uint32_t irqId)


int32_t 


Unregisters an IRQ.


OsalEnableIrq (uint32_t irqId)


int32_t 


Enables an IRQ.


OsalDisableIrq (uint32_t irqId)


int32_t 


Disables an IRQ.


点赞 回复
回帖
支持markdown部分语法 ?