⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vibrator.h

📁 freescale i.mx31 BSP CE5.0全部源码
💻 H
字号:
//------------------------------------------------------------------------------
//
//  Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
//  Use of this source code is subject to the terms of the Microsoft end-user
//  license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
//  If you did not accept the terms of the EULA, you are not authorized to use
//  this source code. For a copy of the EULA, please see the LICENSE.RTF on your
//  install media.
//
//------------------------------------------------------------------------------
//
//  File:  Vibrator.h
//
//  Definition of IOCTL codes, Request information IDs and Structures of Vibrator driver 
//
//------------------------------------------------------------------------------
//
//  Copyright (C) 2004-2005, Motorola Inc. All Rights Reserved
//
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//Includes
#include "pmic_regulator.h"

// Defines 

//Vibrator driver IOCTL codes
#define IOCTL_VIBRATOR_GETDEVICEINFO  		0
#define IOCTL_VIBRATOR_SETDEVICE  			1

//Request Vibrator information IDs
#define VIBRATOR_SUPPORTS_INFO_ID			0	
#define VIBRATOR_SETTINGS_INFO_ID			1

// default vibrator voltage for RR
#define VOLT_VIBRATOR     V_VIB_2_0V
//------------------------------------------------------------------------------
// Types

//VIB_SETTINGS_INFO structure contains information about the settings of the Vibrator.
struct VIB_SETTINGS_INFO {
	UINT OffOnCycles;
	PMIC_REGULATOR_VREG_VOLTAGE OutputVoltage;
	DWORD TotalCycleTime;
  	DWORD OnCycleTime;
  	DWORD OffCyleTime;
  	UINT MetaCycleOn;
  	UINT MetaCycleOff; 
};

//VIB_SUPPORTS_INFO structure contains information about the capabilities of the Vibrator.
struct VIB_SUPPORTS_INFO {
  	BOOL AdjustTotalCycleTime;
  	BOOL AdjustOnCyleTime;
  	BOOL AdjustOffCycleTime;
  	BOOL MetaCycleOn;
  	BOOL MetaCycleOff; 
};

⌨️ 快捷键说明

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