Implementation of Tasks for Demo Application on MiWi Star.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
#include "task.h"
#include "star_demo.h"
#include "asf.h"
#include "pdsDataServer.h"
#include "wlPdsTaskManager.h"
#include "phy.h"
Macros | |
#define | LIGHT 0x01 |
#define | SWITCH 0x02 |
Functions | |
static void | appLinkFailureCallback (void) |
static void | Connection_Confirm (miwi_status_t status) |
void | DumpConnection (INPUT uint8_t index) |
static void | EstablishConfirm (miwi_status_t status) |
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 EstablishConfirm(), MiApp_EstablishConnection(), and myChannel.
Referenced by Initialize_Demo().
|
static |
References ALREADY_EXISTS, currentChannel, DemoOutput_Channel(), DumpConnection(), LED0, LED_On, MiApp_StartConnection(), myChannel, PAN_COORD, role, STAR_DEMO_OPTIONS_MESSAGE(), START_CONN_DIRECT, 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().
|
static |
References ALREADY_EXISTS, and SUCCESS.
Referenced by appLinkFailureCallback().
bool freezer_feature | ( | void | ) |
References ButtonPressed(), delay_ms, MiWi_TickGet(), MiWi_TickGetDiff(), ONE_SECOND, and _MIWI_TICK::Val.
Referenced by main().
References appLinkFailureCallback(), CHANNEL, Connection_Confirm(), currentChannel, DemoOutput_Channel(), DemoOutput_ChannelError(), DemoOutput_Instruction(), ENABLE_ALL_CONN, longAddressValidationAndUpdation(), MiApp_ConnectionMode(), MiApp_EstablishConnection(), MiApp_ProtocolInit(), MiApp_Set(), MiApp_SubscribeDataIndicationCallback(), MiApp_SubscribeLinkFailureCallback(), myChannel, __defaultParametersRomOrRam::networkFreezerRestore, ReceivedDataIndication(), RECONNECTED, role, sleepMgr_init(), STAR_DEMO_OPTIONS_MESSAGE(), 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_star_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 appLinkFailureCallback(), Connection_Confirm(), and Initialize_Demo().
API_UINT16_UNION myPANID |