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 "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, MY_ADDRESS_LENGTH, RECEIVED_MESSAGE::Payload, RECEIVED_MESSAGE::PayloadSize, role, rxMessage, RxNum, sio2host_tx(), Source_END_DEVICE_INFO(), RECEIVED_MESSAGE::SourceAddress, STAR_DEMO_OPTIONS_MESSAGE(), and TxNum.
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(), LCD_Erase(), LCD_Update(), LCDText, 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 |
CONNECTION_ENTRY connectionTable[CONNECTION_SIZE] |
bool display_connections |
Referenced by run_star_demo().
uint8_t i |
uint8_t msghandledemo = 0 |
uint8_t myChannel |
Referenced by appLinkFailureCallback(), Connection_Confirm(), Initialize_Demo(), and main().
uint8_t NumOfActiveScanResponse |
uint8_t RxNum = 0 |
uint8_t select_ed |
MIWI_TICK t1 |
Referenced by spi_flash_write().
MIWI_TICK t2 |
uint8_t TxNum = 0 |
uint8_t TxSynCount = 0 |
uint8_t TxSynCount2 = 0 |
bool update_ed |