RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_pin_ops结构体 参考

#include <dev_pin.h>

成员变量

void(* pin_mode )(struct rt_device *device, rt_base_t pin, rt_uint8_t mode)
 
void(* pin_write )(struct rt_device *device, rt_base_t pin, rt_uint8_t value)
 
rt_ssize_t(* pin_read )(struct rt_device *device, rt_base_t pin)
 
rt_err_t(* pin_attach_irq )(struct rt_device *device, rt_base_t pin, rt_uint8_t mode, void(*hdr)(void *args), void *args)
 
rt_err_t(* pin_detach_irq )(struct rt_device *device, rt_base_t pin)
 
rt_err_t(* pin_irq_enable )(struct rt_device *device, rt_base_t pin, rt_uint8_t enabled)
 
rt_base_t(* pin_get )(const char *name)
 
rt_err_t(* pin_debounce )(struct rt_device *device, rt_base_t pin, rt_uint32_t debounce)
 

详细描述

pin device operations

在文件 dev_pin.h213 行定义.

结构体成员变量说明

◆ pin_mode

void(* rt_pin_ops::pin_mode) (struct rt_device *device, rt_base_t pin, rt_uint8_t mode)

在文件 dev_pin.h215 行定义.

◆ pin_write

void(* rt_pin_ops::pin_write) (struct rt_device *device, rt_base_t pin, rt_uint8_t value)

在文件 dev_pin.h216 行定义.

◆ pin_read

rt_ssize_t(* rt_pin_ops::pin_read) (struct rt_device *device, rt_base_t pin)

在文件 dev_pin.h217 行定义.

◆ pin_attach_irq

rt_err_t(* rt_pin_ops::pin_attach_irq) (struct rt_device *device, rt_base_t pin, rt_uint8_t mode, void(*hdr)(void *args), void *args)

在文件 dev_pin.h218 行定义.

◆ pin_detach_irq

rt_err_t(* rt_pin_ops::pin_detach_irq) (struct rt_device *device, rt_base_t pin)

在文件 dev_pin.h220 行定义.

◆ pin_irq_enable

rt_err_t(* rt_pin_ops::pin_irq_enable) (struct rt_device *device, rt_base_t pin, rt_uint8_t enabled)

在文件 dev_pin.h221 行定义.

◆ pin_get

rt_base_t(* rt_pin_ops::pin_get) (const char *name)

在文件 dev_pin.h222 行定义.

◆ pin_debounce

rt_err_t(* rt_pin_ops::pin_debounce) (struct rt_device *device, rt_base_t pin, rt_uint32_t debounce)

在文件 dev_pin.h223 行定义.