嵌入式软件命名常用英文集

代码的可读性,首先从命名开始。

嵌入式软件开发时变量、函数等命名,曾遇见单片机MCU翻译为singlechip,字母大小转换使用big/small;或使用LY表示录音;或使用analog_to_digital_converter全称表示ADC。功能运行正常就拒绝改进,这种现象正如吃饭发现了头发,影响心情但确实不致死;更有甚者使用字母l表示length长度,最后莫名其妙地写成了数字1导致严重问题。

软件开发中的命名,尤其是约定俗成的词汇应该优先使用,本文整理了500个常用英文以便规范化。

序号英文缩写中文备注/关联
0abstractabs抽象的
1accessacc存取,访问
2account账户
3acknowledgeack承认,应答
4acquisitionacq获取
5action动作
6activate激活
7actualact实际
8adaptationadapt适应
9adapter适配器
10addadd添加sub
11add-in插件
12addressaddr地址
13administration,administratoradmin管理,管理员微信公众号【嵌入式系统】
14advanced高级的
15advertisementadv广播BLE
16agent代理
17algorithmalg算法
18allocatealloc分配、配置
19alternatealt交替
20analog-to-digital converteradc模数转换器
21analysisanal分析
22answerans答案
23append附加
24applicationapp应用程序
25architecturearch架构
26argumentarg参数param
27arrayarr数组
28assertionassert断言
29assign赋值
30asynchronous异步的UART
31attachmentattach附件
32attributeattr特性,属性
33authorization授权
34automaticauto自动的
35auxiliaryaux辅助
36availableavail可用的
37averageavg平均值
38backbk后退
39backgroundbg背景
40backup备份
41base type基类型
42batch批处理
43beginbegin开始end
44binary二进制
45binding绑定
46bitbit
47block块,区块
48bootloaderbl启动加载器
49boundarybound边界
50breakpoint断点
51bridgebridge
52broadcastbc广播adv
53bufferbuff缓冲区cache
54built-in内置
55bus总线
56business业务
57buttonbtn按钮
58cache缓存buff
59calculatecalc计算
60calibrationcalib校准
61callbackcb回调
62capacitycap容量
63categorycat类别
64certificationcert认证
65changechg改变
66channelch通道
67characteristiccharac特征
68checkchk检测
69checksumchecksum校验和
70circulationcirc循环
71clean清理
72clickclk点击
73clientclient客户端server
74clockclk时钟
75clone克隆
76closeclose关闭open
77collection集合
78colorclr颜色
79columncolrow
80combinecomb组合
81commandcmd命令
82comment注释
83commit提交
84commoncom公共的
85communicationcomm通信
86comparisoncomp比较
87compensationcomp补偿
88compiler编译器
89completioncomplet完成
90componentcom组件
91conditioncond条件
92configurationconfig配置set
93confirmationconfirm确认
94connectconn连接disconnect
95console控制台
96consolidationconsol合并
97constantconst常量
98consumptionconsump消费
99containercont容器
100contentcont内容
101context上下文
102continuecontinue继续
103controlctrl控制,控件
104conversionconv转换
105convert使转变
106coordinatescoord坐标系
107copycpy复制
108countcnt计数
109cover覆盖、涵盖
110createcreate创建delete,destroy
111currentI,curr电流,当前
112custom,customercust定制、自定义
113datadata数据
114databasedb数据库
115deadlinedeadln截止日期
116decodedec解码encode
117decreasedec减少
118decrementdec递减inc
119decryptdecrypt解密encrypt
120defaultdef默认
121delaydelay延迟
122deletedel删除create
123deliverydeliv交付
124demonstrationdemo示范
125descriptiondesc描述
126designdes设计
127destinationdest预定,指定
128destroydestroy销毁create
129detectiondetect检测
130developmentdev开发
131devicedev设备
132dialogdlg对话框
133dictionarydict字典
134difference,differentdiff差异
135directiondirect方向
136directorydir目录
137disabledis禁用enable
138disconnectdisc断开连接
139displaydisp显示
140distancedist距离
141documentdoc文档
142domaindom领域
143downdn向下
144downloaddl下载
145driverdrv驱动
146durationdur持续时间
147dynamicdyn动态的
148effectivenesseffect有效性
149efficiencyeff效率
150electronic mailemail电子邮件
151elementelem元素
152embedded system微信公众号嵌入式系统重点关注
153emergencyemerg紧急情况
154emphasisemph强调
155enableen使能disable
156encodeenc编码decode
157encryptencrypt加密decrypt
158endend结束
159enhancementenhance增强
160enter进入exit
161entity实体
162environmentenv运行环境
163equipmentequip设备
164errorerr错误
165eventevent事件
166exampleex示例
167exceptionexcept例外
168exchangeexch交换
169executeexec执行
170existexist存在
171exit退出enter
172expansionexpans扩展
173expectexp期望
174experimentexpmt实验
175explanationexpl解释
176exportexp出口,导出import
177extensionext扩展
178externalext外部的
179failurefail失败ok
180feedbackfb反馈
181fieldfield
182filefl文件
183firmwarefw固件
184firstfirst第一位
185flagflag标志位万能
186flush刷新file write
187focusfoc焦点
188font字体
189force强制
190formatfmt格式
191forwardfwd转发,向前
192foundationfound基础
193framefrm帧率
194frameworkframewk框架
195frequencyfreq频率
196functionfunc函数
197general purpose input/outputgpio通用输入输出端口
198generategen生成
199generationgener
200getget获取set,take
201global全局的
202groupgrp
203handlehdl句柄
204handler处理器
205handshakehdsk握手
206hardwareHW硬件
207headerhdr头部tail
208heapheap
209highhighlow
210highlighthighlt强调
211hook钩子
212horizontalhorz水平的vertical
213identifierID标识符,身份微信公众号【嵌入式系统】
214idle空闲时间
215imageimg图像
216implementationimplement实施
217import导入export
218importanceimp重要性
219includeincl包含头文件
220inclusioninclus包含
221increaseinc增加
222incrementalinc递增dec
223indexidx,ind索引
224informationinfo信息
225initializeinit初始化deinit
226inputin输入output
227insertinsert插入
228installationinstall安装
229instanceinst实例
230instructioninstruct指令cmd
231instrumentinstr工具
232integrationint整合
233integrityintegr完整性
234interfaceiface接口
235internalint内部的
236internationalinter国际的
237interruptintr中断,中断请求IRQ
238intervalinterv间隔
239introduceintro介绍
240itemitem项、条款、项目
241iterate迭代
242keykey键值
243languagelang语言
244lastlast最后的
245lengthlen,not l长度
246levellevel电平
247librarylib静态库
248lifetime生命期、寿命
249limitationlimit限制
250linklnk链接
251listlst列表
252load装载、加载
253locationloc位置
254locklockunlock
255loglog日志
256logicallogic逻辑的
257login登录
258looploop循环
259lowlowhigh
260macromacro
261mailboxmbx邮箱
262maskmask屏蔽码,掩码
263mastermst主机I2C
264mathematicsmath数学
265maximummax最大值min
266mediummedium
267membershipmember成员
268memorymem内存
269memory leak内存泄漏
270menu菜单
271messagemsg消息
272metadata元数据
273methodologymethod方法
274microphonemic麦克风
275middlemid中间
276middleware中间件
277minimummin最小值max
278modemode模式
279modem调制解调器
280modifymodify修改
281modulemod模块
282multi多种
283multiplymul相乘
284native原生的、本地的
285networknet,nw网络
286newnew新的
287nextnext后一个
288nominalnom理论值
289nonvolatilenv非易失性的
290notifynotify通知
291numbernum数字
292objectobj对象
293offsetoffset偏移
294oldold旧的new
295opcodeopc操作码
296openopen打开close
297operationop操作
298optionopt选择
299organizationorg组织
300orientationorient方向
301originorg起源
302outputout输出input
303overflowoverflow溢出
304overload重载
305override重写
306owner,ownershipown拥有
307packagepkg打包
308packetpkt
309parameterparam参数
310parityparity奇偶校验
311parse解析
312part部件
313passwordpass,psw密码
314paymentpay支付
315peakpeak峰值
316performanceperform表现
317performanceperf性能
318periodperiod周期
319permissionperm许可
320perspectivepersp角度
321phasephase相位
322picturepic图片
323planningplan计划
324platformplat平台
325pointpt
326pointerptr指针
327policypol政策
328popup弹出
329portport端口
330positionpos位置
331postfix后缀suffix
332powerP,pwr功率,电源
333prefixpfx前缀
334preparationpre准备
335pressurepress压力
336preventionprevent预防
337previousprev前一个next
338printprn打印
339priorityprio优先级
340privatepriv私有的
341privilegepriv特权
342procedureproced程序,步骤
343processproc进程
344productionproduc生产
345programprog程序
346progressprog进展
347projectproj项目、工程
348properties性能
349propertyprop属性
350protectedprot受保护
351protocol协议
352publicpub公共的
353pull-downpd下拉
354pull-uppu上拉
355quantityquant数量
356queuequ队列
357range范围、区间
358ratioratio比率
359raw未经处理的
360reactionreact反应
361readread读取
362readonly只读
363readyrdy准备
364realityreal现实
365receivercv接收send
366receptionrecept接待
367recommendationrecommend推荐
368record记录
369recoveryrecovery恢复
370rectrc矩形
371recyclingrecycl回收
372redefine重定义
373redundancyredund冗余
374refactoring重构
375referenceref引用,参考
376regionregion地区
377registerreg注册,寄存器
378regressionrgr回归
379regulationregul规定
380rejectionreject拒绝
381releaserel发布
382reminderremind提醒
383remote远程
384removalrm移除delete
385repetitionrepet重复
386requestreq请求
387reservationreserv预订
388reservedrsvd保留
389resolutionres分辨率
390resourceres资源
391responsersp回复
392restrictionrestrict限制
393resultres结果
394resumeresume恢复suspend
395retentionretent保留
396returnret返回
397ringbuffer环形缓冲区
398riskrisk风险
399rowrow
400safetysaf安全
401samplesampl样本
402samplingsamp采样
403save保存
404scalescale比例尺
405scan扫描BLE,search
406schedulesched调度,安排
407schemesch方案
408scopescope范围
409screenscr屏幕
410search查找scan
411secondsec秒、第二
412secrecysecret保密
413selectsel选择
414semaphoresem信号量
415sendsend发送
416sensorsensor传感器
417separationsepar分离
418sequenceseq序列
419serial串行
420serversvr服务微信公众号【嵌入式系统】
421setset设置,集合
422sharingshar分享
423shiftshift移位
424signalsig信号
425simplicitysimpl简单
426simulationsimul模拟
427situationsituat情况
428sizesz大小
429skewskew偏斜
430skillskill技能
431slaveslv从机master,I2C
432slopeslope斜率
433softwareSW软件
434solutionsolut解决方法
435sourcesrc源头
436spacespace空间
437stabilitystabil稳定性
438stackstk
439standardstd标准
440startstart开始stop
441statestate状态
442statisticstats统计
443statusstatus状态
444stepstep步进
445stopstop停止start
446storagestor存储
447streamstm
448stringstr字符串
449subtractsub减去add
450suffixsfx后缀postfix
451summationsum求和
452support支持
453surplussurpl剩余freesize
454suspendsuspend暂停,挂起resume
455switchsw开关
456symbol记号
457synchronizesync同步
458syntax语法
459systemsys系统
460tabletbl
461targettar目标
462temperaturetemp温度
463temporarytemp临时
464terminalterm终端
465terminateterm终止
466testtest测试
467texttxt文本
468thresholdthresh阈值
469timet时间
470timertimer定时器
471totaltot总共
472transfertrf转移
473transmissiontrans传输
474triggertrig触发
475underflowunderflow下溢
476unknownunk未知微信公众号【嵌入式系统】
477unlockunlock解锁lock
478upup向上
479updateupd更新
480upgradeupg升级
481urgenturg紧急
482userusr用户
483utilutil工具tool
484validvld有效的
485validationval验证
486valueval
487variablevar变量
488vectorvec向量
489vendor厂商manufacturer
490verificationvrf验证
491versionver版本
492verticalvert垂直的horizontal
493virtualvirt虚拟
494voltagevolt电压
495watchdogwdt看门狗
496weightwt权重
497widthwid宽度length
498windowwin窗口
499wordword
500writewrite写入read

更多嵌入式信息请关注微信公众号【嵌入式系统】。
微信公众号【嵌入式系统】

  • 25
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值