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

📄 uart.cpp

📁 用VC編的數碼相機仿真程序 包括圖像的預處理 DCT變換 壓縮等 最后可用verify.exe做比較
💻 CPP
字号:
/*
* Copyright 2008, writen by shikosan
* File name: uart.cpp
* 串行輸出
* only transmits, does not receive
*/

#include <stdio.h>
#include "uart.h"

static FILE *outputFileHandle;




// This function is passed name of file to output to
void UartInitialize(const char *outputFileName) 
{
    outputFileHandle = fopen(outputFileName, "w");
}

// This function transmits (writes to output file) bytes at a time
// Change char into uchar 
void UartSend(char d) 
// void UartSend(unsigned char d) 
{
    fprintf(outputFileHandle, "%i\n", (int)d);
}

⌨️ 快捷键说明

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