davincievm_gpio_exp.h
来自「Uart source in CCS 3.3 C5507」· C头文件 代码 · 共 42 行
H
42 行
/*
* Copyright 2005 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*
* Not for distribution.
*/
/*
* GPIO Expander header file
*
*/
#ifndef GPIO_EXP_
#define GPIO_EXP_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincievm_i2c.h"
#define GPIO_EXP_GROUP0 0x38 // I2C Address
#define GPIO_EXP_GROUP1 0x39
#define GPIO_EXP_GROUP2 0x3A
/* ------------------------------------------------------------------------ *
* *
* GPIO Exp Prototypes *
* *
* ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_GPIO_EXP_init ( );
Int16 DAVINCIEVM_GPIO_EXP_setOutput( Uint16 group_id, Uint16 number, Uint8 value );
Int16 DAVINCIEVM_GPIO_EXP_getInput ( Uint16 group_id, Uint16 number );
Int16 DAVINCIEVM_GPIO_EXP_getall ( Uint16 group_id, Uint16 *pattern);
Int16 DAVINCIEVM_GPIO_EXP_setall ( Uint16 group_id, Uint16 pattern);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?