红外接收(nec)稳定程序 c文件
/* =========================================================================== */
/* Project: s3c44b0_lib */
/* File: irda.c */
/* Organization: cug-1200525 */
/* Author: yuyongbao */
/* Date: 5/11/2007 */
/* Describe: lib */
/* =========================================================================== */
#include "..\mcu_lib\lib_config.h"
#include "irda.h"
unsigned char bitcnt;
unsigned char Irdata[4];
unsigned char IrBegin,IrOK;
void Irda_Init(void)
{
bitcnt=0;
IrOK=FALSE;
IrBegin=FALSE;
rTCON &= 0xf0ffffff; // clear manu
相关文档:
1. 枚举的定义枚举类型定义的一般形式为:
enum 枚举名{ 枚举值表 };
在枚举值表中应罗列出所有可用值。这些值也称为枚举元素。
例如:
该枚举名为weekday,枚举值共有7个,即一周中的七天。凡被说明为weekday类型变量的取值只能是七天中的某一天。
2. 枚举变量� ......
获取IP的C 代码 #include<stdio.h> #include<winsock2.h> #pragma comment(lib,"ws2_32.lib") void CheckIP(void) //定义CheckIP()函数,用于获取本机IP地址 { WSADATA wsaData; char name[255]; //定义用 ...
获取IP的C 代码
#include<stdio.h>
#include<winsock2.h>
#pragma comment(li ......
1.求下面函数的返回值(微软)
int func(x)
{
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
&n ......
assert
函数名: assert
功 能: 测试一个条件并可能使程序终止
用 法: void assert(int test);
程序例:
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
struct ITEM {
int&n ......
/* =========================================================================== */
/* Project: s3c44b0_lib & ......