Demo Application for MiWi Star Implementation.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
#include "miwi_api.h"
#include "miwi_p2p_star.h"
#include "task.h"
#include "star_demo.h"
#include "mimem.h"
#include "asf.h"
#include "sio2host.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_star_demo (void) |
Variables | |
bool | chk_sel_status |
CONNECTION_ENTRY | connectionTable [CONNECTION_SIZE] |
bool | display_connections |
uint8_t | i |
uint8_t | msghandledemo = 0 |
uint8_t | myChannel |
uint8_t | NumOfActiveScanResponse |
uint8_t | RxNum = 0 |
uint8_t | select_ed |
MIWI_TICK | t1 |
MIWI_TICK | t2 |
uint8_t | TxNum = 0 |
uint8_t | TxSynCount = 0 |
uint8_t | TxSynCount2 = 0 |
bool | update_ed |
|
static |
References delay_ms, DemoOutput_UpdateTxRx(), role, RxNum, STAR_DEMO_OPTIONS_MESSAGE(), SUCCESS, and TxNum.
Referenced by run_star_demo().
void ReceivedDataIndication | ( | RECEIVED_MESSAGE * | ind | ) |
References RECEIVED_MESSAGE::bits, delay_ms, DemoOutput_HandleMessage(), DemoOutput_UpdateTxRx(), END_DEVICE, RECEIVED_MESSAGE::flags, LED0, LED_Toggle, RECEIVED_MESSAGE::Payload, role, rxMessage, RxNum, Source_END_DEVICE_INFO(), STAR_DEMO_OPTIONS_MESSAGE(), and TxNum.
Referenced by Initialize_Demo().
void run_star_demo | ( | void | ) |
References ButtonPressed(), chk_sel_status, conn_size, dataConfcb(), delay_ms, display_connections, END_DEVICE, END_DEVICES_Short_Address, end_nodes, JoystickPressed(), LONG_ADDR_LEN, MiApp_ReadyToSleep(), MiApp_SendData(), MiWi, MIWI_TEXT_LEN, MiWi_TickGet(), MiWi_TickGetDiff(), msghandledemo, myConnectionIndex_in_PanCo, ONE_SECOND, P2PTasks(), PAN_COORD, PDS_TaskHandler(), role, select_ed, SHORT_ADDR_LEN, sio2host_disable(), sio2host_enable(), sleepMgr_sleep(), STAR_DEMO_OPTIONS_MESSAGE(), Total_Connections(), TxSynCount, TxSynCount2, update_ed, and _MIWI_TICK::Val.
Referenced by Run_Demo().
bool chk_sel_status |
Referenced by run_star_demo().
CONNECTION_ENTRY connectionTable[CONNECTION_SIZE] |
bool display_connections |
Referenced by run_star_demo().
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(), extint_disable_events(), extint_enable_events(), extint_is_syncing(), extint_nmi_set_config(), Find_Index(), findInActiveDevices(), frameParse(), handleLostConnection(), IsEmpty(), IsPersistent(), isSameAddress(), longAddressValidationAndUpdation(), MiApp_BroadcastConnectionTable(), 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(), parseConnectionTable(), 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(), sendConnectionRequest(), spi_init(), spi_read_buffer_wait(), spi_transceive_buffer_wait(), spi_write_buffer_wait(), store_connection_tb(), 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_star_demo().
uint8_t myChannel |
Referenced by appLinkFailureCallback(), Connection_Confirm(), and Initialize_Demo().
uint8_t NumOfActiveScanResponse |
uint8_t RxNum = 0 |
Referenced by dataConfcb(), and ReceivedDataIndication().
uint8_t select_ed |
Referenced by run_star_demo().
MIWI_TICK t1 |
MIWI_TICK t2 |
uint8_t TxNum = 0 |
Referenced by dataConfcb(), and ReceivedDataIndication().
uint8_t TxSynCount = 0 |
Referenced by run_star_demo().
uint8_t TxSynCount2 = 0 |
Referenced by run_star_demo().
bool update_ed |
Referenced by run_star_demo().