Implementation of Tasks for Demo Application on MiWi P2P.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
#include "task.h"
#include "miwi_api.h"
#include "p2p_demo.h"
#include "asf.h"
#include "pdsDataServer.h"
#include "wlPdsTaskManager.h"
#include "phy.h"
Macros | |
#define | LIGHT 0x01 |
#define | SWITCH 0x02 |
Functions | |
static void | Connection_Confirm (miwi_status_t status) |
void | DumpConnection (INPUT uint8_t index) |
bool | freezer_feature (void) |
bool | Initialize_Demo (bool freezer_enable) |
static void | longAddressValidationAndUpdation (void) |
void | Run_Demo (void) |
#define LIGHT 0x01 |
#define SWITCH 0x02 |
|
static |
References ALREADY_EXISTS, currentChannel, DemoOutput_Channel(), DemoOutput_Instruction(), DumpConnection(), LED0, LED_On, MiApp_StartConnection(), myChannel, START_CONN_DIRECT, startNetwork, and SUCCESS.
Referenced by Initialize_Demo().
void DumpConnection | ( | INPUT uint8_t | index | ) |
References ADDITIONAL_NODE_ID_SIZE, CONNECTION_SIZE, currentChannel, i, MY_ADDRESS_LENGTH, myLongAddress, and API_UINT16_UNION::v.
Referenced by Connection_Confirm().
bool freezer_feature | ( | void | ) |
References ButtonPressed(), delay_ms, LCDDisplay(), MiWi_TickGet(), MiWi_TickGetDiff(), ONE_SECOND, and _MIWI_TICK::Val.
Referenced by main().
References CHANNEL, Connection_Confirm(), currentChannel, DemoOutput_Channel(), DemoOutput_ChannelError(), DemoOutput_Instruction(), ENABLE_ALL_CONN, longAddressValidationAndUpdation(), MiApp_ConnectionMode(), MiApp_EstablishConnection(), MiApp_ProtocolInit(), MiApp_Set(), MiApp_SubscribeDataIndicationCallback(), myChannel, __defaultParametersRomOrRam::networkFreezerRestore, ReceivedDataIndication(), RECONNECTED, sleepMgr_init(), STAR_DEMO_OPTIONS_MESSAGE(), startNetwork, and API_UINT16_UNION::v.
Referenced by main().
|
static |
References i, LONG_ADDR_LEN, MY_ADDRESS_LENGTH, myLongAddress, PHY_RandomReq(), and PHY_SetIEEEAddr().
Referenced by Initialize_Demo().
void Run_Demo | ( | void | ) |
References P2PTasks(), PDS_TaskHandler(), and run_p2p_demo().
Referenced by main().
uint8_t AdditionalNodeID[ADDITIONAL_NODE_ID_SIZE] = {LIGHT} |
CONNECTION_ENTRY connectionTable[CONNECTION_SIZE] |
defaultParametersRamOnly_t defaultParamsRamOnly |
defaultParametersRomOrRam_t defaultParamsRomOrRam |
Referenced by MiMAC_ReceivedPacket().
uint8_t myChannel = 8 |
Referenced by Connection_Confirm(), and Initialize_Demo().
API_UINT16_UNION myPANID |
Referenced by Connection_Confirm(), and Initialize_Demo().