2024-07-13 02:22:47 +00:00
|
|
|
|
/*
|
|
|
|
|
* communication_protocol.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2024<EFBFBD><EFBFBD>5<EFBFBD><EFBFBD>18<EFBFBD><EFBFBD>
|
|
|
|
|
* Author: 34509
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef SOFTWARE_PROTOCOL_COMMUNICATION_PROTOCOL_H_
|
|
|
|
|
#define SOFTWARE_PROTOCOL_COMMUNICATION_PROTOCOL_H_
|
|
|
|
|
|
2024-07-13 03:43:10 +00:00
|
|
|
|
#include "inc/UART.h"
|
2024-07-13 02:22:47 +00:00
|
|
|
|
|
2024-07-13 05:59:56 +00:00
|
|
|
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
SL_Function_Code_Read_Register = 0x30, /* <20><><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
SL_Function_Code_Write_Register = 0x10, /* д<>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
SL_Function_Code_Broadcast_Scan = 0xA0, /* <20>㲥ɨ<E3B2A5><C9A8> */
|
|
|
|
|
SL_Function_Code_Registration_request = 0xA1, /* ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
}SL_MsgFunctionCode;
|
2024-07-13 02:22:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SOFTWARE_PROTOCOL_COMMUNICATION_PROTOCOL_H_ */
|