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

📄 power_table.h

📁 电源 电源 电源 电源 电源 电源 电源 电源 电源
💻 H
字号:
/****************************************************************************

  Copyright (C) Cambridge Silicon Radio October 2001

FILE
        power_table.h - power management table

MODIFICATION HISTORY


*****************************************************************************/

/*
	Power management is a fine balance between power consumption and responsiveness -
	these values are purely as an example.

	Each entry in the table defines a power mode.
	The HID library starts in the first mode and if there is no Bluetooth data sent or
	received in the timeout, moves to the next state.  When this times out it moves 
	to the next state  If data is received at any time, the HID library will return
	immediately to the first state.
	You can specify as many modes as you like, but the last mode must have a timeout of
	zero i.e. infinite.

	The table below is given as an example and so should be tuned to your particular
	user model.
	A key point to consider is that the mouse sensor will only check for movement once
	per sniff interval, so if the mouse is moved quickly, the sensor will miss the distance
	moved during the sniff interval.  This means for longer sniff interval (> approx. 100ms)
	a quick movement of the mouse will result in wake up, but probably miss a considerable
	amount of movement.
*/
static const POWER_STATE_T PowerTable[]=
{
	/* mode,    interval,   time, */
	{pm_sniff,		20,	    1},	/* active mode 12.5ms sniff */
	{pm_sniff,		40,	   10},	/* 25ms sniff */
	{pm_sniff,		80,	   50}, /* 50ms sniff */
	{pm_sniff,     120,	  120}, /* 75ms sniff - wheel off, so entering deep sleep between intervals */
	{pm_sniff,	   240,   240},	/* 150ms sniff */
	{pm_sniff,	   320,	  240},	/* 250ms sniff */
	{pm_disconnect,	 0,		0},	/* disconnect - final powerdown */
};

⌨️ 快捷键说明

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