📄 davincievm_gpio.h
字号:
/*
* Copyright 2005 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*
* Not for distribution.
*/
/*
* GPIO header file
*
*/
#ifndef GPIO_
#define GPIO_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincievm.h"
#define GPIO_IN 1
#define GPIO_OUT 0
/* ------------------------------------------------------------------------ *
* *
* GPIO Prototypes *
* *
* ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_GPIO_init ( );
Int16 DAVINCIEVM_GPIO_setDirection( Uint16 number, Uint8 direction );
Int16 DAVINCIEVM_GPIO_setOutput ( Uint16 number, Uint8 value );
Int16 DAVINCIEVM_GPIO_getInput ( Uint16 number );
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -