Axeda Ready Demo for Freescale FRDM-KL46Z as accident alert system

Dependencies:   FRDM_MMA8451Q KL46Z-USBHost MAG3110 SocketModem TSI mbed FATFileSystem

Fork of AxedaGo-Freescal_FRDM-KL46Z by Axeda Corp

Committer:
AxedaCorp
Date:
Wed Jul 02 19:57:37 2014 +0000
Revision:
2:2f9019c5a9fc
Parent:
0:65004368569c
ip switch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AxedaCorp 0:65004368569c 1 /* ========================================================================== */
AxedaCorp 0:65004368569c 2 /* */
AxedaCorp 0:65004368569c 3 /* axToolkit.h */
AxedaCorp 0:65004368569c 4 /* ©2013 Axeda Corporation */
AxedaCorp 0:65004368569c 5 /* */
AxedaCorp 0:65004368569c 6 /* This file will include all necessary libraries and functions to use the */
AxedaCorp 0:65004368569c 7 /* AMMP C Toolkit in your project. */
AxedaCorp 0:65004368569c 8 /* ========================================================================== */
AxedaCorp 0:65004368569c 9
AxedaCorp 0:65004368569c 10 #ifndef AXTOOLKIT_H
AxedaCorp 0:65004368569c 11 #define AXTOOLKIT_H
AxedaCorp 0:65004368569c 12
AxedaCorp 0:65004368569c 13 #include "axTypes.h"
AxedaCorp 0:65004368569c 14 #include "axConstants.h"
AxedaCorp 0:65004368569c 15 #include "axStatusCodes.h"
AxedaCorp 0:65004368569c 16 #include "axDomain.h"
AxedaCorp 0:65004368569c 17 #include "axPlatform.h"
AxedaCorp 0:65004368569c 18 #include "axTransport.h"
AxedaCorp 0:65004368569c 19 //#include "axHTTP.h"
AxedaCorp 0:65004368569c 20
AxedaCorp 0:65004368569c 21
AxedaCorp 0:65004368569c 22 typedef struct
AxedaCorp 0:65004368569c 23 {
AxedaCorp 0:65004368569c 24 ax_deviceID thisDevice; //A struct containing the device serial and model numbers -- How the device identifies itself
AxedaCorp 0:65004368569c 25 ax_platform platform; //A struct containing the target platform URL, port number etc. -- Where to send the data
AxedaCorp 0:65004368569c 26 int conf_ping_rate; //ping rate of the device in SECONDS
AxedaCorp 0:65004368569c 27 int first_run; //a flag to indicate if this is a first run of the agent
AxedaCorp 0:65004368569c 28 int conf_recv_timeout; //how long we wait to receive a response from the server
AxedaCorp 0:65004368569c 29 int conf_queue_size; //the size of the queues used to store data items/locations/events/alarms while operating
AxedaCorp 0:65004368569c 30 int debug_mode; //prints out extra messages to the standard out. Also adds HTTP header with a sequential value to all packets.
AxedaCorp 0:65004368569c 31 int print_mem; //prints out heap memory statistics to the standard out.
AxedaCorp 0:65004368569c 32 } axToolkitConfig;
AxedaCorp 0:65004368569c 33
AxedaCorp 0:65004368569c 34 extern int debugEnabled;
AxedaCorp 0:65004368569c 35
AxedaCorp 0:65004368569c 36 #ifdef __cplusplus
AxedaCorp 0:65004368569c 37 extern "C" {
AxedaCorp 0:65004368569c 38 #endif
AxedaCorp 0:65004368569c 39
AxedaCorp 0:65004368569c 40 int ax_debugEnabled();
AxedaCorp 0:65004368569c 41 void printDebug(char *msg);
AxedaCorp 0:65004368569c 42 void printError(char *msg);
AxedaCorp 0:65004368569c 43
AxedaCorp 0:65004368569c 44
AxedaCorp 0:65004368569c 45 #ifdef __cplusplus
AxedaCorp 0:65004368569c 46 }
AxedaCorp 0:65004368569c 47 #endif
AxedaCorp 0:65004368569c 48 #endif
AxedaCorp 0:65004368569c 49