feat: 移植从机通信帧协议
This commit is contained in:
17
app/tiny_frame/by_tiny_frame_slave_read_write.h
Normal file
17
app/tiny_frame/by_tiny_frame_slave_read_write.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _BY_TINY_FRAME_SLAVE_READ_WRITE_H__
|
||||
#define _BY_TINY_FRAME_SLAVE_READ_WRITE_H__
|
||||
|
||||
#include "by_tiny_frame_config.h"
|
||||
|
||||
#if defined(BY_TF_DEVICE_SLAVE)
|
||||
|
||||
#include "by_tiny_frame_parse.h"
|
||||
|
||||
#define BY_TINY_FRAME_READ_CMD_CODE (0x03)
|
||||
#define BY_TINY_FRAME_WRITE_CMD_CODE (0x06)
|
||||
|
||||
extern void by_tiny_frame_read_write_run(void);
|
||||
extern void by_tiny_frame_read_write_handle(by_tf_parse_frame_t frame_s, uint8_t status);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user