feat: 基本完成通信帧主机读操作接口

This commit is contained in:
bmy
2024-02-24 18:53:02 +08:00
parent 85ccbea2f8
commit 785f674ada
3 changed files with 53 additions and 2 deletions

View File

@@ -33,6 +33,7 @@
/** 测试完成后移除 **/
#include "by_tiny_frame_parse.h"
#include "by_tiny_frame_pack.h"
uint32_t data_test;
/** 测试完成后移除 **/
void test(by_tf_parse_frame_t frame_s, uint8_t status)
@@ -82,7 +83,8 @@ int main(void)
frame_now.slave_id = 0x0D;
/** 测试完成后移除 **/
by_tiny_frame_write(0x0D, 0x4059, 0x19260817);
// by_tiny_frame_write(0x0D, 0x4059, 0x19260817);
by_tiny_frame_read(0x0D, 0x4059, &data_test);
while (1) {
Page_Run();
by_buzzer_run();