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 "sio2host.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(), LED0, LED_Toggle, RxNum, and TxNum.
Referenced by Initialize_Demo().
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().
CONNECTION_ENTRY connectionTable[CONNECTION_SIZE] |
uint8_t i |
Referenced by _extint_disable(), _extint_enable(), _rtc_count_set_config(), _rtc_interrupt_handler(), _sercom_get_sercom_inst_index(), _sercom_set_handler(), _system_extint_init(), _tc_get_inst_index(), AddConnection(), CompareData(), ComputeDataCrc(), D_Nv_EraseSector(), DataDecrypt(), DataEncrypt(), DemoOutput_HandleMessage(), DumpConnection(), edbg_eui_read_eui64(), extint_disable_events(), extint_enable_events(), extint_is_syncing(), extint_nmi_set_config(), frameParse(), gfx_mono_draw_char_hugemem(), gfx_mono_draw_char_progmem(), gfx_mono_generic_draw_line(), gfx_mono_generic_put_bitmap(), gfx_mono_spinctrl_spincollection_add_spinner(), gfx_mono_spinctrl_spincollection_process_key(), gfx_mono_spinctrl_spincollection_show(), IsEmpty(), IsPersistent(), isSameAddress(), longAddressValidationAndUpdation(), MiApp_ProtocolInit(), MiApp_RemoveConnection(), MiApp_SendData(), mic_generator(), MiMAC_Init(), MiMAC_ReceivedPacket(), MiMAC_SendPacket(), nvm_memcpy(), nvm_read_buffer(), nvm_sam0_read(), nvm_update_buffer(), nvm_write_buffer(), PDS_Delete(), PDS_InitItems(), PDS_IsAbleToRestore(), PDS_Restore(), pdsStoreItemTaskHandler(), PHY_RandomReq(), PHY_SetIEEEAddr(), PHY_TaskHandler(), ReadMacAddress(), rtc_count_disable_events(), rtc_count_enable_events(), rtc_count_get_config_defaults(), run_p2p_demo(), sendConnectionRequest(), spi_init(), spi_read_buffer_wait(), spi_transceive_buffer_wait(), spi_write_buffer_wait(), system_pinmux_group_set_config(), tc_disable_events(), tc_enable_events(), tc_init(), Total_Connections(), usart_init(), usart_read_buffer_wait(), and usart_write_buffer_wait().
uint8_t msghandledemo = 0 |
Referenced by run_p2p_demo().
uint8_t NumOfActiveScanResponse |
uint8_t RxNum = 0 |
Referenced by dataConfcb(), and ReceivedDataIndication().
uint8_t select_ed |
Referenced by run_p2p_demo().
uint8_t TxNum = 0 |
Referenced by dataConfcb(), and ReceivedDataIndication().
uint8_t TxSynCount = 0 |
Referenced by run_p2p_demo().
uint8_t TxSynCount2 = 0 |
Referenced by run_p2p_demo().
bool update_ed |
Referenced by run_p2p_demo().