refact: 将读写的应用层接口根据主从分开
This commit is contained in:
18
app/tiny_frame/by_tiny_frame_master_write.h
Normal file
18
app/tiny_frame/by_tiny_frame_master_write.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _BY_TINY_FRAME_MASTER_WRITE_H__
|
||||
#define _BY_TINY_FRAME_MASTER_WRITE_H__
|
||||
|
||||
#include "by_tiny_frame_config.h"
|
||||
|
||||
#if defined(BY_TF_DEVICE_MASTER)
|
||||
|
||||
#include "by_tiny_frame_parse.h"
|
||||
#include "by_tiny_frame_pack.h"
|
||||
|
||||
#define BY_TINY_FRAME_WRITE_CMD_CODE (0x06)
|
||||
|
||||
|
||||
extern void by_tiny_frame_write(uint8_t slave_id, uint16_t reg_addr, uint32_t data);
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user