55 lines
1.7 KiB
C
55 lines
1.7 KiB
C
/****************************************************************************
|
|
|
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
|
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
be copied by any method or incorporated into another program without
|
|
the express written consent of Aerospace C.Power. This Information or any portion
|
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
liability for its use in any way and conveys no license or title under
|
|
any patent or copyright and makes no representation or warranty that this
|
|
Information is free from patent or copyright infringement.
|
|
|
|
****************************************************************************/
|
|
#ifndef IOT_PLC_LED_H
|
|
#define IOT_PLC_LED_H
|
|
|
|
#include "iot_plc_led_api.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* define supported internal plc related led request */
|
|
/* plc led init status */
|
|
#define IOT_PLC_LED_INIT 0x60
|
|
/* timer message request */
|
|
#define IOT_PLC_LED_TIMER 0x61
|
|
|
|
/* pack for the structures */
|
|
#pragma pack(push) /* save the pack status */
|
|
#pragma pack(1) /* 1 byte align */
|
|
|
|
/* led message header */
|
|
typedef struct _led_msg_hdr {
|
|
/* request id */
|
|
uint8_t req_id;
|
|
/* message id */
|
|
uint8_t msg_id;
|
|
} led_msg_hdr_t;
|
|
|
|
#pragma pack(pop) /* restore the pack status */
|
|
|
|
/* @brief init plc led module
|
|
* @param ftm_mode: flag to mark if current working mode is ftm
|
|
*/
|
|
void iot_plc_led_init(uint8_t ftm_mode);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* IOT_PLC_LED_H */
|