RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtthread.h>
结构体 | |
struct | rt_device_pin |
struct | rt_device_pin_mode |
struct | rt_device_pin_value |
struct | rt_pin_irq_hdr |
struct | rt_pin_ops |
宏定义 | |
#define | PIN_NONE (-1) |
#define | PIN_LOW 0x00 |
#define | PIN_HIGH 0x01 |
#define | PIN_MODE_OUTPUT 0x00 |
#define | PIN_MODE_INPUT 0x01 |
#define | PIN_MODE_INPUT_PULLUP 0x02 |
#define | PIN_MODE_INPUT_PULLDOWN 0x03 |
#define | PIN_MODE_OUTPUT_OD 0x04 |
#define | PIN_IRQ_MODE_RISING 0x00 |
#define | PIN_IRQ_MODE_FALLING 0x01 |
#define | PIN_IRQ_MODE_RISING_FALLING 0x02 |
#define | PIN_IRQ_MODE_HIGH_LEVEL 0x03 |
#define | PIN_IRQ_MODE_LOW_LEVEL 0x04 |
#define | PIN_IRQ_DISABLE 0x00 |
#define | PIN_IRQ_ENABLE 0x01 |
#define | PIN_IRQ_PIN_NONE PIN_NONE |
函数 | |
int | rt_device_pin_register (const char *name, const struct rt_pin_ops *ops, void *user_data) |
void | rt_pin_mode (rt_base_t pin, rt_uint8_t mode) |
void | rt_pin_write (rt_base_t pin, rt_ssize_t value) |
rt_ssize_t | rt_pin_read (rt_base_t pin) |
rt_base_t | rt_pin_get (const char *name) |
rt_err_t | rt_pin_attach_irq (rt_base_t pin, rt_uint8_t mode, void(*hdr)(void *args), void *args) |
rt_err_t | rt_pin_detach_irq (rt_base_t pin) |
rt_err_t | rt_pin_irq_enable (rt_base_t pin, rt_uint8_t enabled) |
rt_err_t | rt_pin_debounce (rt_base_t pin, rt_uint32_t debounce) |