You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
////////////////////////////////////////////////////////////////////////////
|
|
///@copyright Copyright (c) 2018, 传控科技 All rights reserved.
|
|
///-------------------------------------------------------------------------
|
|
/// @file bsp_drv.h
|
|
/// @brief bsp @ driver config
|
|
///-------------------------------------------------------------------------
|
|
/// @version 1.0
|
|
/// @author CC
|
|
/// @date 20180331
|
|
/// @note cc_AS_stc02
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _APP_TASK_Bed_Alarm_H
|
|
#define _APP_TASK_Bed_Alarm_H
|
|
|
|
#include "../ctask/TTSS_task.h"
|
|
#include "../clib/c_lib.h"
|
|
// #include "task_screen.h"
|
|
|
|
// A5 5A 08 82 06 D3 01 00 00 FF 7D
|
|
typedef struct
|
|
{
|
|
U8 head[2]; //A5 5A:帧头
|
|
U8 num; //08:指令字节长度,83 00 00 01 02 22 00 00共 8字节(不含帧头)
|
|
U8 cmd; //82:指令
|
|
U8 start_addr[2];//06 D3:变量存储器地址
|
|
U8 num_word; //01:数据字长度,02 22 共 1 字长
|
|
U8 Data[2]; //00 00:数据内容,设置的键值
|
|
U8 crc[2]; //FF 7D: CRC
|
|
} SCRSetPkg;
|
|
|
|
typedef struct _s_task_low_power
|
|
{
|
|
TS_task task;
|
|
U8 mode_flag;
|
|
}S_TASK_Bed_ALARM;
|
|
|
|
extern S_TASK_Bed_ALARM _s_task_bed_alarm;
|
|
|
|
extern void L3_task_bed_alarm_init(void);
|
|
extern void L3_task_bed_alarm_handler(S_TASK_Bed_ALARM *s);
|
|
|
|
|
|
#endif // #ifndef _APP_TASK_Bed_Alarm_H
|
|
|
|
|