58 lines
2.2 KiB
C
58 lines
2.2 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_MME_LINK_CONFIRM_H
|
||
|
#define PLC_MME_LINK_CONFIRM_H
|
||
|
|
||
|
/* os shim includes */
|
||
|
#include "os_types.h"
|
||
|
|
||
|
#include "plc_mme.h"
|
||
|
#include "plc_utils.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/* pack for the structures in the whole file */
|
||
|
#pragma pack(push) // save the pack status
|
||
|
#pragma pack(1) // 1 byte align
|
||
|
|
||
|
typedef struct _mme_link_cnf_req {
|
||
|
uint8_t version; // version of route fixing algorithm
|
||
|
uint32_t rt_req_sn; // route request sequence number
|
||
|
uint8_t reserved; // reserved according to spec
|
||
|
uint8_t cnf_sta_cnt; // count of STAs need link confirming
|
||
|
tei_t sta[0]; // TEIs of STAs need link confirming
|
||
|
} mme_link_cnf_req_t;
|
||
|
|
||
|
typedef struct _mme_link_cnf_rsp {
|
||
|
uint8_t version; // version of route fixing algorithm
|
||
|
uint8_t level; // topo level of STA sending this packet
|
||
|
int8_t ch_quality; // channel quality in signal noise ratio
|
||
|
uint8_t path_opt_flag : 1, // path optimize flag
|
||
|
reserved : 7; // reserved according to spec
|
||
|
uint32_t rt_req_sn; // route request sequence number
|
||
|
} mme_link_cnf_rsp_t;
|
||
|
|
||
|
#pragma pack(pop) // restore the pack status
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif // PLC_MME_LINK_CONFIRM_H
|