亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pwr_interface.h

?? freescale的基于802.15.4的無線通訊例程
?? H
字號:
/************************************************************************************
* Function to handle/set the different power down states.
*
* Author(s): Peter B. Busk, Mads Westergreen
*
* (c) Copyright 2005, Freescale Semiconductor, Inc. All rights reserved.
*
* Freescale Confidential Proprietary
* Digianswer Confidential
*
* No part of this document must be reproduced in any form - including copied,
* transcribed, printed or by any electronic means - without specific written
* permission from Freescale.
*
************************************************************************************/
#ifndef _PWR_H_
#define _PWR_H_

/************************************************************************************
*************************************************************************************
* Includes and external declarations
*************************************************************************************
************************************************************************************/
#include "EmbeddedTypes.h"
#include "PWRLib.h"

extern void AbelRegisterSetup(void);

/************************************************************************************
*************************************************************************************
* Public Macros
*************************************************************************************
************************************************************************************/
#define gAllowDeviceToSleep_c 0

/************************************************************************************
*************************************************************************************
* Public types
*************************************************************************************
************************************************************************************/
//---------------------------------------------------------------------------//
/*--- Parameter type for PWR_CheckForAndEnterNewPowerState(..) call       ---*/
typedef enum {PWR_Run = 77, PWR_Sleep, PWR_DeepSleep, PWR_Reset, PWR_OFF} PWR_CheckForAndEnterNewPowerState_t;

/************************************************************************************
*************************************************************************************
* Public prototypes
*************************************************************************************
************************************************************************************/
/*****************************************************************************
* This function is used to  set the global variable which 
* permits(on SET)/restricts(On RESET)the device to enter low power state. 
*
*
* Interface assumptions:
* None
* 
* The routine limitations.
* None
*
* Return value:
* None
*
* Effects on global data.
* It sets the  mLPMFlag
*
* Source of algorithm used.
* None
*
* Revison history:
*
* date   Author   Comments
* ------ ------   --------
* 030706 USR      Created
*****************************************************************************/ 
void PWR_AllowDeviceToSleep(void);

/*****************************************************************************
* This function is used to  reset the global variable which 
* permits(on SET)/restricts(On RESET)the device to enter low power state. 
*
*
* Interface assumptions:
* None
* 
* The routine limitations.
* None
*
* Return value:
* None
*
* Effects on global data.
* It resets the  mLPMFlag
*
* Source of algorithm used.
* None
*
* Revison history:
*
* date   Author   Comments
* ------ ------   --------
* 030706 USR      Creted
*****************************************************************************/ 
void PWR_DisallowDeviceToSleep(void);

/***********************************************************************************
* This function is used to  Check  the Permission flag to go to 
* low power mode
*
* Interface assumptions:
* None
* 
* The routine limitations.
* None
*
* Return value:
*   TRUE  : If the device is allowed to go to the LPM else FALSE
*
* Effects on global data.
* None
*
* Source of algorithm used.
* None
*
* Revison history:
*
* date   Author   Comments
* ------ ------   --------
* 030706  USR     Created
*****************************************************************************/ 

bool_t PWR_CheckIfDeviceCanGoToSleep( void );

/******************************************************************************
* Description : Will use internal MCU clock, set RADIO in hibernate and then
*               reset it. The MCU IO's are programmed for low power and then
*               MCU are set in STOP3 mode.
* Assumptions : None
* Input       : None
* Output      : FALSE: Hibernate not allowed
*               TRUE : All ok
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
******************************************************************************/
bool_t PWR_Stop3AndOff(void);
/******************************************************************************
* Description : Will use internal MCU clock, set RADIO in hibernate and then
*               reset it. The MCU are set in STOP1 mode. Only exit if Reset.
* Assumptions : None
* Input       : None
* Output      : FALSE: Hibernate not allowed
*               TRUE : All ok
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
******************************************************************************/
bool_t PWR_AllOff(void);

