vibrator.h
来自「freescale i.mx31 BSP CE5.0全部源码」· C头文件 代码 · 共 62 行
H
62 行
//------------------------------------------------------------------------------
//
// 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 + =
减小字号Ctrl + -
显示快捷键?