?? davincihd_dip.h
字號:
/*
* Copyright 2007 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* DIP Switch header file
*
*/
#ifndef DIP_
#define DIP_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincihd.h"
#include "davincihd_gpio.h"
#include "davincihd_i2c_gpio.h"
/* ------------------------------------------------------------------------ *
* Definitions *
* ------------------------------------------------------------------------ */
#define DIP_0 0
#define DIP_1 1
#define DIP_2 2
#define DIP_3 3
/* ------------------------------------------------------------------------ *
* Switch Settings *
* ------------------------------------------------------------------------ */
#define DIP_DOWN 0 // DIP switch is DOWN
#define DIP_UP 1 // DIP switch is UP
/* ------------------------------------------------------------------------ *
* I2C Address *
* ------------------------------------------------------------------------ */
#define DIP_I2C_ADDR I2C_GPIO_GROUP_0
/* ------------------------------------------------------------------------ *
* Prototypes *
* ------------------------------------------------------------------------ */
Int16 DAVINCIHD_DIP_init( );
Int16 DAVINCIHD_DIP_get ( Int32 dip_num );
Int16 DAVINCIHD_DIP_wait( Int32 timeout );
#ifdef __cplusplus
}
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -