[AutoSar]DaVinci Developer 命名规范

news/2025/1/20 7:59:28/

目录

  • 关键词
  • 平台说明
  • 一、背景
  • 二、Component命名约定
    • 2.1Component Type Composition(CtCo)
    • 2.2Component Type Application( CtAp)
    • 2.3Component Type SensorActuator(CtSa)
    • 2.4Component Type Complex Driver( CtCd)
    • 2.5Component Type I/O Hardware Abstraction( CtIo)
    • 2.6Component Type Non_VoatileMemoryBlock( CtNv)
    • 2.7Component Type Service Proxy( CtSp)
    • 2.8Component Type Calibration( CtCa)
    • 2.9Component Prototype( Cp)
  • 三、Data命名约定
    • 3.1Application Data Type ( Adt)
    • 3.2Implementation Data Type ( Idt)
    • 3.3Compu Methods ( Cm)
    • 3.4Data Contraints ( Dc)
    • 3.5Constants ( C)
  • 四、interface命名约定
    • 4.1Applacation S/R Port Interface( Asr)
    • 4.2Applacation C/S Port Interface( Acs)
    • 4.3Server S/R Port Interface( Ssr)
    • 4.4Server C/S Port Interface( Scs)
  • 五、runnable命名约定
    • 5.Runnable Entity

  

关键词

==嵌入式、C语言、autosar、DaVinci Developer、命名规范 ==

平台说明

项目Value
OSautosar OS
autosar厂商vector
芯片厂商TI
编程语言C,C++
编译器HighTec (GCC)

在这里插入图片描述

一、背景

  该内容根据Vector 标准文档整理仅作参考,根据项目添加了部分自定义内容,为方便今后开发快速查阅。

二、Component命名约定

2.1Component Type Composition(CtCo)

ConventionCtCo[Name]
ExampleCtCOfunction
Descr该类型为多个component集合体,常用于一个component无法实现功能,需要分解为多个component。该类型可以被其他CtCo封装。Name的命名应该考虑到集合下的所有component的总体功能.

2.2Component Type Application( CtAp)

ConventionCtAp[Name]
ExampleCtApMySwc
Descr用于创建应用类型component。name 对应具体功能如:信号处理,滤波等

2.3Component Type SensorActuator(CtSa)

ConventionCtSa[Name]
ExampleCtSaDoor
Descr用于创建传感器或者执行器类型的component ,例如开门,温度传感器

2.4Component Type Complex Driver( CtCd)

ConventionCtCd[Name]
ExampleCtCOfunction
Descr用于创建复杂驱动类型的component

2.5Component Type I/O Hardware Abstraction( CtIo)

ConventionCtIo[Name]
ExampleCtIoOIAUC120
Descr用于创建IO硬件抽象类型的component ,一般用CS端口访问,可直接与其他BSW模块交互

2.6Component Type Non_VoatileMemoryBlock( CtNv)

ConventionCtNv[Name]
ExampleCtNvStorage
Descr创建用于操作非易失内存的component,用于SWC直接操作NV

2.7Component Type Service Proxy( CtSp)

ConventionCtSp[Name]
ExampleCtSpEcu1
Descr用于创建ECU之间的代理副本,详情见官方文档:AUTOSAR_EXP_VFB.pdf

2.8Component Type Calibration( CtCa)

ConventionCtCa[Name]
ExampleCtCaAngle
Descr创建用于标定类型的component

2.9Component Prototype( Cp)

ConventionCp<Ap/Sa/Cd/Io/Ca >[Name]
ExampleCpCaAngle
Descr用于在software design中的component实现
在这里插入图片描述

三、Data命名约定

3.1Application Data Type ( Adt)

ConventionAdt<b/v/s/ar/r/>< Module>< Name>
ExampleAdtvDoorAngle
Descrb = Boolean;v = Value;s = String;ar = Array;r = Record

3.2Implementation Data Type ( Idt)

ConventionIdt<b/v/s/ar/r/>< Name>
ExampleIdtvDoorAngle
Descrb = Boolean;v = Value;s = String;ar = Array;r = Record

3.3Compu Methods ( Cm)

ConventionCm< Module>< Name>
ExampleCmDoorAngle
Descr

3.4Data Contraints ( Dc)

