XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
id.h
浏览该文件的文档.
1
21#ifndef __xwcd_ds_lin_id_h__
22#define __xwcd_ds_lin_id_h__
23
24#include <xwcd/ds/standard.h>
25#include <xwos/lib/xwbop.h>
26
33#define LIN_ID_PARITY(id) ((((~(XWBOP_TBIT((id), 1U) ^ XWBOP_TBIT((id), 3U) ^ \
34 XWBOP_TBIT((id), 4U) ^ XWBOP_TBIT((id), 5U))) << 7U) | \
35 ((XWBOP_TBIT((id), 0U) ^ XWBOP_TBIT((id), 1U) ^ \
36 XWBOP_TBIT((id), 2U) ^ XWBOP_TBIT((id), 4U)) << 6U)) & \
37 0xC0U)
38#define LIN_ID_PARITY_FIELD(id) (LIN_ID_PARITY(id) | ((id) & 0xFFU))
39
43extern __xwds_rodata const unsigned char xwos_linid_table[64];
44
49#endif /* xwcd/ds/lin/id.h */
const unsigned char xwos_linid_table[64]
LIN总线ID校验表
#define __xwds_rodata
Definition standard.h:38
XWOS通用库:位操作
玄武设备栈:顶级头文件