environment.h
来自「IT projecotr reference design.」· C头文件 代码 · 共 53 行
H
53 行
/****************************************************************************/
/* TEXAS INSTRUMENTS PROPRIETARY INFORMATION */
/* */
/* (c) Copyright, Texas Instruments Incorporated, 2006. */
/* All Rights Reserved. */
/* */
/* Property of Texas Instruments Incorporated. Restricted Rights - */
/* Use, duplication, or disclosure is subject to restrictions set */
/* forth in TI's program license agreement and associated documentation. */
/****************************************************************************/
/****************************************************************************/
/* environment.h */
/* */
/* Environmental monitor. */
/****************************************************************************/
#ifndef __ENVIRONMENT_H
#define __ENVIRONMENT_H
#include "common.h"
#include "sysmon.h"
/****************************************************************************/
/* Declarations. */
/****************************************************************************/
#define ENVIRONMENT_PERIOD 500 /* 500 milliseconds polling period */
#define MAXFAN 3 /* max. number of fans is 3, ref design used 2 */
#define FANSPEED 80 /* default fan duty cycle */
/****************************************************************************/
/* Interface functions. */
/****************************************************************************/
int16 enviro_poll( uint16 tick );
EXEC_CC_ENUM enviro_powerStandby( void );
EXEC_CC_ENUM enviro_powerNormal( void );
EXEC_CC_ENUM enviro_init( void );
void enviro_enableAutoTilt( BOOL enable );
BOOL enviro_fanCheckRotorLock( void );
uint08 enviro_fanGetSpeed( uint08 fanNo );
BOOL enviro_fanSetDutyCycle( uint08 dutyCycle );
void enviro_startCooldown( void );
void enviro_enableLampCWInterlock( BOOL enable );
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?