davincievm_led.h

来自「LED contorl source in CCS 3.3 TI DSP c5」· C头文件 代码 · 共 41 行

H
41
字号
/*
 *  Copyright 2005 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 *
 *  Not for distribution.
 */

/*
 *  LED header file
 *
 */

#ifndef LED_
#define LED_

#ifdef __cplusplus
extern "C" {
#endif

#include "davincievm_i2c.h"

#define LED_I2C_ADDR        0x38    // I2C Address

/* ------------------------------------------------------------------------ *
 *                                                                          *
 *  LED Prototypes                                                          *
 *                                                                          *
 * ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_LED_init  ( );
Int16 DAVINCIEVM_LED_on    ( Uint16 num );
Int16 DAVINCIEVM_LED_off   ( Uint16 num );
Int16 DAVINCIEVM_LED_toggle( Uint16 num );
Int16 DAVINCIEVM_LED_getall( Uint16 *pattern );
Int16 DAVINCIEVM_LED_setall( Uint16 pattern );

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?