/*
*
* * $Rev: 51 $
* Filename:      sensor_demo_app.h
* $Author: Morten & Suyash $
* $Date: 2010-06-11 10:17:22 -0700  $
* Description: Public interface file for the ZNP Sample Application.
*
* YOU ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY 
* OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, 
* TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TEXAS INSTRUMENTS 
* OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, 
* BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
* INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, 
* LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY 
* CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
*/
#ifndef SAMPLE_APP_H
#define SAMPLE_APP_H

#include "../znp/znp_interface.h"

/* Bit masks for appFlags.*/
#define appLowPwrF                        0x80
#define appPermittingF                    0x40
#define appSendingF                       0x20
#define appSinkingF                       0x10
#define appSetPollF                       0x08
#define appBusVF                          0x02
#define appTempF                          0x01


extern uint8 appFlags;
void appSync(void);


void appInit(void);
uint16 appExecHal(void);
uint16 appExecHost(void);

#endif
