- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 学习笔记(01):轻松学Linux系列课程-linux系统介绍
从0开始,Linux云计算系列课程,包含Linux初级运维、运维、初级架构师、云计算运维及开发.....
2020-02-07 19:58:04 85
EMC78P153中文技术资料
EMC中文技术资料I2C串行总线具有占用I/O口少,控制方式简单,信号传输速度快,配套功能芯片种类多的优点,非常适用于单片机系统设计中,I2C串行总线由两根线构成:数据线(SDA),
参考链接:file:///E:/work/义隆单片机/第四章%20EM78系列单片机程序设计%20(%202%20)-东哥单片机学习网.htm
2009-05-03
c语言函数手册目目目
c语言手册由于程序的原因,本文件未被完整保存。
函数名: open
功 能: 打开一个文件用于读或写
用 法: int open(char *pathname, int access[, int permiss]);
程序例:
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
int main(void)
{
int handle;
char msg[] = "Hello world";
if ((handle = open("TEST.$$$", O_CREAT | O_TEXT)) == -1)
{
perror("Error:");
return 1;
}
write(handle, msg, strlen(msg));
close(handle);
return 0;
}
函数名: outport
功 能: 输出整数到硬件端口中
用 法: void outport(int port, int value);
程序例:
#include <stdio.h>
#include <dos.h>
int main(void)
{
int value = 64;
int port = 0;
outportb(port, value);
printf("Value %d sent to port number %d\n", value, port);
return 0;
}
函数名: outportb
功 能: 输出字节到硬件端口中
用 法: void outportb(int port, char byte);
程序例:
#include <stdio.h>
#include <dos.h>
int main(void)
{
int value = 64;
int port = 0;
outportb(port, value);
printf("Value %d sent to port number %d\n", value, port);
return 0;
}
函数名: outtext
功 能: 在视区显示一个字符串
用 法: void far outtext(char far *textstring);
程序例:
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int midx, midy;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
2009-03-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人