64,649
社区成员
发帖
与我相关
我的任务
分享
void r3_lock(fd_uint8 open_or_close){
dp_link_layer link_layer = {INPUT_EX1_ADDR, 0, DIR_0_REQUEST};
dp_application_layer r_app_layer;
dp_application_layer s_app_layer;
if(open_or_close == 1){
s_app_layer = {DEV_PROTOCOL_CMD_CONTROL, 0x06, 1, {0x00}};
}
else if(open_or_close == 0){
s_app_layer = {DEV_PROTOCOL_CMD_CONTROL, 0x07, 1, {0x00}};
}
master_comm_transfer(INPUT_EX1_SERIAL, &link_layer, &s_app_layer, &r_app_layer, 8, 25);
}
if(open_or_close == 1){
s_app_layer = {DEV_PROTOCOL_CMD_CONTROL, 0x06, 1, {0x00}};
}
else if(open_or_close == 0){
s_app_layer = {DEV_PROTOCOL_CMD_CONTROL, 0x07, 1, {0x00}};
}