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

📄 power.h

📁 此压缩包为杰得开发得z228的BSP的源代码,可以实现很多功能,尤其是视频解码有很好的效果.
💻 H
字号:
/********************************************************/
/* power.h: head of power.		                          */
/* Author   : qzsu																			*/
/* History  : 2006-11-11																*/
/********************************************************/
#ifndef _power_h
#define _power_h


#ifdef __cplusplus
extern "C"
{
#endif


#include "global.h"


void PM_InitI2C(void);
void PM_DeInitI2C(void);

/*****************************************
Fuction:	backlight
Input:		double val
					0--close backlight;
					(0,160]--normal current;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_BackLight(double val);

/*****************************************
Fuction:	set wifi 1.8v
Input:		double val
					0--close wifi 1.8v channel;
					[0.75,2.5]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_WiFi_1v8(double val);

/*****************************************
Fuction:	set wifi 3.3v
Input:		double val
					0--close wifi 3.3v channel;
					[1.85,3.4]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_WiFi_3v3(double val);

/*****************************************
Fuction:	set NandFlash voltage
Input:		double val
					0--close NandFlash channel;
					[1.85,3.4]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_NandFlash(double val);

/*****************************************
Fuction:	set CMOS voltage
Input:		double val
					0--close CMOS channel;
					[0.75,2.5]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_Cmos(double val);

/*****************************************
Fuction:	set SIM voltage
Input:		double val
					0--close SIM channel;
					[1.8,3.0]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_Sim(double val);

/*****************************************
Fuction:	set Z228 3v3 voltage
Input:		double val
					0--close Z228 3v3 channel;
					[2.5,3.2]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_Z228_3v3(double val);

/*****************************************
Fuction:	set Z228 1v2 voltage
Input:		double val
					0--close Z228 1v2 channel;
					[1.0,3.0]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_Z228_1v2(double val);

/*****************************************
Fuction:	set SDRAM voltage
Input:		double val
					0--close SDRAM channel;
					[1.85,3.4]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_Sdram(double val);

/*****************************************
Fuction:	set SdCard voltage
Input:		double val
					0--close SdCard channel;
					[1.85,3.4]--normal voltage;
					others--abnormal
Output:		none
Return:		none
Modify:
*******************************************/
void PM_SdCard(double val);

void PM_PowerOff(void);

U32 PM_ForceReset(void);

/*****************************************
Fuction:	Set Reset Timer
Input:		U8 value
					15ms的倍数,最小为1,最大为8
Output:		none
Return:		none
Modify:		qzsu 2006-12-16
*******************************************/
void PM_SetResetTimer(U8 value);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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