CARPLAY版本整理
This commit is contained in:
16
MXC_A27-PCB4.5-270T/app/moto/protocol/user_protocol.h
Normal file
16
MXC_A27-PCB4.5-270T/app/moto/protocol/user_protocol.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef USER_PROTOCOL_H
|
||||
#define USER_PROTOCOL_H
|
||||
|
||||
#include "tkc/types_def.h"
|
||||
|
||||
// 封装的函数,根据位位置获取对应的值
|
||||
uint8_t getBitValue(uint8_t count, int bitPosition);
|
||||
// 封装的函数,获取2个bit组合成的值
|
||||
uint8_t getBit2Value(uint8_t count, int bitPosition);
|
||||
// 封装的函数,获取3个bit组合成的值
|
||||
uint8_t getBit3Value(uint8_t count, int bitPosition);
|
||||
// 封装的函数,获取4个bit组合成的值
|
||||
uint8_t getBit4Value(uint8_t count, int bitPosition);
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user