MiWi P2P & STAR Protocol Implementation.
Copyright (c) 2018 - 2022 Microchip Technology Inc. and its subsidiaries.
#include "system.h"
#include "miwi_config.h"
#include "miwi_config_p2p.h"
#include "miwi_p2p_star.h"
#include "mimac_at86rf.h"
#include "mimem.h"
#include "delay.h"
#include "pdsDataServer.h"
#include "wlPdsTaskManager.h"
#include "miqueue.h"
#include "string.h"
Data Structures | |
struct | _gEstConnection |
struct | _gSearchConnection |
struct | _resyncConnection |
struct | _TxFrame_t |
struct | _TxFrameEntry_t |
Macros | |
#define | CONNECTION_TABLE_LOST_MAX 2 |
#define | DATA_TIMER_INTERVAL 100 |
#define | MAX_LINK_STATUS_FAILURES 3 |
#define | PROTOCOL_TIMER_INTERVAL 1000 |
#define | RECEIVE_ON_WHEN_IDLE 0x01 |
#define | SECURITY_INFO 0x00 |
Typedefs | |
typedef struct _gEstConnection | gEstConnection_t |
typedef struct _gSearchConnection | gSearchConnection_t |
typedef struct _resyncConnection | resyncConnection_t |
typedef struct _TxFrame_t | TxFrame_t |
typedef struct _TxFrameEntry_t | TxFrameEntry_t |
Functions | |
uint8_t | AddConnection (uint8_t capacityInfo) |
void | appAckWaitDataCallback (uint8_t handle, miwi_status_t status, uint8_t *msgPointer) |
static void | CommandConfCallback (uint8_t msgConfHandle, miwi_status_t status, uint8_t *msgPointer) |
static void | connectionRespConfCallback (uint8_t msgConfHandle, miwi_status_t status, uint8_t *msgPointer) |
static void | connReqConfCallback (uint8_t msgConfHandle, miwi_status_t status, uint8_t *msgPointer) |
static void | dataTimerHandler (SYS_Timer_t *timer) |
static uint8_t | Find_Index (uint8_t *DestAddr) |
static void | findInActiveDevices (void) |
static void | frameParse (MAC_RECEIVED_PACKET *macRxPacket) |
bool | frameTransmit (INPUT bool Broadcast, API_UINT16_UNION DestinationPANID, INPUT uint8_t *DestinationAddress, INPUT bool isCommand, INPUT bool SecurityEnabled, INPUT uint8_t msgLen, INPUT uint8_t *msgPtr, INPUT uint8_t msghandle, INPUT bool ackReq, INPUT DataConf_callback_t ConfCallback) |
static void | frameTxCallback (uint8_t handle, miwi_status_t status, uint8_t *msgPointer) |
static void | handleLostConnection (void) |
bool | isSameAddress (INPUT uint8_t *Address1, INPUT uint8_t *Address2) |
void | macAckOnlyDataCallback (uint8_t handle, miwi_status_t status, uint8_t *msgPointer) |
static void | MiApp_BroadcastConnectionTable (void) |
void | MiApp_ConnectionMode (INPUT uint8_t Mode) |
uint8_t | MiApp_EstablishConnection (uint8_t Channel, uint8_t addr_len, uint8_t *addr, uint8_t Capability_info, connectionConf_callback_t ConfCallback) |
bool | MiApp_Get (miwi_params_t id, uint8_t *value) |
miwi_status_t | MiApp_ProtocolInit (defaultParametersRomOrRam_t *defaultRomOrRamParams, defaultParametersRamOnly_t *defaultRamOnlyParams) |
void | MiApp_RemoveConnection (INPUT uint8_t ConnectionIndex) |
bool | MiApp_ResetToFactoryNew (void) |
bool | MiApp_SendData (uint8_t addr_len, uint8_t *addr, uint8_t msglen, uint8_t *msgpointer, uint8_t msghandle, bool ackReq, bool secEnabled, DataConf_callback_t ConfCallback) |
bool | MiApp_Set (miwi_params_t id, uint8_t *value) |
bool | MiApp_StartConnection (uint8_t Mode, uint8_t ScanDuration, uint32_t ChannelMap, connectionConf_callback_t ConfCallback) |
bool | MiApp_SubscribeDataIndicationCallback (PacketIndCallback_t callback) |
bool | MiApp_SubscribeLinkFailureCallback (LinkFailureCallback_t callback) |
bool | MiApp_SubscribeReConnectionCallback (ReconnectionCallback_t callback) |
void | P2PTasks (void) |
static bool | parseConnectionTable (uint8_t *payload, uint8_t payloadSize) |
static void | protocolTimerHandler (SYS_Timer_t *timer) |
static void | protocolTimerInit (void) |
static void | removeConnection (uint8_t index) |
static miwi_status_t | sendConnectionRequest (void) |
static void | sendLinkStatus (void) |
static void | startCompleteProcedure (bool timeronly) |
static void | startLinkStatusTimer (void) |
static void | store_connection_tb (uint8_t *payload, uint8_t payloadSize) |
uint8_t | Total_Connections (void) |
#define CONNECTION_TABLE_LOST_MAX 2 |
Referenced by handleLostConnection().
#define DATA_TIMER_INTERVAL 100 |
Referenced by protocolTimerInit().
#define MAX_LINK_STATUS_FAILURES 3 |
#define PROTOCOL_TIMER_INTERVAL 1000 |
Referenced by protocolTimerInit().
#define RECEIVE_ON_WHEN_IDLE 0x01 |
#define SECURITY_INFO 0x00 |
typedef struct _gEstConnection gEstConnection_t |
typedef struct _gSearchConnection gSearchConnection_t |
typedef struct _resyncConnection resyncConnection_t |
typedef struct _TxFrame_t TxFrame_t |
typedef struct _TxFrameEntry_t TxFrameEntry_t |
uint8_t AddConnection | ( | uint8_t | capacityInfo | ) |
Referenced by frameParse().
void appAckWaitDataCallback | ( | uint8_t | handle, |
miwi_status_t | status, | ||
uint8_t * | msgPointer | ||
) |
References callback, CMD_DATA_TO_ENDDEV_SUCCESS, CommandConfCallback(), _DataFrame_t::confCallback, _P2PStarDataFrame_t::dataFrame, Find_Index(), frameTransmit(), MiMem_Alloc(), MiMem_Free(), miQueueAppend(), miQueueRemove(), _DataFrame_t::msg, _DataFrame_t::msghandle, NULL, PACKETLEN_CMD_DATA_TO_ENDDEV_SUCCESS, PAN_COORD, role, _DataFrame_t::secEnabled, MiQueue::size, and SUCCESS.
Referenced by frameParse(), and MiApp_SendData().
|
static |
References MiMem_Free().
Referenced by appAckWaitDataCallback(), frameParse(), macAckOnlyDataCallback(), MiApp_BroadcastConnectionTable(), and removeConnection().
|
static |
References MiApp_BroadcastConnectionTable(), MiMem_Free(), and SHARE_PEER_DEVICE_INFO_TIMEOUT.
Referenced by frameParse().
|
static |
References CONNECTION_INTERVAL, _gEstConnection::connectionRetries, connectionTimeInterval, SYS_Timer_t::handler, SYS_Timer_t::interval, MiMem_Free(), SYS_Timer_t::mode, RFD_DATA_WAIT, sendConnectionRequest(), SUCCESS, SYS_TIMER_INTERVAL_MODE, and SYS_Timer_t::timeout.
Referenced by sendConnectionRequest().
|
static |
References callback, _DataFrame_t::confCallback, _P2PStarDataFrame_t::dataFrame, MiMem_Free(), miQueueAppend(), miQueueRemove(), _DataFrame_t::msg, _DataFrame_t::msghandle, NO_ACK, NULL, MiQueue::size, SYS_TimerStop(), and _DataFrame_t::timeout.
Referenced by protocolTimerInit().
|
static |
Referenced by appAckWaitDataCallback(), frameParse(), and macAckOnlyDataCallback().
|
static |
Referenced by protocolTimerHandler().
|
static |
References _DataFrame_t::ackReq, _gSearchConnection::activeScanResultIndex, AddConnection(), ADDITIONAL_NODE_ID_SIZE, ALREADY_EXISTS, appAckWaitDataCallback(), MAC_RECEIVED_PACKET::bits, RECEIVED_MESSAGE::bits, _DataFrame_t::broadcast, callback, CMD_CHANNEL_HOPPING, CMD_DATA_TO_ENDDEV_SUCCESS, CMD_FORWRD_PACKET, CMD_IAM_ALIVE, CMD_MAC_DATA_REQUEST, CMD_P2P_ACTIVE_SCAN_REQUEST, CMD_P2P_ACTIVE_SCAN_RESPONSE, CMD_P2P_CONNECTION_REMOVAL_REQUEST, CMD_P2P_CONNECTION_REMOVAL_RESPONSE, CMD_P2P_CONNECTION_REQUEST, CMD_P2P_CONNECTION_RESPONSE, CMD_SHARE_CONNECTION_TABLE, CommandConfCallback(), _resyncConnection::confCallback, _DataFrame_t::confCallback, CONNECTION_SIZE, connectionRespConfCallback(), _gEstConnection::connectionRetries, ConnMode, currentChannel, _P2PStarDataFrame_t::dataFrame, _DataFrame_t::destAddress, ENABLE_ACTIVE_SCAN_RSP, ENABLE_PREV_CONN, END_DEVICE, end_nodes, ESTABLISHING_NETWORK, FAILURE, Find_Index(), MAC_RECEIVED_PACKET::flags, RECEIVED_MESSAGE::flags, frameTransmit(), _DataFrame_t::fromEDToED, i, IEEE_802_15_4, IN_NETWORK_STATE, INDIRECT_MESSAGE_TIMEOUT, isSameAddress(), LatestConnection, LONG_ADDR_LEN, MAC_RECEIVED_PACKET::LQIValue, macAckOnlyDataCallback(), MiApp_CB_AllowConnection, MiMAC_SetAltAddress(), MiMem_Alloc(), MiMem_Free(), MiMem_PercentageOfFreeBuffers(), miQueueAppend(), miQueueRemove(), MIWI_ALL_MEMORY_MEM_ID, _DataFrame_t::msg, _DataFrame_t::msghandle, _DataFrame_t::msgLength, MY_ADDRESS_LENGTH, myConnectionIndex_in_PanCo, MyindexinPC, NULL, P2PCapacityInfo, p2pStarCurrentState, PACKET_TYPE_COMMAND, PACKETLEN_P2P_ACTIVE_SCAN_RESPONSE, PACKETLEN_P2P_CONNECTION_REMOVAL_RESPONSE, RECEIVED_MESSAGE::PacketLQI, RECEIVED_MESSAGE::PacketRSSI, PAN_COORD, parseConnectionTable(), MAC_RECEIVED_PACKET::Payload, RECEIVED_MESSAGE::Payload, MAC_RECEIVED_PACKET::PayloadLen, RECEIVED_MESSAGE::PayloadSize, PDS_Store(), pktRxcallback, RESYNC_IN_PROGRESS, _resyncConnection::resyncTimes, RFD_WAKEUP_INTERVAL, role, MAC_RECEIVED_PACKET::RSSIValue, _DataFrame_t::secEnabled, MiQueue::size, MAC_RECEIVED_PACKET::SourceAddress, RECEIVED_MESSAGE::SourceAddress, RECEIVED_MESSAGE::SourcePANID, startLinkStatusTimer(), _gEstConnection::status, STATUS_ACTIVE_SCAN, STATUS_ENTRY_NOT_EXIST, STATUS_EXISTS, STATUS_NOT_PERMITTED, STATUS_NOT_SAME_PAN, STATUS_SUCCESS, store_connection_tb(), SUCCESS, _DataFrame_t::timeout, TX_BUFFER_SIZE, API_UINT16_UNION::Val, MAC_RECEIVED_PACKET::Val, and RECEIVED_MESSAGE::Val.
Referenced by P2PTasks().
bool frameTransmit | ( | INPUT bool | Broadcast, |
API_UINT16_UNION | DestinationPANID, | ||
INPUT uint8_t * | DestinationAddress, | ||
INPUT bool | isCommand, | ||
INPUT bool | SecurityEnabled, | ||
INPUT uint8_t | msgLen, | ||
INPUT uint8_t * | msgPtr, | ||
INPUT uint8_t | msghandle, | ||
INPUT bool | ackReq, | ||
INPUT DataConf_callback_t | ConfCallback | ||
) |
References MAC_TRANS_PARAM::bits, MAC_TRANS_PARAM::DestAddress, MAC_TRANS_PARAM::flags, _TxFrameEntry_t::frame, _TxFrameEntry_t::frameConfCallback, _TxFrameEntry_t::frameDstAddr, _TxFrameEntry_t::frameHandle, _TxFrameEntry_t::frameLength, _TxFrameEntry_t::frameParam, LONG_ADDR_LEN, MiMem_Alloc(), miQueueAppend(), NULL, PACKET_TYPE_COMMAND, PACKET_TYPE_DATA, SHORT_ADDR_LEN, _TxFrame_t::txFrameEntry, API_UINT16_UNION::Val, and MAC_TRANS_PARAM::Val.
Referenced by appAckWaitDataCallback(), frameParse(), macAckOnlyDataCallback(), MiApp_BroadcastConnectionTable(), MiApp_SendData(), removeConnection(), and sendConnectionRequest().
|
static |
References callback, _TxFrameEntry_t::frameConfCallback, MiMem_Free(), NULL, txCallbackReceived, and _TxFrame_t::txFrameEntry.
Referenced by P2PTasks().
|
static |
References CONNECTION_TABLE_LOST_MAX, connectionTbLostCount, DISCONNECTED, END_DEVICE, end_nodes, ESTABLISHING_NETWORK, i, linkFailureCallback, myLongAddress, NULL, p2pStarCurrentState, and role.
Referenced by store_connection_tb().
References i, and MY_ADDRESS_LENGTH.
Referenced by frameParse(), MiApp_SendData(), and MiMAC_ReceivedPacket().
void macAckOnlyDataCallback | ( | uint8_t | handle, |
miwi_status_t | status, | ||
uint8_t * | msgPointer | ||
) |
References _DataFrame_t::broadcast, callback, CMD_DATA_TO_ENDDEV_SUCCESS, CommandConfCallback(), _DataFrame_t::confCallback, _P2PStarDataFrame_t::dataFrame, Find_Index(), frameTransmit(), _DataFrame_t::fromEDToED, MiMem_Alloc(), MiMem_Free(), miQueueRemove(), _DataFrame_t::msg, NULL, and PACKETLEN_CMD_DATA_TO_ENDDEV_SUCCESS.
Referenced by frameParse(), and MiApp_SendData().
|
static |
References CMD_SHARE_CONNECTION_TABLE, CommandConfCallback(), conn_size, frameTransmit(), i, MiMem_Alloc(), NULL, and TX_BUFFER_SIZE.
Referenced by connectionRespConfCallback(), and protocolTimerHandler().
void MiApp_ConnectionMode | ( | INPUT uint8_t | Mode | ) |
References ConnMode, P2PCapacityInfo, and PDS_Store().
uint8_t MiApp_EstablishConnection | ( | uint8_t | Channel, |
uint8_t | addr_len, | ||
uint8_t * | addr, | ||
uint8_t | Capability_info, | ||
connectionConf_callback_t | ConfCallback | ||
) |
References _gEstConnection::address, _gEstConnection::addrLen, _gEstConnection::backupState, CHANNEL, _gEstConnection::confCallback, CONNECTION_RETRY_TIMES, _gEstConnection::connectionRetries, ConnMode, ENABLE_ALL_CONN, ESTABLISHING_NETWORK, INITIAL_STATE, MiApp_Set(), p2pStarCurrentState, SCAN_NO_BEACON, sendConnectionRequest(), and _gEstConnection::status.
Referenced by appLinkFailureCallback(), Initialize_Demo(), and main().
bool MiApp_Get | ( | miwi_params_t | id, |
uint8_t * | value | ||
) |
References CHANNEL, currentChannel, PANID, and API_UINT16_UNION::Val.
Referenced by appSendData(), fillGeneralInformation(), otauDataSend(), and otauTask().
miwi_status_t MiApp_ProtocolInit | ( | defaultParametersRomOrRam_t * | defaultRomOrRamParams, |
defaultParametersRamOnly_t * | defaultRamOnlyParams | ||
) |
References MACINIT_PARAM::actionFlags, MACINIT_PARAM::bits, CHANNEL, CONNECTION_SIZE, ConnMode, currentChannel, i, IN_NETWORK_STATE, INIT_STATE, LONG_ADDR_LEN, MiApp_Set(), MiMAC_Init(), MiMAC_SetAltAddress(), miQueueInit(), MIWI_ALL_MEMORY_MEM_ID, MY_ADDRESS_LENGTH, MY_PAN_ID, myLongAddress, NULL, P2PCapacityInfo, p2pStarCurrentState, MACINIT_PARAM::PAddress, PAN_COORD, PDS_InitItems(), PDS_IsAbleToRestore(), PDS_Restore(), protocolTimerInit(), RECONNECTED, reconnectionCallback, RFD_WAKEUP_INTERVAL, role, startCompleteProcedure(), startLinkStatusTimer(), SUCCESS, API_UINT32_UNION::Val, API_UINT16_UNION::Val, and P2P_STATUS::Val.
Referenced by Initialize_Demo(), main(), and wsndemo_init().
void MiApp_RemoveConnection | ( | INPUT uint8_t | ConnectionIndex | ) |
References CONNECTION_SIZE, i, PDS_Store(), and removeConnection().
bool MiApp_ResetToFactoryNew | ( | void | ) |
References PDS_DeleteAll().
Referenced by APP_TaskHandler().
bool MiApp_SendData | ( | uint8_t | addr_len, |
uint8_t * | addr, | ||
uint8_t | msglen, | ||
uint8_t * | msgpointer, | ||
uint8_t | msghandle, | ||
bool | ackReq, | ||
bool | secEnabled, | ||
DataConf_callback_t | ConfCallback | ||
) |
References _DataFrame_t::ackReq, appAckWaitDataCallback(), P2P_STATUS::bits, _DataFrame_t::broadcast, CMD_FORWRD_PACKET, _DataFrame_t::confCallback, CONNECTION_SIZE, _P2PStarDataFrame_t::dataFrame, _DataFrame_t::destAddress, END_DEVICE, P2P_STATUS::Enhanced_DR_SecEn, frameTransmit(), i, IN_NETWORK_STATE, INDIRECT_MESSAGE_TIMEOUT, isSameAddress(), macAckOnlyDataCallback(), MAX_PAYLOAD, MiMem_Alloc(), MiMem_PercentageOfFreeBuffers(), miQueueAppend(), _DataFrame_t::msg, _DataFrame_t::msghandle, _DataFrame_t::msgLength, MY_ADDRESS_LENGTH, NULL, p2pStarCurrentState, role, _DataFrame_t::secEnabled, P2P_STATUS::Sleeping, SW_ACK_TIMEOUT, SYS_TimerStart(), and _DataFrame_t::timeout.
Referenced by appCmdDataRequest(), appSendData(), run_p2p_demo(), run_star_demo(), and TransmitMessage().
bool MiApp_Set | ( | miwi_params_t | id, |
uint8_t * | value | ||
) |
References CHANNEL, currentChannel, MAC_CHANNEL, MiMAC_Set(), and PDS_Store().
Referenced by Initialize_Demo(), main(), MiApp_EstablishConnection(), MiApp_ProtocolInit(), MiApp_StartConnection(), and updateGeneralInfoSet().
bool MiApp_StartConnection | ( | uint8_t | Mode, |
uint8_t | ScanDuration, | ||
uint32_t | ChannelMap, | ||
connectionConf_callback_t | ConfCallback | ||
) |
References CHANNEL, FAILURE, INIT_STATE, MiApp_NoiseDetection(), MiApp_Set(), MiMAC_SetAltAddress(), MY_PAN_ID, NOISE_DETECT_ENERGY, p2pStarCurrentState, PHY_RandomReq(), SEARCH_COMPLETE, START_CONN_CS_SCN, START_CONN_DIRECT, START_CONN_ENERGY_SCN, startCompleteProcedure(), STARTING_NETWORK, SUCCESS, and API_UINT16_UNION::Val.
Referenced by APP_TaskHandler(), Connection_Confirm(), and main().
bool MiApp_SubscribeDataIndicationCallback | ( | PacketIndCallback_t | callback | ) |
References callback, NULL, and pktRxcallback.
Referenced by appInit(), Initialize_Demo(), and main().
bool MiApp_SubscribeLinkFailureCallback | ( | LinkFailureCallback_t | callback | ) |
References callback, linkFailureCallback, and NULL.
Referenced by appInit(), and Initialize_Demo().
bool MiApp_SubscribeReConnectionCallback | ( | ReconnectionCallback_t | callback | ) |
References callback, NULL, and reconnectionCallback.
Referenced by wsndemo_init().
void P2PTasks | ( | void | ) |
References aMaxSIFSFrameSize, aTurnaroundTime, aUnitBackoffPeriod, P2P_STATUS::bits, P2P_STATUS::DataRequesting, _TxFrameEntry_t::frame, _TxFrameEntry_t::frameHandle, _TxFrameEntry_t::frameLength, _TxFrameEntry_t::frameParam, frameParse(), frameTxCallback(), IN_NETWORK_STATE, MAC_OVERHEAD, macMinLIFSPeriod_def, macMinSIFSPeriod_def, MiMAC_DiscardPacket(), MiMAC_PowerState(), MiMAC_ReceivedPacket(), MiMAC_SendPacket(), MiMAC_SymbolToTicks(), MiMAC_Task(), miQueueRemove(), MiWi_TickGet(), MiWi_TickGetDiff(), NULL, p2pStarCurrentState, PHY_OVERHEAD, POWER_STATE_DEEP_SLEEP, P2P_STATUS::RxHasUserData, MiQueue::size, SYS_TimerTaskHandler(), transaction_duration_us, txCallbackReceived, _TxFrame_t::txFrameEntry, and _MIWI_TICK::Val.
Referenced by main(), Run_Demo(), run_p2p_demo(), and run_star_demo().
|
static |
References i, and TX_BUFFER_SIZE.
Referenced by frameParse().
|
static |
References _DataFrame_t::broadcast, callback, _DataFrame_t::confCallback, connectionTimeInterval, _P2PStarDataFrame_t::dataFrame, FIND_INACTIVE_DEVICE_TIMEOUT, findInActiveDevices(), LINK_STATUS_TIMEOUT, MiApp_BroadcastConnectionTable(), MiMem_Free(), miQueueAppend(), miQueueRemove(), _DataFrame_t::msg, _DataFrame_t::msghandle, NULL, sendConnectionRequest(), sendLinkStatus(), SHARE_PEER_DEVICE_INFO_TIMEOUT, MiQueue::size, _DataFrame_t::timeout, and TRANSACTION_EXPIRED.
Referenced by protocolTimerInit().
|
static |
|
static |
References CMD_P2P_CONNECTION_REMOVAL_REQUEST, CommandConfCallback(), frameTransmit(), MiMem_Alloc(), NULL, and PACKETLEN_P2P_CONNECTION_REMOVAL_REQUEST.
Referenced by MiApp_RemoveConnection().
|
static |
References ACTIVE_SCAN_RESULT_SIZE, ADDITIONAL_NODE_ID_SIZE, ADDR_NOT_FOUND_IN_SCANNED_LIST, _gEstConnection::address, ALREADY_EXISTS, _gEstConnection::backupState, CMD_P2P_CONNECTION_REQUEST, _gEstConnection::confCallback, _gEstConnection::connectionRetries, connReqConfCallback(), currentChannel, ESTABLISHING_NETWORK, FAILURE, frameTransmit(), i, IN_NETWORK_STATE, MEMORY_UNAVAILABLE, MiMem_Alloc(), MiMem_Free(), MY_ADDRESS_LENGTH, NULL, P2PCapacityInfo, p2pStarCurrentState, PACKETLEN_P2P_CONNECTION_REQUEST, _gEstConnection::status, SUCCESS, and TIMER_EXPIRED.
Referenced by connReqConfCallback(), MiApp_EstablishConnection(), and protocolTimerHandler().
|
static |
Referenced by protocolTimerHandler().
|
static |
References FIND_INACTIVE_DEVICE_TIMEOUT, IN_NETWORK_STATE, MIWI_ALL_MEMORY_MEM_ID, p2pStarCurrentState, PAN_COORD, PDS_Store(), role, and SHARE_PEER_DEVICE_INFO_TIMEOUT.
Referenced by MiApp_ProtocolInit(), and MiApp_StartConnection().
|
static |
Referenced by frameParse(), and MiApp_ProtocolInit().
|
static |
References __END_DEVICES_Unique_Short_Address::Address, __END_DEVICES_Unique_Short_Address::connection_slot, handleLostConnection(), and i.
Referenced by frameParse().
uint8_t Total_Connections | ( | void | ) |
References CONNECTION_SIZE, and i.
Referenced by run_p2p_demo(), and run_star_demo().
MiQueue_t appAckWaitDataQueue |
uint8_t backupChannel = 0xFF |
uint8_t conn_size = 0 |
Referenced by Find_Index(), MiApp_BroadcastConnectionTable(), run_p2p_demo(), and run_star_demo().
uint8_t connectionTbLostCount = 0 |
Referenced by handleLostConnection().
uint16_t connectionTimeInterval = 0 |
Referenced by connReqConfCallback(), and protocolTimerHandler().
uint8_t ConnMode = DISABLE_ALL_CONN |
Referenced by frameParse(), MiApp_ConnectionMode(), MiApp_EstablishConnection(), and MiApp_ProtocolInit().
uint8_t currentChannel = 0xFF |
Referenced by Connection_Confirm(), DumpConnection(), frameParse(), Initialize_Demo(), MiApp_Get(), MiApp_ProtocolInit(), MiApp_Set(), and sendConnectionRequest().
|
static |
END_DEVICES_Unique_Short_Address END_DEVICES_Short_Address[CONNECTION_SIZE] |
Referenced by run_star_demo().
uint8_t end_nodes = 0 |
Referenced by frameParse(), handleLostConnection(), and run_star_demo().
MiQueue_t frameTxQueue |
gEstConnection_t gEstConnectionInfo |
gSearchConnection_t gSearchConnectionInfo |
MiQueue_t indirectFrameQueue |
|
static |
uint8_t LatestConnection |
Referenced by frameParse().
LinkFailureCallback_t linkFailureCallback |
Referenced by handleLostConnection(), and MiApp_SubscribeLinkFailureCallback().
MiQueue_t macAckOnlyFrameQueue |
MAC_RECEIVED_PACKET MACRxPacket |
Referenced by MiMAC_ReceivedPacket().
defaultParametersRamOnly_t* miwiDefaultRamOnlyParams |
defaultParametersRomOrRam_t* miwiDefaultRomOrRamParams |
uint8_t myConnectionIndex_in_PanCo |
Referenced by frameParse(), and run_star_demo().
uint8_t MyindexinPC |
Referenced by frameParse().
API_UINT16_UNION myPANID |
uint8_t P2PCapacityInfo = RECEIVE_ON_WHEN_IDLE | SECURITY_INFO |
Referenced by frameParse(), MiApp_ConnectionMode(), MiApp_ProtocolInit(), and sendConnectionRequest().
p2pStarState_t p2pStarCurrentState = INITIAL_STATE |
volatile P2P_STATUS P2PStatus |
PacketIndCallback_t pktRxcallback = NULL |
Referenced by frameParse(), and MiApp_SubscribeDataIndicationCallback().
|
static |
ReconnectionCallback_t reconnectionCallback |
Referenced by MiApp_ProtocolInit(), and MiApp_SubscribeReConnectionCallback().
resyncConnection_t resyncInfo |
DeviceRole_t role |
RECEIVED_MESSAGE rxMessage |
Referenced by DemoOutput_HandleMessage(), and ReceivedDataIndication().
TxFrame_t* sentFrame |
|
static |
Referenced by P2PTasks().
Referenced by frameTxCallback(), and P2PTasks().