/******************************************************************************
* Description : Will restore normal IO, startup RADIO, init MAC/RADIO without
*               destroying PIB setup and then synchronize to RADIO clock.
*               Calls MAC to resync.
* Assumptions : Only to be called after a prior call to PWR_Stop3AndOff()
* Input       : None
* Output      : None
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
******************************************************************************/
void PWR_RunAgain(void);

/******************************************************************************
* Description : Will check if DeepSleep are allowed by MAC and Stack.
*               DeepSleep are where RADIO is in reset and MCU are in STOP3
* Assumptions : None
* Input       : None
* Output      : TRUE  : Both MAC and Stack allows DeepSleep
*               FALSE : One or more are busy
* Errors      : Not handled
* History     : 20050407  pbbusk1 Created
*               20050530  pbbusk1 Removed application status check
******************************************************************************/
bool_t PWR_DeepSleepAllowed(void);

/******************************************************************************
* Description : Will check if Sleep are allowed by MAC and Stack.
*               Sleep are when system will wake on an interrupt. Typically the
*               RADIO is set in DOZE mode and MCU in WAIT mode.
* Assumptions : None
* Input       : None
* Output      : TRUE  : Success - MAC and Stack both allows sleep
*               FALSE : One or more are busy
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
*               20050530  pbbusk1 Removed application status check
******************************************************************************/
bool_t  PWR_SleepAllowed(void);

/******************************************************************************
* Description : Will go into a DeepSleep mode. Depending on what was decided on
*               Compile time, other reactions can be chosen (For test)
* Assumptions : None
* Input       : DozeDuration    : The number of RTI ticks (1024msec) to DeepSleep
* Output      : Bit array containing the reason for wakeup - please see the
*               definition in PWRLib.h
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
******************************************************************************/
PWRLib_WakeupReason_t  PWR_HandleDeepSleep( zbClock24_t  DozeDuration);

/******************************************************************************
* Description : Will go into a Sleep mode. Depending on what was decided on
*               Compile time, other reactions can be chosen (For test).
* Assumptions : None
* Input       : DozeDuration    : The time in Symbols to wait (16usec)
* Output      : Bit array containing the reason for wakeup - please see the
*               definition in PWRLib.h
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
*             : 20050530  pbbusk1  Using cPWR_SleepMode instead
******************************************************************************/
PWRLib_WakeupReason_t  PWR_HandleSleep( zbClock24_t DozeDuration);

/******************************************************************************
* Description : Will check for new power state to enter.
* Note        : Intended for use in main code.
* Input       : NewPowerState   : The wanted new power state. Can be one of the following:
*                 PWR_Run       : No change will continue to run. Does nothing.
*                 PWR_Sleep     : Will enter a RADIO Doze mode for spec. time.
*                 PWR_DeepSleep : Will Power down RADIO and Stop the MCU.
*                 PWR_Reset     : Force a reset of MCU.
*                 PWR_OFF       : Power down RADIO and MCU completely. Reset to wake.
*               DozeDuration    : The time to sleep. In symbols when PWR_Sleep.
*                                 In times 1024ms when PWR_DeepSleep.
* Output      : Bit array containing the reason for wakeup - please see the
*               definition in PWRLib.h
* Assumptions : None
* Errors      : Not handled
* History     : 20050401  pbbusk1   Created
*               20050504  pbbusk1   Added NewPowerState and return value
******************************************************************************/
PWRLib_WakeupReason_t  PWR_CheckForAndEnterNewPowerState(PWR_CheckForAndEnterNewPowerState_t NewPowerState, zbClock24_t DozeDuration);


