
linux应用
linux应用
__RICK
Read the fucking source code!
展开
-
十六进制与ascii码互转 C语言实现
十六进制与ascii码互转 C语言实现1. ascii转16进制/** * func : char_to_hex() * desc : convert ascii to 16 hex * input : ascii * return: hex */unsigned char char_to_hex(unsigned char chr){ if((chr>='0')&&(chr<='9')) chr = 0x30+(chr-'0'原创 2020-10-27 01:22:18 · 18740 阅读 · 6 评论 -
linux下实现录音和播放
linux下编写本地录音和播放demo测试代码:1. 通过读.wav格式的音频流,将音频流写入DMA缓存区,实现语音播放;2. 通过读DMA缓存区的音频流,实现录音。首先要配置硬件参数,包括设置采样位数、通道数、采样率等,然后向DMA缓存区写或者读,实现播放和录音,具体见下文:/************************************************************************* > File Name: local_player.c原创 2020-06-16 00:46:33 · 3828 阅读 · 2 评论 -
Linux 下串口编程实例
Linux 下串口编程实例#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <termios.h>#include <errno.h>#define TRUE 0#defin.原创 2020-09-27 16:52:54 · 830 阅读 · 0 评论 -
Linux C语言TCP socket编程实例
Linux C语言socket编程详解避免大家浪费时间找教材以及万恶的积分下载,分析这本书,仅供学习参考:计算机网络第七版谢希仁pdf下载原创 2020-05-08 00:59:42 · 707 阅读 · 0 评论