19 lines
484 B
C
19 lines
484 B
C
|
|
#ifndef _BY_TINY_FRAME_MASTER_READ_H__
|
||
|
|
#define _BY_TINY_FRAME_MASTER_READ_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_READ_CMD_CODE (0x03)
|
||
|
|
|
||
|
|
extern void by_tiny_frame_read(uint8_t slave_id, uint16_t reg_addr, uint32_t *data);
|
||
|
|
extern void by_tiny_frame_read_run(void);
|
||
|
|
extern void by_tiny_frame_read_handle(by_tf_parse_frame_t frame_s, uint8_t status);
|
||
|
|
|
||
|
|
#endif
|
||
|
|
#endif
|