ConventionDc< Module>< Name>
Example
Descr

3.5Constants ( C)

ConventionC<tc/nc/ac/rc/rec/apc>_< Name>
Example
Descrtc = Textual Constant;nc = Numeric Constant;ac = Array Constant;rc = Reference Constant;rec = Reference Constant;apc = Application Constant

四、interface命名约定

4.1Applacation S/R Port Interface( Asr)

ConventionAsr< Name>
Example
Descr

4.2Applacation C/S Port Interface( Acs)

ConventionAcs< Name>
Example
Descr

4.3Server S/R Port Interface( Ssr)

ConventionSsr< Name>
Example
Descr

4.4Server C/S Port Interface( Scs)

ConventionScs< Name>
Example
Descr

五、runnable命名约定

5.Runnable Entity

ConventionRunnable< module name>_<功能描述(init)><周期>
ExampleRunnableDoor_AglDet_10ms
Descr

http://www.ppmy.cn/news/1292602.html

相关文章

每日一道算法题day-two(备战蓝桥杯)

今天带来的题目是&#xff1a; 填充 有一个长度为 n的 0101 串&#xff0c;其中有一些位置标记为 ?&#xff0c;这些位置上可以任意填充 0 或者 1&#xff0c;请问如何填充这些位置使得这个 0101 串中出现互不重叠的 00 和 11 子串最多&#xff0c;输出子串个数。 输入格式…

【运维】界面操作与直接操作

对于一个大型的复杂的系统&#xff0c;各个模块之间紧密关联&#xff0c;界面上的一个操作&#xff0c;可能涉及到很多底层逻辑的连携反应。 在一个共享文件系统中&#xff0c;一个简单的小操作&#xff0c;可能就涉及到数据库多张表的改动&#xff0c;而且往往改动的表并不是…

ChatGPT绘制全球植被类型分布图、生物量图、土壤概念图、处理遥感数据并绘图、病毒、植物、动物细胞结构图

以ChatGPT、LLaMA、Gemini、DALLE、Midjourney、Stable Diffusion、星火大模型、文心一言、千问为代表AI大语言模型带来了新一波人工智能浪潮&#xff0c;可以面向科研选题、思维导图、数据清洗、统计分析、高级编程、代码调试、算法学习、论文检索、写作、翻译、润色、文献辅助…

LeetCode(38)外观数列⭐⭐

「外观数列」是一个整数序列&#xff0c;从数字 1 开始&#xff0c;序列中的每一项都是对前一项的描述。 你可以将其视作是由递归公式定义的数字字符串序列&#xff1a; countAndSay(1) "1"countAndSay(n) 是对 countAndSay(n-1) 的描述&#xff0c;然后转换成另一…

一个可以用于生产环境得PHP上传函数

上传表单 <!DOCTYPE html> <html lang"zh-CN"> <head><meta charset"UTF-8"><title>文件上传</title> </head> <body><h1>选择要上传的文件</h1><!-- 定义一个包含文件输入字段的表单 --…

用C语言采集游戏平台数据并做行业分析

目录 一、数据采集方法 日志采集 API采集 二、数据采集流程 确定采集目标 选择采集方法 编写采集程序 数据清洗和整理 三、行业分析方法 对比分析 趋势分析 分类分析 四、案例分析&#xff1a;基于C语言的实时游戏平台数据采集与行业分析系统实现 五、结论 随着游…

Ebean:一款被低估的ORM框架

ORM框架为什么不香&#xff1f; 对ORM框架的偏见 看了一些MyBaties与Hibernate进行对比的文章。可能是因为一些Hibernate历史原因&#xff0c;国内对于Hibernate普遍存在偏见&#xff0c;我摘抄了几点&#xff1a; 1. hibernate是全自动&#xff0c;而mybatis是半自动 hibernat…

redis黑马点评项目启动指南(含mac m1pro | windows11 wsl2 ubuntu环境配置 持续更新中~)

redis黑马点评项目学习笔记 mac m1pro windows 含项目配置教学 mac M1pro环境配置windows11 wsl2 ubuntu 环境配置一.短信登录1. 1发送验证码1.2短信登录注册1.3登录校验拦截器补缺Cookie Session Token1.4基于redistoken认证实现短信登陆1.5完善token认证的刷新机制 mac M1pro…