上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: interface这个词在不同的语境下的含义是不同的。上面是autosar的文档对其的定义。 阅读全文
posted @ 2022-02-11 17:52 panrui 阅读(92) 评论(0) 推荐(0)
摘要: Road vehicles – Controller area network (CAN) – Part 1: Data link layer and physical signalling (ISO 11898-1:2015, IDT) Road vehicles – Controller are 阅读全文
posted @ 2022-02-10 17:07 panrui 阅读(251) 评论(0) 推荐(0)
摘要: The Internet Protocol is not designed to be absolutely reliable. The purpose of these control messages is to provide feedback about problems in the co 阅读全文
posted @ 2022-01-21 18:06 panrui 阅读(53) 评论(0) 推荐(0)
摘要: 1、不要假设发送一定能够成功。所以还需要有返回值指示状态。 2、状态机必须要使用 3、同步和异步的使用。 4、为了简化代码,相同类似逻辑的代码可以形成同一种模式,在C语言中大量使用函数指针来完成类似重复的工作。 阅读全文
posted @ 2022-01-19 22:12 panrui 阅读(107) 评论(0) 推荐(0)
摘要: 可以从IAR的菜单 Help -> Content 中找到帮助内容。 避免从网络上搜索资料的比较散碎尴尬。 需求: 在IAR编译中,将一段未被引用的变量或者说结构体放在FLASH中,这段区域肯定是read-only,同时也是const的。 在C代码中使用:#pragma location=".cc_ 阅读全文
posted @ 2022-01-05 11:02 panrui 阅读(579) 评论(0) 推荐(0)
摘要: 双层指针一般不被使用。 目前只遇到过以下情况需要使用: 需要通过函数调用去修改一个指针的时候。 数据结构: struct HashInfoType{ uint32_t StartAddr; uint32_t SizeSendby0x34; uint32_t expandedSize; /* for 阅读全文
posted @ 2021-12-22 20:24 panrui 阅读(164) 评论(0) 推荐(0)
摘要: /* * signv_sha256_calcu calculate the sha256 value upon one continous memory aera, there is no restriction on how many bytes the data are. * The SHA-2 阅读全文
posted @ 2021-12-22 16:45 panrui 阅读(1672) 评论(0) 推荐(0)
摘要: 使用openssl的工具,针对rsa非对称加密,private key和public key是成对出现的,从数学上来说是一对一的关系。也就是一个private key只能产生一个public key。而且,如果在命令行中(Ubuntu操作系统,非windows)使用openssl的工具使用 -tex 阅读全文
posted @ 2021-12-19 10:59 panrui 阅读(486) 评论(0) 推荐(0)
摘要: 会影响到函数代码阅读的一些因素 1. 全局变量和 static 修饰的局部变量 2. 函数指针 一个函数只完成一件事 注意,在链接的时候需要注意的事: 链接文件不能区分硬件中的Flash和RAM。所以,需要手动分配。其中data和code是不同的。所以,在链接的时候,linker对它们的处理也是不同 阅读全文
posted @ 2021-12-03 14:10 panrui 阅读(103) 评论(0) 推荐(0)
摘要: 使用这个可以方便产生 Call GraphsCalled by Graphs Number of Call Occurrences (Value: 2) This metric shows the number of calls in a function body. Number of Calle 阅读全文
posted @ 2021-12-03 13:32 panrui 阅读(79) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页