/******************************************************************************
* Description : Detection of low voltage.
*               Will call PWRLib_LVD_CollectLevel to get level directly
*               when cPWR_LVD_Enable == 1. When cPWR_LVD_Enable == 2 it just reports
*               last sampled value. When cPWR_LVD_Enable == 0, PWR_NODEPOWER_LEVEL_100
*               is always returned and no collection of level is done
* Assumptions : None
* NOTE        : See the PWRLib_LVD_CollectLevel function for better description
* Inputs      : None
* Output      : PWR_NODEPOWER_LEVEL_CRITICAL..PWR_NODEPOWER_LEVEL_100 : As
*               specified above
* Errors      : Not handled
* History     : 20050525  pbbusk1  Created
******************************************************************************/
PWRLib_LVD_VoltageLevel_t PWRLib_LVD_ReportLevel(void);

/******************************************************************************
* Description : Will initialize the project specific registers and setup for
*               correct function of PWR_CheckForAndEnterNewPowerState() function.
* Assumptions : Intended for use in main code and to be modified for each new
*               project.
* Input       : None
* Output      : None
* Errors      : Not handled
* History     : 20050407  pbbusk1  Created
******************************************************************************/
void PWR_CheckForAndEnterNewPowerState_Init(void);
/******************************************************************************
* Description : This function makes the decision between Light Sleep and 
                Deep Sleep and goes to the sleep mode.
                The function is protected from interrupt.
* Input       : None
* Output      : None
* Errors      : Not handled
* History     : 
******************************************************************************/
 void PWR_EnterLowPower(void);
