Demo Application for MiWi P2P Implementation.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
#include "miwi_api.h"
#include "miwi_p2p_star.h"
#include "task.h"
#include "p2p_demo.h"
#include "mimem.h"
#include "asf.h"
#include "pdsMemIds.h"
#include "pdsDataServer.h"
#include "wlPdsTaskManager.h"
Functions | |
static void | dataConfcb (uint8_t handle, miwi_status_t status, uint8_t *msgPointer) |
void | ReceivedDataIndication (RECEIVED_MESSAGE *ind) |
void | run_p2p_demo (void) |
Variables | |
bool | chk_sel_status = true |
CONNECTION_ENTRY | connectionTable [CONNECTION_SIZE] |
uint8_t | i |
uint8_t | msghandledemo = 0 |
uint8_t | NumOfActiveScanResponse |
uint8_t | RxNum = 0 |
uint8_t | select_ed |
uint8_t | TxNum = 0 |
uint8_t | TxSynCount = 0 |
uint8_t | TxSynCount2 = 0 |
bool | update_ed |
|
static |
References delay_ms, DemoOutput_Instruction(), DemoOutput_UpdateTxRx(), RxNum, SUCCESS, and TxNum.
Referenced by run_p2p_demo().
void ReceivedDataIndication | ( | RECEIVED_MESSAGE * | ind | ) |
References DemoOutput_HandleMessage(), DemoOutput_Instruction(), DemoOutput_UpdateTxRx(), RxNum, and TxNum.
void run_p2p_demo | ( | void | ) |
References ButtonPressed(), chk_sel_status, conn_size, dataConfcb(), DE, DE_LEN, DemoOutput_UnicastFail(), i, JoystickPressed(), LCD_Erase(), LCD_Update(), LCDText, LONG_ADDR_LEN, MiApp_ReadyToSleep(), MiApp_SendData(), MiWi, MIWI_TEXT_LEN, msghandledemo, P2PTasks(), PDS_TaskHandler(), select_ed, SHORT_ADDR_LEN, sio2host_disable(), sio2host_enable(), sleepMgr_sleep(), Total_Connections(), TxSynCount, TxSynCount2, and update_ed.
Referenced by Run_Demo().
Referenced by run_p2p_demo(), and run_star_demo().
CONNECTION_ENTRY connectionTable[CONNECTION_SIZE] |
uint8_t i |
uint8_t msghandledemo = 0 |
uint8_t NumOfActiveScanResponse |
uint8_t RxNum = 0 |
Referenced by dataConfcb(), and ReceivedDataIndication().
uint8_t select_ed |
Referenced by run_p2p_demo(), and run_star_demo().
uint8_t TxNum = 0 |
Referenced by dataConfcb(), and ReceivedDataIndication().
uint8_t TxSynCount = 0 |
Referenced by run_p2p_demo(), and run_star_demo().
uint8_t TxSynCount2 = 0 |
Referenced by run_p2p_demo(), and run_star_demo().
bool update_ed |
Referenced by run_p2p_demo(), and run_star_demo().