/** * \file demo_output.h * * \brief Demo output Interface. * * Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It is your responsibility to comply with third party license terms applicable * to your use of third party software (including open source software) that * may accompany Microchip software. * * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. * * \asf_license_stop * */ /* * Support and FAQ: visit Microchip Support */ #ifndef _DEMO_OUPUT_H #define _DEMO_OUTPUT_H #define MIWI_TEXT_LEN 21 #define DE_LEN 11 extern const uint8_t MiWi[6][MIWI_TEXT_LEN]; extern const uint8_t DE[6][DE_LEN]; /********************************************************************* * Function: void DemoOutput_Greeting( void ) * * Overview: Prints demo greeting message * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_Greeting(void); /********************************************************************* * Function: void DemoOutput_Channel(uint8_t channel, uint8_t step) * * Overview: Prints demo channel * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_Channel(uint8_t channel, uint8_t step); /********************************************************************* * Function: void DemoOutput_Instruction( void ) * * Overview: Prints demo instructions * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_Instruction(void); /********************************************************************* * Function: void DemoOutput_HandleMessage( void ) * * Overview: Prints demo message type * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_HandleMessage(void); /********************************************************************* * Function: void DemoOutput_UpdateTxRx( uint8_t TxNum, uint8_t RxNum ) * * Overview: Prints Tx and Rx Packet Count * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_UpdateTxRx(uint8_t TxNum, uint8_t RxNum); /********************************************************************* * Function: void DemoOutput_ChannelError( uint8_t channel ) * * Overview: Outputs channel error message * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_ChannelError(uint8_t channel); /********************************************************************* * Function: void DemoOutput_UnitcastFail( void ) * * Overview: Outputs Unicast fail status * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void DemoOutput_UnicastFail(void); /********************************************************************* * Function: void STAR_DEMO_OPTIONS_MESSAGE( bool ) * * Overview: Displays available options for the DEMO kit in STAR Network * * PreCondition: None * * Input: boolean true or false * * Output: None * ********************************************************************/ void STAR_DEMO_OPTIONS_MESSAGE(bool); /********************************************************************* * Function: void Source_END_DEVICE_INFO( bool ) * * Overview: This function is only used for STAR NETWORK * For a Packet_TX from EDx--> PAN CO --> EDy * EDy shows the unique address of EDx to confirm * it received a packet from EDx * PreCondition: None * * Input: Pointer to Unique address of EDx * * Output: None * * Note : Only for Demo Purposes , App developers can avoid using if * sure of packet transmission * ********************************************************************/ void Source_END_DEVICE_INFO(uint8_t *); /********************************************************************* * Function: uint8_t ButtonPressed(void) * * Overview: Reads the Button state * * PreCondition: None * * Input: None * * Output: Buttons State * ********************************************************************/ uint8_t ButtonPressed(void); /********************************************************************* * Function: uint8_t Joystick_Init(void) * * Overview: Inits the Joystick * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void Joystick_Init(void); /********************************************************************* * Function: uint8_t JoystickPressed(void) * * Overview: Reads the Joystick state * * PreCondition: None * * Input: None * * Output: joystick State * ********************************************************************/ uint8_t JoystickPressed(void); /********************************************************************* * Function: uint8_t Buttons_init(void) * * Overview: configures buttons * * PreCondition: None * * Input: None * * Output: None * ********************************************************************/ void Buttons_init(void); /********************************************************************* * Function: void demo_output_freezer_options(void) * * Overview: Display Freezer Options * * PreCondition: Timer Initialize , system Initialize * * Input: None * * Output: None * ********************************************************************/ void demo_output_freezer_options(void); #endif