/*****************************************************************************/
 #endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩久久一区| 亚洲成av人在线观看| 国产伦精品一区二区三区在线观看| 成人av在线播放网址| 久久精子c满五个校花| 国产美女视频91| 国产专区综合网| 国产精品国产精品国产专区不蜜| 99国产精品久久久久久久久久久| 午夜精品123| 亚洲国产精品精华液ab| 91老师国产黑色丝袜在线| 视频一区中文字幕国产| 久久精品视频在线看| 久久久久国产成人精品亚洲午夜| 成人av在线资源网站| 成人看片黄a免费看在线| 婷婷六月综合网| 日本不卡一区二区三区高清视频| 国产精品高清亚洲| 亚洲视频一二区| 一区二区三区四区不卡在线| 欧美一区二区视频在线观看| 99视频热这里只有精品免费| 久草中文综合在线| 亚洲自拍偷拍网站| 国产精品初高中害羞小美女文| 国产精品国产自产拍高清av王其| 亚洲激情男女视频| 国产精品视频一二| 精品久久人人做人人爽| 色综合久久久久综合体| 国产一区二区三区电影在线观看| 成人免费视频免费观看| 欧美少妇性性性| 国产成人欧美日韩在线电影| 狂野欧美性猛交blacked| 天天综合色天天综合色h| 国产一区二区三区四区五区入口| 成人精品免费网站| 91精品国产免费| 国产精品久久国产精麻豆99网站 | 亚洲福利视频三区| 亚洲欧洲精品一区二区三区不卡| 国产欧美日本一区二区三区| 久久久国产精品麻豆| 亚洲视频综合在线| 久久国产精品第一页| 日本高清免费不卡视频| 色综合天天做天天爱| 99精品黄色片免费大全| 精品国产一区二区三区久久影院| 精品粉嫩aⅴ一区二区三区四区| 《视频一区视频二区| 极品少妇xxxx精品少妇偷拍| 欧美卡1卡2卡| 日韩久久精品一区| 精品国产乱码久久久久久闺蜜| 亚洲黄色片在线观看| 国产91丝袜在线播放0| 99精品视频免费在线观看| 精品久久国产字幕高潮| 秋霞午夜鲁丝一区二区老狼| 久久成人久久鬼色| 91精品综合久久久久久| 精品国产在天天线2019| 亚洲h在线观看| 91国产丝袜在线播放| 又紧又大又爽精品一区二区| 99国产精品一区| 亚洲欧洲www| 成人精品视频一区二区三区尤物| 国产三级欧美三级| 国产成人免费av在线| 久久精品亚洲麻豆av一区二区| 久久电影网站中文字幕| 精品欧美久久久| 国产精品一区二区不卡| 在线视频欧美精品| 精品999在线播放| 日产精品久久久久久久性色| 91超碰这里只有精品国产| 亚洲大片一区二区三区| 宅男噜噜噜66一区二区66| 三级欧美在线一区| 欧美一区二区三区男人的天堂| 日韩电影在线免费观看| 日韩精品在线一区二区| 狠狠色丁香婷综合久久| 国产性做久久久久久| 成人sese在线| 亚洲午夜视频在线观看| 欧美一激情一区二区三区| 亚洲免费观看在线视频| 国产精品一区二区不卡| 国产精品色婷婷| 欧美亚洲综合一区| 男人的天堂久久精品| 亚洲精品一区二区三区四区高清| 国产99久久精品| 亚洲黄色免费网站| 精品国精品自拍自在线| 成人久久久精品乱码一区二区三区| 一区二区中文视频| 欧美一区在线视频| 99精品一区二区三区| 亚洲国产欧美日韩另类综合 | 国产在线不卡视频| 中文字幕一区二区三区不卡| 欧美精品欧美精品系列| 丰满白嫩尤物一区二区| 亚洲国产成人高清精品| 久久久久久久一区| 欧美日韩一区精品| 亚洲二区视频在线| 国产亚洲精品bt天堂精选| 欧美做爰猛烈大尺度电影无法无天| 另类中文字幕网| 亚洲女与黑人做爰| 欧美精品一区二区三区四区| 91激情在线视频| 韩国在线一区二区| 丝袜亚洲另类丝袜在线| 亚洲欧美影音先锋| 精品乱人伦一区二区三区| 色妹子一区二区| 丁香六月久久综合狠狠色| 美国一区二区三区在线播放| 精品国产一区二区精华| 欧美少妇性性性| av不卡一区二区三区| 久久99久久99小草精品免视看| 自拍偷拍亚洲综合| 国产午夜精品一区二区三区嫩草 | 91精品国产综合久久香蕉麻豆| www.欧美色图| 国产一区二区三区黄视频 | 亚洲成av人片在www色猫咪| 国产精品久久国产精麻豆99网站| 欧美一级在线免费| 欧美三级资源在线| 色综合久久久久综合体桃花网| 韩国午夜理伦三级不卡影院| 国产精品热久久久久夜色精品三区| 久久99在线观看| 亚洲精选视频免费看| 亚洲欧洲在线观看av| 国产亚洲欧美日韩俺去了| 精品国产99国产精品| 欧美一区二区三区视频在线| 欧美亚洲精品一区| 在线视频一区二区免费| 99视频精品全部免费在线| av成人动漫在线观看| 99精品视频在线观看免费| 99久久综合精品| www.亚洲在线| 菠萝蜜视频在线观看一区| 丁香桃色午夜亚洲一区二区三区| 国内一区二区在线| 国产精品888| av成人老司机| 91高清在线观看| 欧美一级日韩免费不卡| 欧美成人a视频| 久久蜜桃av一区二区天堂| 国产精品天干天干在线综合| 国产精品毛片大码女人| 一区二区三区资源| 日韩av一级片| 国产美女一区二区三区| 91在线视频在线| 欧美视频中文字幕| 欧美videossexotv100| 国产色一区二区| 亚洲男帅同性gay1069| 午夜精品久久一牛影视| 国产精品一区二区久久不卡| 成人污污视频在线观看| 91在线视频18| 91精品国产乱码久久蜜臀| 国产性天天综合网| 亚洲美女少妇撒尿| 蜜乳av一区二区| 成人黄色电影在线 | 日韩一区二区三区电影在线观看| 日韩欧美一级在线播放| 中文字幕av一区二区三区高| 亚洲国产成人tv| 国产成+人+日韩+欧美+亚洲| 欧美视频在线播放| 国产色综合久久| 天堂影院一区二区| 成人精品小蝌蚪| 日韩视频免费观看高清完整版 | 国产在线国偷精品产拍免费yy| 欧美精品一区二区三区很污很色的| 国产精品第13页| 久久精品99久久久| 色老综合老女人久久久|