/**************************************************************************** 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_HEART_BEAT_H #define PLC_MME_HEART_BEAT_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 #if SUPPORT_SMART_GRID typedef struct _mme_heart_beat { uint16_t org_sta :12, // tei of first STA sends heart beat /* reserved for future */ rsvd1 :4; uint16_t max_dl_sta :12, // STA with max discovery list /* reserved for future */ rsvd2 :4; uint16_t max_dl_size; // item count in the max discovery list uint16_t bitmap_size; // bitmap size in byte uint8_t dl_bitmap[0]; // bitmap containing discovered STAs }mme_heart_beat_t; #endif //SUPPORT_SMART_GRID #if SUPPORT_SOUTHERN_POWER_GRID #define DISCO_STA_TEI_NUM 130 typedef struct _spg_mme_heart_beat { tei_t org_sta; tei_t max_dl_sta; uint32_t max_dl_size; uint8_t dl_bitmap[DISCO_STA_TEI_NUM]; uint8_t reserved; } spg_mme_heart_beat_t; #endif //SUPPORT_SOUTHERN_POWER_GRID #pragma pack(pop) // restore the pack status #ifdef __cplusplus } #endif #endif /* PLC_MME_HEART_BEAT_H */