55 lines
1.8 KiB
C
55 lines
1.8 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 PLC_MGT_API_H
|
|
#define PLC_MGT_API_H
|
|
|
|
#include "os_types.h"
|
|
#include "iot_pkt_api.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
#define WHITELIST_DISABLE 0
|
|
#define WHITELIST_ADD 1
|
|
#define WHITELIST_DEL 2
|
|
|
|
/*
|
|
* plc_whitelist_op() - operating on whitelist
|
|
* @op: operation to perform on whitelist
|
|
* WHITELIST_DISABLE : disable whitelist
|
|
* WHITELIST_ADD : add item(s) to whitelist
|
|
* WHITELIST_DEL : delete items from whitelist
|
|
* @item_cnt: mac address count to add/delete to/from whitelist
|
|
* @buf: buffer containing mac address
|
|
*/
|
|
void plc_whitelist_op(uint8_t op, uint16_t item_cnt, uint8_t* buf);
|
|
|
|
/*
|
|
* plc_whitelist_query() - query whitelist items
|
|
* @start_index: start index of whitelist entry
|
|
* @item_count: number of whitelist entry querying
|
|
*/
|
|
void plc_whitelist_query(uint16_t start_index, uint16_t item_count);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* PLC_MGT_API_H */
|